Open3D (C++ API)  0.18.0
NumpyIO.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 #include <unordered_map>
12 
13 #include "open3d/core/Tensor.h"
14 
15 namespace open3d {
16 namespace t {
17 namespace io {
18 
22 core::Tensor ReadNpy(const std::string& file_name);
23 
28 void WriteNpy(const std::string& file_name, const core::Tensor& tensor);
29 
33 std::unordered_map<std::string, core::Tensor> ReadNpz(
34  const std::string& file_name);
35 
40 void WriteNpz(const std::string& file_name,
41  const std::unordered_map<std::string, core::Tensor>& tensor_map);
42 
43 } // namespace io
44 } // namespace t
45 } // namespace open3d
void WriteNpz(const std::string &file_name, const std::unordered_map< std::string, core::Tensor > &tensor_map)
Definition: NumpyIO.cpp:759
void WriteNpy(const std::string &file_name, const core::Tensor &tensor)
Definition: NumpyIO.cpp:671
std::unordered_map< std::string, core::Tensor > ReadNpz(const std::string &file_name)
Definition: NumpyIO.cpp:675
core::Tensor ReadNpy(const std::string &file_name)
Definition: NumpyIO.cpp:662
Definition: PinholeCameraIntrinsic.cpp:16