|
Open3D (C++ API)
0.12.0
|
Functions | |
| std::vector< Eigen::Vector3d > | TensorToEigenVector3dVector (const core::Tensor &tensor) |
| std::vector< Eigen::Vector3i > | TensorToEigenVector3iVector (const core::Tensor &tensor) |
| core::Tensor | EigenVector3dVectorToTensor (const std::vector< Eigen::Vector3d > &values, core::Dtype dtype, const core::Device &device) |
| core::Tensor | EigenVector3iVectorToTensor (const std::vector< Eigen::Vector3i > &values, core::Dtype dtype, const core::Device &device) |
| template<class T , int M, int N, int A> | |
| core::Tensor | EigenMatrixToTensor (const Eigen::Matrix< T, M, N, A > &matrix) |
| core::Tensor open3d::core::eigen_converter::EigenMatrixToTensor | ( | const Eigen::Matrix< T, M, N, A > & | matrix | ) |
Converts a Eigen matrix of shape (M, N) with alignment A and type T to a Tensor.
| matrix | A templated Eigen matrix. |
| core::Tensor open3d::core::eigen_converter::EigenVector3dVectorToTensor | ( | const std::vector< Eigen::Vector3d > & | values, |
| core::Dtype | dtype, | ||
| const core::Device & | device | ||
| ) |
Converts a vector of Eigen::Vector3d to a (N, 3) tensor. This function also takes care of dtype conversion and device transfer if necessary.
| values | A vector of Eigen::Vector3d values, e.g. a list of 3D points. |
| dtype | Dtype of the output tensor. |
| device | Device of the output tensor. |
| core::Tensor open3d::core::eigen_converter::EigenVector3iVectorToTensor | ( | const std::vector< Eigen::Vector3i > & | values, |
| core::Dtype | dtype, | ||
| const core::Device & | device | ||
| ) |
Converts a vector of Eigen::Vector3i to a (N, 3) tensor. This function also takes care of dtype conversion and device transfer if necessary.
| values | A vector of Eigen::Vector3i values, e.g. a list of 3D points. |
| dtype | Dtype of the output tensor. |
| device | Device of the output tensor. |
| std::vector< Eigen::Vector3d > open3d::core::eigen_converter::TensorToEigenVector3dVector | ( | const core::Tensor & | tensor | ) |
Converts a tensor of shape (N, 3) to std::vector<Eigen::Vector3d>. An exception will be thrown if the tensor shape is not (N, 3). Regardless of the tensor dtype, the output will be converted to to double.
| tensor | A tensor of shape (N, 3). |
| std::vector< Eigen::Vector3i > open3d::core::eigen_converter::TensorToEigenVector3iVector | ( | const core::Tensor & | tensor | ) |
Converts a tensor of shape (N, 3) to std::vector<Eigen::Vector3i>. An exception will be thrown if the tensor shape is not (N, 3). Regardless of the tensor dtype, the output will be converted to to double.
| tensor | A tensor of shape (N, 3). |
1.8.13