41 "Aligned image pair must have the same resolution.");
48 if (color_device != depth_device) {
50 "Color {} and depth {} are not on the same device.",
std::string ToString() const
Returns string representation of device, e.g. "CPU:0", "CUDA:0".
static Tensor Zeros(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with zeros.
RGBDImage is for a pair of registered color and depth images,.
GeometryType
Specifies possible geometry types.
The Image class stores image with customizable rows, cols, channels, dtype and device.
cloudViewer::geometry::Image ToLegacy() const
Convert to legacy Image type.
core::Device GetDevice() const override
Get device of the image.
Image To(const core::Device &device, bool copy=false) const
Transfer the image to a specified device.
int64_t GetCols() const
Get the number of columns of the image.
int64_t GetRows() const
Get the number of rows of the image.
RGBDImage A pair of color and depth images.
bool IsEmpty() const override
Is any data stored?
Image depth_
The depth image.
core::Tensor GetMinBound() const
Compute min 2D coordinates for the data (always {0,0}).
RGBDImage To(const core::Device &device, bool copy=false) const
RGBDImage(const Image &color, const Image &depth, bool aligned=true)
Parameterized Constructor.
bool AreAligned() const
Are the depth and color images aligned (same viewpoint and resolution)?
RGBDImage()
Default Comnstructor.
std::string ToString() const
Text description.
bool aligned_
Are the depth and color images aligned (same viewpoint and resolution)?
cloudViewer::geometry::RGBDImage ToLegacy() const
Convert to the legacy RGBDImage format.
RGBDImage & Clear() override
Clear stored data.
core::Device GetDevice() const override
Returns the device of the geometry.
core::Tensor GetMaxBound() const
Compute max 2D coordinates for the data.
Image color_
The color image.
RGBDImage Clone() const
Returns copy of the RGBD image on the same device.
Generic file read and write utility for python interface.