ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PointCloudIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
14 
15 namespace cloudViewer {
16 namespace t {
17 namespace io {
18 
21 
24 std::shared_ptr<geometry::PointCloud> CreatePointCloudFromFile(
25  const std::string &filename,
26  const std::string &format = "auto",
27  bool print_progress = false);
28 
33 bool ReadPointCloud(const std::string &filename,
34  geometry::PointCloud &pointcloud,
35  const ReadPointCloudOption &params = {});
36 
41 bool WritePointCloud(const std::string &filename,
42  const geometry::PointCloud &pointcloud,
43  const WritePointCloudOption &params = {});
44 
45 bool ReadPointCloudFromNPZ(const std::string &filename,
46  geometry::PointCloud &pointcloud,
47  const ReadPointCloudOption &params);
48 
49 bool WritePointCloudToNPZ(const std::string &filename,
50  const geometry::PointCloud &pointcloud,
51  const WritePointCloudOption &params);
52 
53 bool ReadPointCloudFromTXT(const std::string &filename,
54  geometry::PointCloud &pointcloud,
55  const ReadPointCloudOption &params);
56 
57 bool WritePointCloudToTXT(const std::string &filename,
58  const geometry::PointCloud &pointcloud,
59  const WritePointCloudOption &params);
60 
61 bool ReadPointCloudFromPCD(const std::string &filename,
62  geometry::PointCloud &pointcloud,
63  const ReadPointCloudOption &params);
64 
65 bool WritePointCloudToPCD(const std::string &filename,
66  const geometry::PointCloud &pointcloud,
67  const WritePointCloudOption &params);
68 
69 bool ReadPointCloudFromPLY(const std::string &filename,
70  geometry::PointCloud &pointcloud,
71  const ReadPointCloudOption &params);
72 
73 bool WritePointCloudToPLY(const std::string &filename,
74  const geometry::PointCloud &pointcloud,
75  const WritePointCloudOption &params);
76 
77 bool ReadPointCloudFromSPLAT(const std::string &filename,
78  geometry::PointCloud &pointcloud,
79  const ReadPointCloudOption &params);
80 
81 bool WritePointCloudToSPLAT(const std::string &filename,
82  const geometry::PointCloud &pointcloud,
83  const WritePointCloudOption &params);
84 
85 bool ReadPointCloudFromPTS(const std::string &filename,
86  geometry::PointCloud &pointcloud,
87  const ReadPointCloudOption &params);
88 
89 bool WritePointCloudToPTS(const std::string &filename,
90  const geometry::PointCloud &pointcloud,
91  const WritePointCloudOption &params);
92 
93 } // namespace io
94 } // namespace t
95 } // namespace cloudViewer
std::string filename
filament::Texture::InternalFormat format
cmdLineReadable * params[]
::ccPointCloud PointCloud
Definition: PointCloud.h:19
bool ReadPointCloudFromTXT(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption &params)
Definition: FileTXT.cpp:27
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption &params)
bool ReadPointCloudFromPTS(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePTS.cpp:23
bool WritePointCloudToTXT(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption &params)
Definition: FileTXT.cpp:132
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption &params)
Definition: FilePLY.cpp:355
std::shared_ptr< geometry::PointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
bool WritePointCloudToPTS(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePTS.cpp:191
bool WritePointCloudToPCD(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePCD.cpp:1178
bool ReadPointCloudFromSPLAT(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption &params)
Definition: FileSPLAT.cpp:84
bool ReadPointCloudFromPCD(const std::string &filename, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePCD.cpp:1140
bool WritePointCloudToSPLAT(const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption &params)
Definition: FileSPLAT.cpp:207
bool ReadPointCloudFromNPZ(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption &params)
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption &params)
Definition: FilePLY.cpp:176
bool WritePointCloudToNPZ(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Generic file read and write utility for python interface.
Optional parameters to ReadPointCloud.
Definition: FileIO.h:39
Optional parameters to WritePointCloud.
Definition: FileIO.h:77