39 const std::string &filename,
40 const std::string &
format =
"auto",
41 bool print_progress =
false);
49 std::string
format =
"auto",
91 enum class IsAscii : bool { Binary =
false, Ascii =
true };
96 IsAscii write_ascii = IsAscii::Binary,
97 Compressed compressed = Compressed::Uncompressed,
100 : write_ascii(write_ascii),
101 compressed(compressed),
106 bool compressed =
false,
109 : write_ascii(
IsAscii(write_ascii)),
std::function< bool(double)> update_progress
Definition: PointCloudIO.h:131
bool WritePointCloudToPTS(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FilePTS.cpp:111
WritePointCloudOption(std::function< bool(double)> up)
Definition: PointCloudIO.h:113
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: PointCloudIO.cpp:127
bool ReadPointCloudFromXYZ(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileXYZ.cpp:42
Optional parameters to ReadPointCloud.
Definition: PointCloudIO.h:45
std::shared_ptr< geometry::PointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:68
bool ReadPointCloudFromXYZN(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileXYZN.cpp:42
A point cloud consists of point coordinates, and optionally point colors and point normals...
Definition: PointCloud.h:54
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FilePLY.cpp:396
ReadPointCloudOption(std::string format="auto", bool remove_nan_points=true, bool remove_infinite_points=true, bool print_progress=false, std::function< bool(double)> update_progress={})
Definition: PointCloudIO.h:46
bool WritePointCloudToPCD(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FilePCD.cpp:792
Compressed compressed
Definition: PointCloudIO.h:123
bool print_progress
Definition: PointCloudIO.h:73
IsAscii write_ascii
Definition: PointCloudIO.h:116
bool WritePointCloudToXYZN(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileXYZN.cpp:78
bool WritePointCloudToXYZRGB(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileXYZRGB.cpp:78
bool ReadPointCloudFromXYZRGB(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileXYZRGB.cpp:42
std::string format
Definition: PointCloudIO.h:62
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: PointCloudIO.cpp:77
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FilePLY.cpp:461
Optional parameters to WritePointCloud.
Definition: PointCloudIO.h:90
Definition: PinholeCameraIntrinsic.cpp:35
bool ReadPointCloudFromPTS(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FilePTS.cpp:43
bool print_progress
Definition: PointCloudIO.h:127
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:191
bool remove_infinite_points
Whether to remove all points that have +-inf.
Definition: PointCloudIO.h:69
bool remove_nan_points
Whether to remove all points that have nan.
Definition: PointCloudIO.h:67
std::function< bool(double)> update_progress
Definition: PointCloudIO.h:77
ReadPointCloudOption(std::function< bool(double)> up)
Definition: PointCloudIO.h:59
WritePointCloudOption(bool write_ascii, bool compressed=false, bool print_progress=false, std::function< bool(double)> update_progress={})
Definition: PointCloudIO.h:105
Compressed
Definition: PointCloudIO.h:92
bool WritePointCloudToXYZ(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileXYZ.cpp:76
WritePointCloudOption(IsAscii write_ascii=IsAscii::Binary, Compressed compressed=Compressed::Uncompressed, bool print_progress=false, std::function< bool(double)> update_progress={})
Definition: PointCloudIO.h:93
bool ReadPointCloudFromPCD(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FilePCD.cpp:755
IsAscii
Definition: PointCloudIO.h:91