Go to the documentation of this file.
15 #include <mrpt/otherlibs/do_opencv_includes.h>
32 ASSERT_(options.LogPolarImagesOptions.radius > 1);
33 ASSERT_(options.LogPolarImagesOptions.num_angles > 1);
34 ASSERT_(options.LogPolarImagesOptions.rho_scale > 0);
36 const unsigned int radius = options.LogPolarImagesOptions.radius;
37 const unsigned int patch_h = options.LogPolarImagesOptions.num_angles;
38 const double rho_scale = options.LogPolarImagesOptions.rho_scale;
39 const unsigned int patch_w =
40 rho_scale * std::log(
static_cast<double>(radius));
47 it != in_features.
end(); ++it)
50 (*it)->scale = radius;
54 in_img.
getAs<IplImage>(), logpolar_frame.
getAs<IplImage>(),
55 cvPoint2D32f((*it)->x, (*it)->y), rho_scale,
56 CV_INTER_LINEAR + CV_WARP_FILL_OUTLIERS);
59 logpolar_frame.
getAsMatrix((*it)->descriptors.LogPolarImg);
TImageChannels getChannelCount() const
Returns the number of channels, typically 1 (GRAY) or 3 (RGB)
void getAsMatrix(mrpt::math::CMatrixFloat &outMatrix, bool doResize=true, int x_min=0, int y_min=0, int x_max=-1, int y_max=-1) const
Returns the image as a matrix with pixel grayscale values in the range [0,1].
Classes for computer vision, detectors, features, etc.
TInternalFeatList::iterator iterator
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
const T * getAs() const
Returns a pointer to a const T* containing the image - the idea is to call like "img....
#define THROW_EXCEPTION(msg)
#define ASSERT_(f)
Defines an assertion mechanism.
A list of visual features, to be used as output by detectors, as input/output by trackers,...
A class for storing images as grayscale or RGB bitmaps.
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
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 | |