Open3D (C++ API)  0.18.0+5c982c7
PointCloudIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
12 #include "open3d/io/PointCloudIO.h"
14 
15 namespace open3d {
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 ReadPointCloudFromPTS(const std::string &filename,
78  geometry::PointCloud &pointcloud,
79  const ReadPointCloudOption &params);
80 
81 bool WritePointCloudToPTS(const std::string &filename,
82  const geometry::PointCloud &pointcloud,
83  const WritePointCloudOption &params);
84 
85 } // namespace io
86 } // namespace t
87 } // namespace open3d
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:195
bool ReadPointCloudFromTXT(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FileTXT.cpp:26
std::shared_ptr< geometry::PointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:58
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FilePLY.cpp:294
bool WritePointCloudToPCD(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePCD.cpp:1173
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: PointCloudIO.cpp:68
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FilePLY.cpp:147
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: PointCloudIO.cpp:131
bool WritePointCloudToTXT(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FileTXT.cpp:130
bool WritePointCloudToNPZ(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: PointCloudIO.cpp:179
bool ReadPointCloudFromPTS(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePTS.cpp:22
bool ReadPointCloudFromNPZ(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: PointCloudIO.cpp:171
bool WritePointCloudToPTS(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePTS.cpp:190
bool ReadPointCloudFromPCD(const std::string &filename, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePCD.cpp:1135
Definition: PinholeCameraIntrinsic.cpp:16
Optional parameters to ReadPointCloud.
Definition: PointCloudIO.h:34
Optional parameters to WritePointCloud.
Definition: PointCloudIO.h:89