Go to the documentation of this file.
24 template <
bool FASTLOAD>
27 const bool smooth_halves,
const bool convert_grayscale)
32 obj.images.resize(nOctaves);
35 if (convert_grayscale &&
img.isColor())
39 img.grayscale(
obj.images[0]);
45 obj.images[0].copyFastFrom(
52 for (
size_t o = 1; o < nOctaves; o++)
55 obj.images[o - 1].scaleHalfSmooth(
obj.images[o]);
57 obj.images[o - 1].scaleHalf(
obj.images[o]);
63 const bool smooth_halves,
const bool convert_grayscale)
65 buildPyramid_templ<false>(
72 const bool convert_grayscale)
74 buildPyramid_templ<true>(
75 *
this,
img, nOctaves, smooth_halves, convert_grayscale);
void buildPyramid_templ(CImagePyramid &obj, mrpt::img::CImage &img, const size_t nOctaves, const bool smooth_halves, const bool convert_grayscale)
void buildPyramidFast(mrpt::img::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,...
#define ASSERT_ABOVE_(__A, __B)
Classes for computer vision, detectors, features, etc.
GLsizei GLsizei GLuint * obj
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
~CImagePyramid()
Destructor, frees the stored images.
CImagePyramid()
Default constructor, does nothing.
void buildPyramid(const mrpt::img::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),...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |