28 if (
color.NumElements() == 0) {
33 color.GetDtype().ToString());
87 double* Tinv_ptr = Tinv.GetDataPtr<
double>();
90 Tinv_ptr[0 * 4 + 0] = T_ptr[0 * 4 + 0];
91 Tinv_ptr[0 * 4 + 1] = T_ptr[1 * 4 + 0];
92 Tinv_ptr[0 * 4 + 2] = T_ptr[2 * 4 + 0];
94 Tinv_ptr[1 * 4 + 0] = T_ptr[0 * 4 + 1];
95 Tinv_ptr[1 * 4 + 1] = T_ptr[1 * 4 + 1];
96 Tinv_ptr[1 * 4 + 2] = T_ptr[2 * 4 + 1];
98 Tinv_ptr[2 * 4 + 0] = T_ptr[0 * 4 + 2];
99 Tinv_ptr[2 * 4 + 1] = T_ptr[1 * 4 + 2];
100 Tinv_ptr[2 * 4 + 2] = T_ptr[2 * 4 + 2];
103 Tinv_ptr[0 * 4 + 3] = -(Tinv_ptr[0 * 4 + 0] * T_ptr[0 * 4 + 3] +
104 Tinv_ptr[0 * 4 + 1] * T_ptr[1 * 4 + 3] +
105 Tinv_ptr[0 * 4 + 2] * T_ptr[2 * 4 + 3]);
106 Tinv_ptr[1 * 4 + 3] = -(Tinv_ptr[1 * 4 + 0] * T_ptr[0 * 4 + 3] +
107 Tinv_ptr[1 * 4 + 1] * T_ptr[1 * 4 + 3] +
108 Tinv_ptr[1 * 4 + 2] * T_ptr[2 * 4 + 3]);
109 Tinv_ptr[2 * 4 + 3] = -(Tinv_ptr[2 * 4 + 0] * T_ptr[0 * 4 + 3] +
110 Tinv_ptr[2 * 4 + 1] * T_ptr[1 * 4 + 3] +
111 Tinv_ptr[2 * 4 + 2] * T_ptr[2 * 4 + 3]);
114 Tinv_ptr[3 * 4 + 0] = 0;
115 Tinv_ptr[3 * 4 + 1] = 0;
116 Tinv_ptr[3 * 4 + 2] = 0;
117 Tinv_ptr[3 * 4 + 3] = 1;
math::float4 color
Definition: LineSetBuffers.cpp:45
#define LogError(...)
Definition: Logging.h:48
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:43
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:58
static const Dtype Float64
Definition: Dtype.h:24
static const Dtype Int32
Definition: Dtype.h:27
std::string ToString() const
Definition: Dtype.h:64
Definition: SizeVector.h:69
T * GetDataPtr()
Definition: Tensor.h:1143
SizeVector GetShape() const
Definition: Tensor.h:1126
bool IsContiguous() const
Definition: Tensor.h:1035
int64_t NumElements() const
Definition: Tensor.h:1169
Dtype GetDtype() const
Definition: Tensor.h:1163
const Dtype UInt16
Definition: Dtype.cpp:49
const Dtype UInt8
Definition: Dtype.cpp:48
const Dtype Float64
Definition: Dtype.cpp:43
const Dtype Float32
Definition: Dtype.cpp:42
core::Tensor InverseTransformation(const core::Tensor &T)
TODO(wei): find a proper place for such functionalities.
Definition: Utility.h:77
void CheckBlockCoorinates(const core::Tensor &block_coords)
Definition: Utility.h:69
void CheckIntrinsicTensor(const core::Tensor &intrinsic)
Definition: Utility.h:37
void CheckColorTensor(const core::Tensor &color)
Definition: Utility.h:27
void CheckDepthTensor(const core::Tensor &depth)
Definition: Utility.h:17
void CheckExtrinsicTensor(const core::Tensor &extrinsic)
Definition: Utility.h:53
Definition: PinholeCameraIntrinsic.cpp:16