Open3D (C++ API)  0.18.0
VoxelGridIO.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 
13 
14 namespace open3d {
15 namespace io {
16 
19 std::shared_ptr<geometry::VoxelGrid> CreateVoxelGridFromFile(
20  const std::string &filename,
21  const std::string &format = "auto",
22  bool print_progress = false);
23 
27 bool ReadVoxelGrid(const std::string &filename,
28  geometry::VoxelGrid &voxelgrid,
29  const std::string &format = "auto",
30  bool print_progress = false);
31 
37 bool WriteVoxelGrid(const std::string &filename,
38  const geometry::VoxelGrid &voxelgrid,
39  bool write_ascii = false,
40  bool compressed = false,
41  bool print_progress = false);
42 
43 bool ReadVoxelGridFromPLY(const std::string &filename,
44  geometry::VoxelGrid &voxelgrid,
45  bool print_progress = false);
46 
47 bool WriteVoxelGridToPLY(const std::string &filename,
48  const geometry::VoxelGrid &voxelgrid,
49  bool write_ascii = false,
50  bool compressed = false,
51  bool print_progress = false);
52 
53 } // namespace io
54 } // namespace open3d
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:195
bool ReadVoxelGridFromPLY(const std::string &filename, geometry::VoxelGrid &voxelgrid, bool print_progress)
Definition: FilePLY.cpp:842
bool ReadVoxelGrid(const std::string &filename, geometry::VoxelGrid &voxelgrid, const std::string &format, bool print_progress)
Definition: VoxelGridIO.cpp:49
std::shared_ptr< geometry::VoxelGrid > CreateVoxelGridFromFile(const std::string &filename, const std::string &format, bool print_progress)
Definition: VoxelGridIO.cpp:40
bool WriteVoxelGridToPLY(const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii, bool compressed, bool print_progress)
Definition: FilePLY.cpp:914
bool WriteVoxelGrid(const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii, bool compressed, bool print_progress)
Definition: VoxelGridIO.cpp:77
Definition: PinholeCameraIntrinsic.cpp:16