26 return Eigen::Vector2d(0.0, 0.0);
36 rgbd_image_pyramid_filtered.clear();
37 int num_of_levels = (int)rgbd_image_pyramid.size();
38 for (
int level = 0; level < num_of_levels; level++) {
39 auto color_level = rgbd_image_pyramid[level]->color_;
40 auto depth_level = rgbd_image_pyramid[level]->depth_;
41 auto color_level_filtered = color_level.Filter(
type);
42 auto depth_level_filtered = depth_level.Filter(
type);
43 auto rgbd_image_level_filtered = std::make_shared<RGBDImage>(
44 RGBDImage(*color_level_filtered, *depth_level_filtered));
45 rgbd_image_pyramid_filtered.push_back(rgbd_image_level_filtered);
47 return rgbd_image_pyramid_filtered;
52 bool with_gaussian_filter_for_color ,
53 bool with_gaussian_filter_for_depth )
const {
59 rgbd_image_pyramid.clear();
60 for (
size_t level = 0; level < num_of_levels; level++) {
61 auto rgbd_image_level = std::make_shared<RGBDImage>(
62 RGBDImage(*color_pyramid[level], *depth_pyramid[level]));
63 rgbd_image_pyramid.push_back(rgbd_image_level);
65 return rgbd_image_pyramid;
virtual ccBBox GetAxisAlignedBoundingBox() const
Returns an axis-aligned bounding box of the geometry.
int height_
Height of the image.
int width_
Width of the image.
ImagePyramid CreatePyramid(size_t num_of_levels, bool with_gaussian_filter=true) const
Function to create image pyramid.
FilterType
Specifies the Image filter type.
RGBDImage is for a pair of registered color and depth images,.
virtual Eigen::Vector2d GetMin2DBound() const override
Image color_
The color image.
virtual Eigen::Vector2d GetMax2DBound() const override
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.
Image depth_
The depth image.
virtual ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
static RGBDImagePyramid FilterPyramid(const RGBDImagePyramid &rgbd_image_pyramid, Image::FilterType type)
std::vector< std::shared_ptr< RGBDImage > > RGBDImagePyramid
Typedef and functions for RGBDImagePyramid.
std::vector< std::shared_ptr< Image > > ImagePyramid
Typedef and functions for ImagePyramid.
Generic file read and write utility for python interface.