当前位置:网站首页>Delete Nan points in 3D point cloud TXT file
Delete Nan points in 3D point cloud TXT file
2022-07-22 15:24:00 【Blacksmith's sword】
In the point cloud txt In file , There will be a lot of nan spot , As shown in the figure below :
To delete nan spot , Use vs Delete the console program
#include "stdafx.h"
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main()
{
fstream in("E:\\3d\\hancon3d\\taotong.txt", ios::in);// Original point cloud file
fstream out("E:\\3d\\hancon3d\\taotong4.txt", ios::out);// After processing the file
string str, estr;
str = "nan nan nan";
while (getline(in, estr))// obtain The original point cloud .txt One line
{
if (!estr.compare(str))// Compare The original point cloud .txt Whether the content of each line is consistent with that to be deleted , Just skip the same thing
continue;
out << estr << "\n";// The inconsistent content is written in After processing the file .txt in , Pay attention to the new line
}
in.close();// Closed flow
out.close();
return 0;
}
In the process of execution , First create a new txt Document for saving none nan Click on the file . After execution , The screenshot of the file is as follows :
边栏推荐
- Waiting insurance compliance 2022 series | what should you know about waiting insurance this year?
- df. Describe() detailed + usage + Example
- ClickHouse相关SQL总结:创建表、分区/主键/排序设置、删除表、删除分区、修改表字段
- Distributed link tracking skywalking Foundation
- harbor+trivy的安装使用——筑梦之路
- AI chief architect 11 - "3d+ai" application and expansion in smart Sports
- 等保合规2022系列 | 今年,关于等保你该了解什么?
- Shardingjdbc horizontal split table configuration
- MySQL的锁机制:MyISAM 表锁、InnoDB行锁
- Redis持久化的使用拓展
猜你喜欢
还在问用什么来做接口测试?万能Jmeter打造性能测试数据平台
如何用一手数据可视化获得老板的青睐,抓住数据可视化关键点
Open source demo | release of open source example of arcall applet
visual studio踩坑记录
With no performance forecast, BOE is silent at this time?
双人成行本地安装&X360ce模拟手柄教程&xpadder手柄模拟键盘鼠标
Introduction to microservices
机器学习笔记 - 机器学习系统设计流程概述
21jvm memory model (JMM)
2022-07-18 Jenkins deployment
随机推荐
Conf configuration of redis
Redis的拓展方案
Do you know who the "open source queen" is-- Facing the threat of being fired, she still insisted on opening a famous project
Classification and application of slip rings
92. (leaflet chapter) leaflet situation plotting - acquisition of attack direction
1. Meta function and type_ traits
架构设计方案(持续更新ing)
Various application schemes of animal free collagenase Worthington
Let security move | no matter what industry network architecture, these six tactics win the target
Distributed link tracking skywalking Foundation
Redis master-slave replication
记线上双写失败日志mysql错误排查原因
2022-07-19 mysql/stonedb sub query hashjoin logic processing
Pytorch Deep Learning Practice - 1 - Overview
Shardingjdbc horizontal split table configuration
Redis使用Jedis操作
【C语言-文件】数据终于可以出内存,到外面的世界看看了/(ㄒoㄒ)/~~
codeforces每日5题(均1500)-第二十二天
JMeter笔记1 | JMeter简介及体系结构
What is exploratory testing? What are the methods of exploratory testing?