Go to the documentation of this file.
10 #define CMappedImage_H
28 double m_x0,m_x1, m_y0,
m_y1;
double m_pixel_size
width * pixel_size = (x1-x0)
This class encapsulates a MRPT Image and allows the sampling of individual pixels with sub-pixel accu...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CMappedImage(CImagePtr img, double x0=0, double x1=-1, double y0=0, double y1=-1, TInterpolationMethod method=IMG_INTERP_LINEAR)
Constructor: Must pass an image (as a smart pointer) and the coordinates of the border.
TInterpolationMethod m_method
double getPixel(double x, double y) const
Returns the interpolated pixel at the coordinates (x,y), in the range [0,255] (grayscale) If the poin...
TInterpolationMethod
Interpolation methods for images.
void changeCoordinates(double x0, double x1, double y0, double y1)
Changes the coordinates of the image (see constructor for the meaning)
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |