Open3D (C++ API)  0.12.0
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 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 
31 #include "open3d/io/PointCloudIO.h"
33 
34 namespace open3d {
35 namespace t {
36 namespace io {
37 
40 
43 std::shared_ptr<geometry::PointCloud> CreatetPointCloudFromFile(
44  const std::string &filename,
45  const std::string &format = "auto",
46  bool print_progress = false);
47 
52 bool ReadPointCloud(const std::string &filename,
53  geometry::PointCloud &pointcloud,
54  const ReadPointCloudOption &params = {});
55 
60 bool WritePointCloud(const std::string &filename,
61  const geometry::PointCloud &pointcloud,
62  const WritePointCloudOption &params = {});
63 
64 bool ReadPointCloudFromXYZI(const std::string &filename,
65  geometry::PointCloud &pointcloud,
66  const ReadPointCloudOption &params);
67 
68 bool WritePointCloudToXYZI(const std::string &filename,
69  const geometry::PointCloud &pointcloud,
70  const WritePointCloudOption &params);
71 
72 bool ReadPointCloudFromPLY(const std::string &filename,
73  geometry::PointCloud &pointcloud,
74  const ReadPointCloudOption &params);
75 
76 bool WritePointCloudToPLY(const std::string &filename,
77  const geometry::PointCloud &pointcloud,
78  const WritePointCloudOption &params);
79 
80 } // namespace io
81 } // namespace t
82 } // namespace open3d
bool WritePointCloudToPLY(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FilePLY.cpp:337
Optional parameters to ReadPointCloud.
Definition: PointCloudIO.h:45
std::shared_ptr< geometry::PointCloud > CreatetPointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: PointCloudIO.cpp:62
bool ReadPointCloudFromPLY(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FilePLY.cpp:174
Optional parameters to WritePointCloud.
Definition: PointCloudIO.h:90
Definition: PinholeCameraIntrinsic.cpp:35
bool WritePointCloudToXYZI(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: FileXYZI.cpp:91
bool ReadPointCloud(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: PointCloudIO.cpp:71
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:191
bool WritePointCloud(const std::string &filename, const geometry::PointCloud &pointcloud, const open3d::io::WritePointCloudOption &params)
Definition: PointCloudIO.cpp:127
bool ReadPointCloudFromXYZI(const std::string &filename, geometry::PointCloud &pointcloud, const open3d::io::ReadPointCloudOption &params)
Definition: FileXYZI.cpp:45