Open3D (C++ API)  0.15.1
PointCloudIO.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// The MIT License (MIT)
5//
6// Copyright (c) 2018-2021 www.open3d.org
7//
8// Permission is hereby granted, free of charge, to any person obtaining a copy
9// of this software and associated documentation files (the "Software"), to deal
10// in the Software without restriction, including without limitation the rights
11// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12// copies of the Software, and to permit persons to whom the Software is
13// furnished to do so, subject to the following conditions:
14//
15// The above copyright notice and this permission notice shall be included in
16// all copies or substantial portions of the Software.
17//
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24// IN THE SOFTWARE.
25// ----------------------------------------------------------------------------
26
27#pragma once
28
29#include <string>
30
33
34namespace open3d {
35namespace t {
36namespace io {
37
40
43std::shared_ptr<geometry::PointCloud> CreatePointCloudFromFile(
44 const std::string &filename,
45 const std::string &format = "auto",
46 bool print_progress = false);
47
52bool ReadPointCloud(const std::string &filename,
53 geometry::PointCloud &pointcloud,
54 const ReadPointCloudOption &params = {});
55
60bool WritePointCloud(const std::string &filename,
61 const geometry::PointCloud &pointcloud,
62 const WritePointCloudOption &params = {});
63
64bool ReadPointCloudFromNPZ(const std::string &filename,
65 geometry::PointCloud &pointcloud,
66 const ReadPointCloudOption &params);
67
68bool WritePointCloudToNPZ(const std::string &filename,
69 const geometry::PointCloud &pointcloud,
70 const WritePointCloudOption &params);
71
72bool ReadPointCloudFromXYZI(const std::string &filename,
73 geometry::PointCloud &pointcloud,
74 const ReadPointCloudOption &params);
75
76bool WritePointCloudToXYZI(const std::string &filename,
77 const geometry::PointCloud &pointcloud,
78 const WritePointCloudOption &params);
79
80bool ReadPointCloudFromPCD(const std::string &filename,
81 geometry::PointCloud &pointcloud,
82 const ReadPointCloudOption &params);
83
84bool WritePointCloudToPCD(const std::string &filename,
85 const geometry::PointCloud &pointcloud,
86 const WritePointCloudOption &params);
87
88bool ReadPointCloudFromPLY(const std::string &filename,
89 geometry::PointCloud &pointcloud,
90 const ReadPointCloudOption &params);
91
92bool WritePointCloudToPLY(const std::string &filename,
93 const geometry::PointCloud &pointcloud,
94 const WritePointCloudOption &params);
95
96bool ReadPointCloudFromPTS(const std::string &filename,
97 geometry::PointCloud &pointcloud,
98 const ReadPointCloudOption &params);
99
100bool WritePointCloudToPTS(const std::string &filename,
101 const geometry::PointCloud &pointcloud,
102 const WritePointCloudOption &params);
103
104} // namespace io
105} // namespace t
106} // namespace open3d
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:214
bool ReadPointCloudFromXYZI(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FileXYZI.cpp:45
std::shared_ptr< geometry::PointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:67
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FilePLY.cpp:313
bool WritePointCloudToPCD(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePCD.cpp:1192
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: PointCloudIO.cpp:76
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FilePLY.cpp:166
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: PointCloudIO.cpp:140
bool WritePointCloudToXYZI(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FileXYZI.cpp:90
bool WritePointCloudToNPZ(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: PointCloudIO.cpp:188
bool ReadPointCloudFromPTS(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePTS.cpp:41
bool ReadPointCloudFromNPZ(const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: PointCloudIO.cpp:180
bool WritePointCloudToPTS(const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption &params)
Definition: FilePTS.cpp:214
bool ReadPointCloudFromPCD(const std::string &filename, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption &params)
Definition: FilePCD.cpp:1154
Definition: PinholeCameraIntrinsic.cpp:35
Optional parameters to ReadPointCloud.
Definition: PointCloudIO.h:45
Optional parameters to WritePointCloud.
Definition: PointCloudIO.h:90