15 #include <mrpt/otherlibs/do_opencv_includes.h> 34 ASSERT_(options.LogPolarImagesOptions.radius>1)
35 ASSERT_(options.LogPolarImagesOptions.num_angles>1)
36 ASSERT_(options.LogPolarImagesOptions.rho_scale>0)
38 const unsigned int radius = options.LogPolarImagesOptions.radius;
39 const unsigned int patch_h = options.LogPolarImagesOptions.num_angles;
40 const double rho_scale = options.LogPolarImagesOptions.rho_scale;
41 const unsigned int patch_w = rho_scale * std::log(static_cast<double>(radius));
49 (*it)->scale = radius;
53 in_img.
getAs<IplImage>(),
54 logpolar_frame.getAs<IplImage>(),
55 cvPoint2D32f( (*it)->x,(*it)->y ),
57 CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS );
60 logpolar_frame.getAsMatrix( (*it)->descriptors.LogPolarImg );
TImageChannels getChannelCount() const
Returns the number of channels, typically 1 (GRAY) or 3 (RGB)
This namespace provides a OS-independent interface to many useful functions: filenames manipulation...
A class for storing images as grayscale or RGB bitmaps.
#define THROW_EXCEPTION(msg)
const T * getAs() const
Returns a pointer to a const T* containing the image - the idea is to call like "img.getAs<IplImage>()" so we can avoid here including OpenCV's headers.
Classes for computer vision, detectors, features, etc.
A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
TInternalFeatList::iterator iterator