17 CImagePyramid::CImagePyramid() {}
18 CImagePyramid::~CImagePyramid()
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]);
61 void CImagePyramid::buildPyramid(
63 const bool smooth_halves,
const bool convert_grayscale)
65 buildPyramid_templ<false>(
70 void CImagePyramid::buildPyramidFast(
72 const bool convert_grayscale)
74 buildPyramid_templ<true>(
75 *
this,
img, nOctaves, smooth_halves, convert_grayscale);
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
#define ASSERT_ABOVE_(__A, __B)
A class for storing images as grayscale or RGB bitmaps.
GLsizei GLsizei GLuint * obj
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).
void buildPyramid_templ(CImagePyramid &obj, mrpt::utils::CImage &img, const size_t nOctaves, const bool smooth_halves, const bool convert_grayscale)
Classes for computer vision, detectors, features, etc.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.