 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
double Volume() const
Returns the volume of the bounding box.
Definition: BoundingVolume.h:179
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,...
Definition: EigenConverter.cpp:67
CLOUDVIEWER_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
normal_z x
Definition: my_point_types.h:165
SizeVector GetShape() const
Definition: Tensor.h:1127
OrientedBoundingBox ComputeMinimumOBBApprox(const core::Tensor &points, bool robust)
Definition: MinimumOBB.cpp:1248
OrientedBoundingBox & Rotate(const core::Tensor &rotation, const utility::optional< core::Tensor > ¢er=utility::nullopt)
Rotate the oriented box by the given rotation matrix. If the rotation matrix is not orthogonal,...
Definition: BoundingVolume.cpp:449
Eigen::Matrix3d R_
Definition: MinimumOBB.cpp:49
void SetRotation(const core::Tensor &rotation)
Set the rotation matrix of the box. If the data type of the given tensor differs from the data type o...
Definition: BoundingVolume.cpp:391
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
void SetCenter(const core::Tensor ¢er)
Set the center of the box. If the data type of the given tensor differs from the data type of the box...
Definition: BoundingVolume.cpp:369
OrientedBoundingBox ComputeMinimumOBBJylanki(const core::Tensor &points_, bool robust)
Definition: MinimumOBB.cpp:55
void SetExtent(const core::Tensor &extent)
Set the extent of the box. If the data type of the given tensor differs from the data type of the box...
Definition: BoundingVolume.cpp:377
A point cloud contains a list of 3D points.
Definition: PointCloud.h:82
A bounding box oriented along an arbitrary frame of reference.
Definition: BoundingVolume.h:258
OrientedBoundingBox GetOrientedBoundingBox() const
Convert to an oriented box.
Definition: BoundingVolume.cpp:275
PointCloud & Rotate(const core::Tensor &R, const core::Tensor ¢er)
Rotates the PointPositions and PointNormals (if exists).
Definition: PointCloud.cpp:206
core::Tensor GetCenter() const
Definition: BoundingVolume.h:335
const double * e
Definition: essential_matrix_poly.h:10
Eigen::Vector3d extent_
Definition: MinimumOBB.cpp:50
void swap(cloudViewer::core::SmallVectorImpl< T > &LHS, cloudViewer::core::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.
Definition: SmallVector.h:1370
void To(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: Image.cpp:17
double Volume() const
Returns the volume of the bounding box.
Definition: BoundingVolume.h:385
Eigen::Matrix< Index, 3, 1 > Vector3i
Definition: knncpp.h:30
a[190]
Definition: essential_matrix_poly.h:19
Device GetDevice() const override
Definition: Tensor.cpp:1435
void CopyFrom(const Tensor &other)
Copy Tensor values to current tensor from the source tensor.
Definition: Tensor.cpp:770
AxisAlignedBoundingBox GetAxisAlignedBoundingBox() const
Create an axis-aligned bounding box from attribute "positions".
Definition: PointCloud.cpp:1271
int points
Definition: FileIOFactory.cpp:144
const Dtype Float32
Definition: Dtype.cpp:42
Eigen::Vector3d center_
Definition: MinimumOBB.cpp:51
#define LogError(...)
Definition: Logging.h:60
static AxisAlignedBoundingBox CreateFromPoints(const core::Tensor &points)
Definition: BoundingVolume.cpp:233
core::Tensor GetExtent() const
Definition: BoundingVolume.h:339
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.
Definition: EigenConverter.h:29
constexpr nullopt_t nullopt
Definition: Optional.h:136
core::Tensor & GetPointPositions()
Get the value of the "positions" attribute. Convenience function.
Definition: PointCloud.h:124
::ecvOrientedBBox OrientedBoundingBox
Definition: BoundingVolume.h:22
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...
Definition: EigenConverter.cpp:155
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
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...
Definition: EigenConverter.cpp:150
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
core::Tensor GetRotation() const
Definition: BoundingVolume.h:337
TriangleMesh ComputeConvexHull(bool joggle_inputs=false) const
Definition: PointCloud.cpp:1201