37 const char *
name =
"RGBD_Image")
53 virtual ccBBox getOwnBB(
bool withGLFeatures =
false)
override;
57 inline virtual bool IsEmpty()
const override {
58 return !color_.HasData() || !depth_.HasData();
61 virtual Eigen::Vector2d GetMin2DBound()
const override;
62 virtual Eigen::Vector2d GetMax2DBound()
const override;
74 static std::shared_ptr<RGBDImage> CreateFromColorAndDepth(
77 double depth_scale = 1000.0,
78 double depth_trunc = 3.0,
79 bool convert_rgb_to_intensity =
true);
87 static std::shared_ptr<RGBDImage> CreateFromRedwoodFormat(
90 bool convert_rgb_to_intensity =
true);
98 static std::shared_ptr<RGBDImage> CreateFromTUMFormat(
101 bool convert_rgb_to_intensity =
true);
109 static std::shared_ptr<RGBDImage> CreateFromSUNFormat(
112 bool convert_rgb_to_intensity =
true);
120 static std::shared_ptr<RGBDImage> CreateFromNYUFormat(
123 bool convert_rgb_to_intensity =
true);
129 size_t num_of_levels,
130 bool with_gaussian_filter_for_color =
true,
131 bool with_gaussian_filter_for_depth =
false)
const;
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Hierarchical CLOUDVIEWER Object.
The Image class stores image with customizable width, height, num of channels and bytes per channel.
FilterType
Specifies the Image filter type.
RGBDImage is for a pair of registered color and depth images,.
virtual bool isSerializable() const override
Returns whether object is serializable of not.
Image color_
The color image.
RGBDImage(const Image &color, const Image &depth, const char *name="RGBD_Image")
Parameterized Constructor.
RGBDImage(const char *name="RGBD_Image")
Default Constructor.
Image depth_
The depth image.
virtual bool IsEmpty() const override
virtual CV_CLASS_ENUM getClassID() const override
Returns unique class ID.
std::vector< std::shared_ptr< RGBDImage > > RGBDImagePyramid
Typedef and functions for RGBDImagePyramid.
Generic file read and write utility for python interface.