37 const char *
name =
"RGBD_Image")
57 inline virtual bool IsEmpty()
const override {
58 return !color_.HasData() || !depth_.HasData();
77 double depth_scale = 1000.0,
78 double depth_trunc = 3.0,
79 bool convert_rgb_to_intensity =
true);
90 bool convert_rgb_to_intensity =
true);
101 bool convert_rgb_to_intensity =
true);
112 bool convert_rgb_to_intensity =
true);
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,.
static std::shared_ptr< RGBDImage > CreateFromTUMFormat(const Image &color, const Image &depth, bool convert_rgb_to_intensity=true)
Factory function to create an RGBD Image from TUM dataset.
virtual bool isSerializable() const override
Returns whether object is serializable of not.
static std::shared_ptr< RGBDImage > CreateFromNYUFormat(const Image &color, const Image &depth, bool convert_rgb_to_intensity=true)
Factory function to create an RGBD Image from NYU dataset.
static std::shared_ptr< RGBDImage > CreateFromSUNFormat(const Image &color, const Image &depth, bool convert_rgb_to_intensity=true)
Factory function to create an RGBD Image from SUN3D dataset.
Image color_
The color image.
virtual Eigen::Vector2d GetMin2DBound() const override
RGBDImage(const Image &color, const Image &depth, const char *name="RGBD_Image")
Parameterized Constructor.
RGBDImagePyramid CreatePyramid(size_t num_of_levels, bool with_gaussian_filter_for_color=true, bool with_gaussian_filter_for_depth=false) const
RGBDImage(const char *name="RGBD_Image")
Default Constructor.
static std::shared_ptr< RGBDImage > CreateFromRedwoodFormat(const Image &color, const Image &depth, bool convert_rgb_to_intensity=true)
Factory function to create an RGBD Image from Redwood dataset.
Image depth_
The depth image.
virtual bool IsEmpty() const override
virtual CV_CLASS_ENUM getClassID() const override
Returns unique class ID.
static RGBDImagePyramid FilterPyramid(const RGBDImagePyramid &rgbd_image_pyramid, Image::FilterType type)
virtual Eigen::Vector2d GetMax2DBound() const override
virtual ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
static std::shared_ptr< RGBDImage > CreateFromColorAndDepth(const Image &color, const Image &depth, double depth_scale=1000.0, double depth_trunc=3.0, bool convert_rgb_to_intensity=true)
Factory function to create an RGBD Image from color and depth Images.
std::vector< std::shared_ptr< RGBDImage > > RGBDImagePyramid
Typedef and functions for RGBDImagePyramid.
Generic file read and write utility for python interface.