10 #ifndef __mrpt_vision_image_pyramid_H 11 #define __mrpt_vision_image_pyramid_H 78 const bool smooth_halves =
true,
const bool convert_grayscale =
false);
87 const bool smooth_halves =
true,
const bool convert_grayscale =
false);
94 std::vector<mrpt::utils::CImage>
images;
void buildPyramid(const mrpt::utils::CImage &img, const size_t nOctaves, const bool smooth_halves=true, const bool convert_grayscale=false)
Fills the vector images with the different octaves built from the input image.
A class for storing images as grayscale or RGB bitmaps.
Holds and builds a pyramid of images: starting with an image at full resolution (octave=1), it builds a number of half-resolution images: octave=2 at 1/2 , octave=3 at 1/2^2, octave=N at 1/2^(N-1).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CImagePyramid()
Default constructor, does nothing.
~CImagePyramid()
Destructor, frees the stored images.
void buildPyramidFast(mrpt::utils::CImage &img, const size_t nOctaves, const bool smooth_halves=true, const bool convert_grayscale=false)
Exactly like buildPyramid(), but if the input image has not to be converted from RGB to grayscale...
std::vector< mrpt::utils::CImage > images
The individual images: