Open3D (C++ API)
0.18.0+252c867
|
Functions | |
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | TensorToEigenMatrixXd (const core::Tensor &tensor) |
Converts a 2D tensor to Eigen::MatrixXd of same shape. Regardless of the tensor dtype, the output will be converted to double. More... | |
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | TensorToEigenMatrixXf (const core::Tensor &tensor) |
Converts a 2D tensor to Eigen::MatrixXf of same shape. Regardless of the tensor dtype, the output will be converted to float. More... | |
Eigen::Matrix< int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | TensorToEigenMatrixXi (const core::Tensor &tensor) |
Converts a 2D tensor to Eigen::MatrixXi of same shape. Regardless of the tensor dtype, the output will be converted to int. More... | |
std::vector< Eigen::Vector2d > | TensorToEigenVector2dVector (const core::Tensor &tensor) |
Converts a tensor of shape (N, 2) to std::vector<Eigen::Vector2d>. An exception will be thrown if the tensor shape is not (N, 2). Regardless of the tensor dtype, the output will be converted to double. More... | |
std::vector< Eigen::Vector3d > | 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 double. More... | |
std::vector< Eigen::Vector3i > | 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 int. More... | |
std::vector< Eigen::Vector2i > | TensorToEigenVector2iVector (const core::Tensor &tensor) |
Converts a tensor of shape (N, 2) to std::vector<Eigen::Vector2i>. An exception will be thrown if the tensor shape is not (N, 2). Regardless of the tensor dtype, the output will be converted to int. More... | |
core::Tensor | 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. More... | |
core::Tensor | EigenVector2dVectorToTensor (const std::vector< Eigen::Vector2d > &values, core::Dtype dtype, const core::Device &device) |
Converts a vector of Eigen::Vector2d to a (N, 2) tensor. This function also takes care of dtype conversion and device transfer if necessary. More... | |
core::Tensor | 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. More... | |
core::Tensor | EigenVector2iVectorToTensor (const std::vector< Eigen::Vector2i > &values, core::Dtype dtype, const core::Device &device) |
Converts a vector of Eigen::Vector2i to a (N, 2) tensor. This function also takes care of dtype conversion and device transfer if necessary. More... | |
template<class Derived > | |
core::Tensor | EigenMatrixToTensor (const Eigen::MatrixBase< Derived > &matrix) |
Converts a eigen matrix of shape (M, N) with alignment A and type T to a tensor. More... | |
core::Tensor open3d::core::eigen_converter::EigenMatrixToTensor | ( | const Eigen::MatrixBase< Derived > & | matrix | ) |
Converts a eigen matrix of shape (M, N) with alignment A and type T to a tensor.
matrix | An eigen matrix (e.g. Eigen::Matrix3f) or vector (e.g. Eigen::Vector3d). |
core::Tensor open3d::core::eigen_converter::EigenVector2dVectorToTensor | ( | const std::vector< Eigen::Vector2d > & | values, |
core::Dtype | dtype, | ||
const core::Device & | device | ||
) |
Converts a vector of Eigen::Vector2d to a (N, 2) tensor. This function also takes care of dtype conversion and device transfer if necessary.
values | A vector of Eigen::Vector2d values, e.g. a list of UV coordinates. |
dtype | Dtype of the output tensor. |
device | Device of the output tensor. |
core::Tensor open3d::core::eigen_converter::EigenVector2iVectorToTensor | ( | const std::vector< Eigen::Vector2i > & | values, |
core::Dtype | dtype, | ||
const core::Device & | device | ||
) |
Converts a vector of Eigen::Vector2i to a (N, 2) tensor. This function also takes care of dtype conversion and device transfer if necessary.
values | A vector of Eigen::Vector2i values, e.g. a list of 2D points / indices. |
dtype | Dtype of the output tensor. |
device | Device of the output tensor. |
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. |
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > open3d::core::eigen_converter::TensorToEigenMatrixXd | ( | const core::Tensor & | tensor | ) |
Converts a 2D tensor to Eigen::MatrixXd of same shape. Regardless of the tensor dtype, the output will be converted to double.
tensor | A 2D tensor. |
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > open3d::core::eigen_converter::TensorToEigenMatrixXf | ( | const core::Tensor & | tensor | ) |
Converts a 2D tensor to Eigen::MatrixXf of same shape. Regardless of the tensor dtype, the output will be converted to float.
tensor | A 2D tensor. |
Eigen::Matrix< int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > open3d::core::eigen_converter::TensorToEigenMatrixXi | ( | const core::Tensor & | tensor | ) |
Converts a 2D tensor to Eigen::MatrixXi of same shape. Regardless of the tensor dtype, the output will be converted to int.
tensor | A 2D tensor. |
std::vector< Eigen::Vector2d > open3d::core::eigen_converter::TensorToEigenVector2dVector | ( | const core::Tensor & | tensor | ) |
Converts a tensor of shape (N, 2) to std::vector<Eigen::Vector2d>. An exception will be thrown if the tensor shape is not (N, 2). Regardless of the tensor dtype, the output will be converted to double.
tensor | A tensor of shape (N, 2). |
std::vector< Eigen::Vector2i > open3d::core::eigen_converter::TensorToEigenVector2iVector | ( | const core::Tensor & | tensor | ) |
Converts a tensor of shape (N, 2) to std::vector<Eigen::Vector2i>. An exception will be thrown if the tensor shape is not (N, 2). Regardless of the tensor dtype, the output will be converted to int.
tensor | A tensor of shape (N, 2). |
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 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 int.
tensor | A tensor of shape (N, 3). |