 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
core::Tensor RtToTransformation(const core::Tensor &R, const core::Tensor &t)
Convert rotation and translation to the transformation matrix.
Definition: TransformationConverter.cpp:25
Dtype GetDtype() const
Definition: Tensor.h:1164
void DecodeAndSolve6x6(const core::Tensor &A_reduction, core::Tensor &delta, float &inlier_residual, int &inlier_count)
Decodes a 6x6 linear system from a compressed 29x1 tensor.
Definition: TransformationConverter.cpp:145
void Fill(S v)
Fill the whole Tensor with a scalar value, the scalar will be casted to the Tensor's Dtype.
Definition: Tensor.h:1400
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
Tensor Contiguous() const
Definition: Tensor.cpp:772
Tensor GetItem(const TensorKey &tk) const
Definition: Tensor.cpp:473
static Tensor Zeros(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with zeros.
Definition: Tensor.cpp:406
Tensor SetItem(const Tensor &value)
Set all items. Equivalent to tensor[:] = value in Python.
Definition: Tensor.cpp:564
const Dtype Float64
Definition: Dtype.cpp:43
Device GetDevice() const override
Definition: Tensor.cpp:1435
When CUDA is not enabled, this is a dummy class.
Definition: CUDAUtils.h:214
const Dtype Float32
Definition: Dtype.cpp:42
#define LogError(...)
Definition: Logging.h:60
DeviceType
Type for device.
Definition: Device.h:21
static void PoseToTransformationDevice(core::Tensor &transformation, const core::Tensor &pose, const core::Device::DeviceType &device_type)
Definition: TransformationConverter.cpp:52
static void TransformationToPoseDevice(core::Tensor &pose, const core::Tensor &transformation, const core::Device::DeviceType &device_type)
Definition: TransformationConverter.cpp:99
static TensorKey Slice(utility::optional< int64_t > start, utility::optional< int64_t > stop, utility::optional< int64_t > step)
Definition: TensorKey.cpp:138
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
core::Tensor TransformationToPose(const core::Tensor &transformation)
Convert transformation matrix to pose.
Definition: TransformationConverter.cpp:119
static Tensor Empty(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor with uninitialized values.
Definition: Tensor.cpp:400
#define DISPATCH_FLOAT_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:78
Tensor Solve(const Tensor &rhs) const
Definition: Tensor.cpp:1928
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
core::Tensor PoseToTransformation(const core::Tensor &pose)
Convert pose to the transformation matrix.
Definition: TransformationConverter.cpp:73
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
T * GetDataPtr()
Definition: Tensor.h:1144