![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
RGBDImage A pair of color and depth images. More...
#include <RGBDImage.h>


Public Member Functions | |
| RGBDImage () | |
| Default Comnstructor. More... | |
| RGBDImage (const Image &color, const Image &depth, bool aligned=true) | |
| Parameterized Constructor. More... | |
| core::Device | GetDevice () const override |
| Returns the device of the geometry. More... | |
| ~RGBDImage () override | |
| RGBDImage & | Clear () override |
| Clear stored data. More... | |
| bool | IsEmpty () const override |
| Is any data stored? More... | |
| bool | AreAligned () const |
| Are the depth and color images aligned (same viewpoint and resolution)? More... | |
| core::Tensor | GetMinBound () const |
| Compute min 2D coordinates for the data (always {0,0}). More... | |
| core::Tensor | GetMaxBound () const |
| Compute max 2D coordinates for the data. More... | |
| RGBDImage | To (const core::Device &device, bool copy=false) const |
| RGBDImage | Clone () const |
| Returns copy of the RGBD image on the same device. More... | |
| cloudViewer::geometry::RGBDImage | ToLegacy () const |
| Convert to the legacy RGBDImage format. More... | |
| std::string | ToString () const |
| Text description. More... | |
Public Member Functions inherited from cloudViewer::t::geometry::Geometry | |
| virtual | ~Geometry () |
| GeometryType | GetGeometryType () const |
| Returns one of registered geometry types. More... | |
| int | Dimension () const |
| Returns whether the geometry is 2D or 3D. More... | |
| std::string | GetName () const |
| void | SetName (const std::string &name) |
Public Member Functions inherited from cloudViewer::core::IsDevice | |
| IsDevice ()=default | |
| virtual | ~IsDevice ()=default |
| bool | IsCPU () const |
| bool | IsCUDA () const |
| bool | IsSYCL () const |
Public Attributes | |
| Image | color_ |
| The color image. More... | |
| Image | depth_ |
| The depth image. More... | |
| bool | aligned_ = true |
| Are the depth and color images aligned (same viewpoint and resolution)? More... | |
Additional Inherited Members | |
Public Types inherited from cloudViewer::t::geometry::Geometry | |
| enum class | GeometryType { Unspecified = 0 , PointCloud = 1 , VoxelGrid = 2 , Octree = 3 , LineSet = 4 , MeshBase = 5 , TriangleMesh = 6 , HalfEdgeTriangleMesh = 7 , Image = 8 , RGBDImage = 9 , TetraMesh = 10 , OrientedBoundingBox = 11 , AxisAlignedBoundingBox = 12 } |
| Specifies possible geometry types. More... | |
Protected Member Functions inherited from cloudViewer::t::geometry::Geometry | |
| Geometry (GeometryType type, int dimension) | |
| Parameterized Constructor. More... | |
RGBDImage A pair of color and depth images.
For most processing, the image pair should be aligned (same viewpoint and resolution).
Definition at line 21 of file RGBDImage.h.
|
inline |
|
inline |
Parameterized Constructor.
| color | The color image. |
| depth | The depth image. |
| aligned | Are the two images aligned (same viewpoint and resolution)? |
Definition at line 32 of file RGBDImage.h.
References aligned_, color, cloudViewer::t::geometry::Image::GetCols(), cloudViewer::t::geometry::Image::GetRows(), and LogWarning.
|
inlineoverride |
Definition at line 56 of file RGBDImage.h.
|
inline |
Are the depth and color images aligned (same viewpoint and resolution)?
Definition at line 65 of file RGBDImage.h.
References aligned_.
Referenced by cloudViewer::t::geometry::pybind_image(), and ToString().
|
overridevirtual |
Clear stored data.
Implements cloudViewer::t::geometry::Geometry.
Definition at line 14 of file RGBDImage.cpp.
References cloudViewer::t::geometry::Image::Clear(), color_, and depth_.
Referenced by cloudViewer::t::geometry::pybind_image().
|
inline |
Returns copy of the RGBD image on the same device.
Definition at line 91 of file RGBDImage.h.
References color_, cloudViewer::t::geometry::Image::GetDevice(), and To().
Referenced by cloudViewer::t::geometry::pybind_image().
|
inlineoverridevirtual |
Returns the device of the geometry.
Implements cloudViewer::t::geometry::Geometry.
Definition at line 45 of file RGBDImage.h.
References color_, depth_, cloudViewer::t::geometry::Image::GetDevice(), LogError, and cloudViewer::core::Device::ToString().
|
inline |
Compute max 2D coordinates for the data.
Definition at line 73 of file RGBDImage.h.
References color_, depth_, cloudViewer::t::geometry::Image::GetCols(), cloudViewer::t::geometry::Image::GetRows(), and cloudViewer::core::Int64.
Referenced by cloudViewer::t::geometry::pybind_image().
|
inline |
Compute min 2D coordinates for the data (always {0,0}).
Definition at line 68 of file RGBDImage.h.
References cloudViewer::core::Int64, and cloudViewer::core::Tensor::Zeros().
Referenced by cloudViewer::t::geometry::pybind_image().
|
overridevirtual |
Is any data stored?
Implements cloudViewer::t::geometry::Geometry.
Definition at line 20 of file RGBDImage.cpp.
References color_, depth_, and cloudViewer::t::geometry::Image::IsEmpty().
Referenced by cloudViewer::t::geometry::pybind_image().
|
inline |
Transfer the RGBD image to a specified device.
| device | The targeted device to convert to. |
| copy | If true, a new image is always created; if false, the copy is avoided when the original image is already on the target device. |
Definition at line 85 of file RGBDImage.h.
References aligned_, color_, copy, depth_, RGBDImage(), and cloudViewer::t::geometry::Image::To().
Referenced by Clone(), and cloudViewer::t::geometry::pybind_image().
|
inline |
Convert to the legacy RGBDImage format.
Definition at line 94 of file RGBDImage.h.
References color_, depth_, and cloudViewer::t::geometry::Image::ToLegacy().
Referenced by cloudViewer::t::geometry::pybind_image().
| std::string cloudViewer::t::geometry::RGBDImage::ToString | ( | ) | const |
Text description.
Definition at line 22 of file RGBDImage.cpp.
References AreAligned(), color_, depth_, format, cloudViewer::t::geometry::Image::GetChannels(), cloudViewer::t::geometry::Image::GetCols(), cloudViewer::t::geometry::Image::GetDevice(), cloudViewer::t::geometry::Image::GetDtype(), cloudViewer::t::geometry::Image::GetRows(), cloudViewer::core::Device::ToString(), and cloudViewer::core::Dtype::ToString().
Referenced by cloudViewer::t::geometry::pybind_image().
| bool cloudViewer::t::geometry::RGBDImage::aligned_ = true |
Are the depth and color images aligned (same viewpoint and resolution)?
Definition at line 108 of file RGBDImage.h.
Referenced by AreAligned(), cloudViewer::t::geometry::pybind_image(), RGBDImage(), and To().
| Image cloudViewer::t::geometry::RGBDImage::color_ |
The color image.
Definition at line 104 of file RGBDImage.h.
Referenced by cloudViewer::t::io::RealSenseSensor::CaptureFrame(), Clear(), Clone(), cloudViewer::t::geometry::PointCloud::CreateFromRGBDImage(), cloudViewer::t::pipelines::slac::ControlGrid::Deform(), GetDevice(), GetMaxBound(), IsEmpty(), cloudViewer::t::geometry::pybind_image(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScale(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScaleHybrid(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScaleIntensity(), To(), ToLegacy(), and ToString().
| Image cloudViewer::t::geometry::RGBDImage::depth_ |
The depth image.
Definition at line 106 of file RGBDImage.h.
Referenced by cloudViewer::t::io::RealSenseSensor::CaptureFrame(), Clear(), cloudViewer::t::geometry::PointCloud::CreateFromRGBDImage(), cloudViewer::t::pipelines::slac::ControlGrid::Deform(), GetDevice(), GetMaxBound(), IsEmpty(), cloudViewer::t::geometry::pybind_image(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScale(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScaleHybrid(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScaleIntensity(), cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScalePointToPlane(), To(), ToLegacy(), and ToString().