 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
23 const std::string &
format =
"auto",
24 bool print_progress =
false);
29 const unsigned char *buffer,
32 bool print_progress =
false);
40 const ReadPointCloudOption ¶ms = {});
49 const ReadPointCloudOption ¶ms = {});
57 const WritePointCloudOption ¶ms = {});
69 const WritePointCloudOption ¶ms = {});
73 const ReadPointCloudOption ¶ms);
78 const ReadPointCloudOption ¶ms);
82 const WritePointCloudOption ¶ms);
87 const WritePointCloudOption ¶ms);
91 const ReadPointCloudOption ¶ms);
95 const WritePointCloudOption ¶ms);
99 const ReadPointCloudOption ¶ms);
103 const WritePointCloudOption ¶ms);
107 const ReadPointCloudOption ¶ms);
111 const WritePointCloudOption ¶ms);
115 const ReadPointCloudOption ¶ms);
119 const WritePointCloudOption ¶ms);
123 const ReadPointCloudOption ¶ms);
127 const WritePointCloudOption ¶ms);
bool WritePointCloudToPCD(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1078
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
std::string filename
Definition: PointCloudIO.cpp:47
bool ReadPointCloudFromNPZ(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: PointCloudIO.cpp:178
bool ReadPointCloudInMemoryFromXYZ(const unsigned char *buffer, const size_t length, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1147
Data class for PLYPointCloud contains the fragment.ply point cloud mesh from the Redwood Living Room ...
Definition: Dataset.h:703
ccPointCloud & RemoveNonFinitePoints(bool remove_nan=true, bool remove_infinite=true)
Remove all points fromt he point cloud that have a nan entry, or infinite entries.
Definition: PointCloudFactory.cpp:325
PointCloud To(const core::Device &device, bool copy=false) const
Definition: PointCloud.cpp:112
int64_t GetLength() const
Definition: Tensor.h:1125
static const std::unordered_map< std::string, std::function< bool(const std::string &, const geometry::PointCloud &, const cloudViewer::io::WritePointCloudOption &)> > file_extension_to_pointcloud_write_function
Definition: PointCloudIO.cpp:49
bool ReadPointCloudFromPTS(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FilePTS.cpp:23
bool WritePointCloudToXYZ(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1178
bool WritePointCloudToTXT(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms)
Definition: FileTXT.cpp:132
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const std::string &file_format, bool remove_nan_points, bool remove_infinite_points, bool print_progress)
Definition: PointCloudIO.cpp:112
bool WritePointCloudToPTS(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FilePTS.cpp:191
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
int64_t size_
Definition: FilePLY.cpp:37
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms)
Definition: PointCloudIO.cpp:72
bool WritePointCloud(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: PointCloudIO.cpp:191
bool WritePointCloudToPTS(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1672
bool ReadPointCloud(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: PointCloudIO.cpp:104
static const std::unordered_map< std::string, std::function< bool(const std::string &, geometry::PointCloud &, const cloudViewer::io::ReadPointCloudOption &)> > file_extension_to_pointcloud_read_function
Definition: PointCloudIO.cpp:31
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
static const std::unordered_map< std::string, std::function< bool(const std::string &, ccPointCloud &, const ReadPointCloudOption &)> > file_extension_to_pointcloud_read_function
Definition: PointCloudIO.cpp:33
bool ReadPointCloudFromTXT(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms)
Definition: FileTXT.cpp:27
bool AutoWriteEntity(const std::string &filename, const ccHObject &entity, const WritePointCloudOption ¶ms)
Definition: AutoIO.cpp:238
void IOWriteTensorPointCloud(benchmark::State &state, const std::string &input_file_path, const std::string &output_file_path, const bool write_ascii, const bool write_compressed)
Definition: PointCloudIO.cpp:65
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms)
Definition: FilePLY.cpp:355
bool ReadPointCloudFromPCD(const std::string &filename, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FilePCD.cpp:1140
bool ReadPointCloudFromPCD(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1041
A point cloud contains a list of 3D points.
Definition: PointCloud.h:82
Optional parameters to ReadPointCloud.
Definition: FileIO.h:39
cloudViewer::geometry::PointCloud ToLegacy() const
Convert to a legacy CloudViewer PointCloud.
Definition: PointCloud.cpp:1099
#define ENUM_BM_IO_EXTENSION(EXTENSION_NAME, EXTENSION)
Definition: PointCloudIO.cpp:115
static void BM_TestPCGrid0_Args(benchmark::internal::Benchmark *b)
Definition: PointCloudIO.cpp:154
bool WritePointCloudToXYZN(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1289
bool ReadPointCloudFromXYZN(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1253
bool remove_infinite_points
Whether to remove all points that have +-inf.
Definition: FileIO.h:64
std::vector< Eigen::Vector3d > getEigenPoints() const
Definition: PointCloudTpl.h:324
int size
Definition: FileIOFactory.cpp:130
Compressed compressed
Definition: FileIO.h:127
std::vector< Eigen::Vector3d > getEigenNormals() const
Definition: ecvPointCloud.cpp:1604
IsAscii write_ascii
Definition: PointCloudIO.cpp:48
std::vector< Eigen::Vector3d > getEigenColors() const
Definition: ecvPointCloud.cpp:1629
std::shared_ptr< ccPointCloud > CreatePointCloudFromMemory(const unsigned char *buffer, const size_t length, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:93
Compressed compressed
Definition: PointCloudIO.cpp:49
bool WritePointCloudToPLY(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1520
const double * e
Definition: essential_matrix_poly.h:10
#define LogDebug(...)
Definition: Logging.h:90
void IOReadTensorPointCloud(benchmark::State &state, const std::string &input_file_path)
Definition: PointCloudIO.cpp:85
Definition: CVPointCloud.h:18
IsAscii write_ascii
Definition: FileIO.h:123
bool AutoReadEntity(const std::string &filename, ccHObject &entity, const ReadPointCloudOption ¶ms)
Definition: AutoIO.cpp:68
bool IsEmpty() const override
Returns !HasPointPositions().
Definition: PointCloud.h:257
bool ReadPointCloudFromPTS(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1603
bool ReadPointCloudFromPLY(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1449
void addEigenColor(const Eigen::Vector3d &color)
Definition: ecvPointCloud.cpp:1721
bool ReadPointCloudFromXYZRGB(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1337
static void BM_TestPCGrid0(::benchmark::State &state)
Definition: PointCloudIO.cpp:145
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms)
Definition: FilePLY.cpp:176
bool ReadPointCloudFromXYZ(const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1113
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, bool write_ascii, bool compressed, bool print_progress)
Definition: PointCloudIO.cpp:158
a[190]
Definition: essential_matrix_poly.h:19
static const std::string input_path_pcd
Definition: PointCloudIO.cpp:29
IsAscii
Definition: FileIO.h:78
BENCHMARK(BM_TestKDTreeLine0) -> Args(
Definition: KDTreeFlann.cpp:73
bool WritePointCloudToSPLAT(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms)
Definition: FileSPLAT.cpp:207
bool WritePointCloudToNPZ(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: PointCloudIO.cpp:186
void clear() override
Clears the entity from all its points and features.
Definition: ecvPointCloud.cpp:530
bool WritePointCloudToPCD(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FilePCD.cpp:1178
Optional parameters to WritePointCloud.
Definition: FileIO.h:77
#define LogError(...)
Definition: Logging.h:60
bool ReadPointCloudFromSPLAT(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms)
Definition: FileSPLAT.cpp:84
const TensorMap & GetPointAttr() const
Getter for point_attr_ TensorMap. Used in Pybind.
Definition: PointCloud.h:111
Compressed
Definition: FileIO.h:79
static const std::unordered_map< std::string, std::function< bool(unsigned char *&, size_t &, const ccPointCloud &, const WritePointCloudOption &)> > in_memory_to_pointcloud_write_function
Definition: PointCloudIO.cpp:80
static const std::unordered_map< std::string, std::function< bool(const std::string &, const ccPointCloud &, const WritePointCloudOption &)> > file_extension_to_pointcloud_write_function
Definition: PointCloudIO.cpp:61
std::string format
Definition: FileIO.h:56
void addEigenNorm(const Eigen::Vector3d &N)
Definition: ecvPointCloud.cpp:1758
#define LogInfo(...)
Definition: Logging.h:81
data::PLYPointCloud pointcloud_ply_data
Definition: PointCloudIO.cpp:28
static const std::unordered_map< std::string, std::function< bool(const unsigned char *, const size_t, ccPointCloud &, const ReadPointCloudOption &)> > in_memory_to_pointcloud_read_function
Definition: PointCloudIO.cpp:52
std::unordered_map< std::string, core::Tensor > ReadNpz(const std::string &file_name)
Definition: NumpyIO.cpp:675
std::shared_ptr< geometry::PointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:62
update_progress(double percent) functor for ConsoleProgressBar
Definition: ProgressReporters.h:56
void WriteNpz(const std::string &file_name, const std::unordered_map< std::string, core::Tensor > &tensor_map)
Definition: NumpyIO.cpp:759
void IOWriteLegacyPointCloud(benchmark::State &state, const std::string &input_file_path, const std::string &output_file_path, const bool write_ascii, const bool write_compressed)
Definition: PointCloudIO.cpp:31
#define LogWarning(...)
Definition: Logging.h:72
void IOReadLegacyPointCloud(benchmark::State &state, const std::string &input_file_path)
Definition: PointCloudIO.cpp:53
std::string ToUpper(const std::string &s)
Convert string to the upper case.
Definition: Helper.cpp:249
core::Tensor & GetPointPositions()
Get the value of the "positions" attribute. Convenience function.
Definition: PointCloud.h:124
std::string GetPath() const
Path to the PLY format point cloud.
Definition: Dataset.h:708
Compare compare
Definition: PointCloudIO.cpp:50
void addEigenPoint(const Eigen::Vector3d &point)
Definition: PointCloudTpl.h:290
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms)
Definition: PointCloudIO.cpp:135
std::shared_ptr< ccPointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:84
std::function< bool(double)> update_progress
Definition: FileIO.h:72
bool WritePointCloudToXYZRGB(const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1373
std::string format
Definition: FileIO.h:116
std::function< bool(double)> update_progress
Definition: FileIO.h:135
bool WritePointCloudInMemoryToXYZ(unsigned char *&buffer, size_t &length, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms)
Definition: FileIOFactory.cpp:1211
::ccPointCloud PointCloud
Definition: PointCloud.h:19
bool remove_nan_points
Whether to remove all points that have nan.
Definition: FileIO.h:62