Blender
V3.3
|
#include <ImagePyramid.h>
Public Member Functions | |
ImagePyramid () | |
ImagePyramid (const ImagePyramid &iBrother) | |
virtual | ~ImagePyramid () |
virtual void | BuildPyramid (const GrayImage &level0, unsigned nbLevels)=0 |
virtual void | BuildPyramid (GrayImage *level0, unsigned nbLevels)=0 |
virtual GrayImage * | getLevel (int l) |
virtual float | pixel (int x, int y, int level=0) |
virtual int | width (int level=0) |
virtual int | height (int level=0) |
int | getNumberOfLevels () const |
Protected Attributes | |
std::vector< GrayImage * > | _levels |
Definition at line 22 of file ImagePyramid.h.
|
inline |
Definition at line 27 of file ImagePyramid.h.
Freestyle::ImagePyramid::ImagePyramid | ( | const ImagePyramid & | iBrother | ) |
Definition at line 25 of file ImagePyramid.cpp.
|
virtual |
Definition at line 35 of file ImagePyramid.cpp.
|
pure virtual |
Builds the pyramid. must be overloaded by inherited classes. if nbLevels==0, the complete pyramid is built
Implemented in Freestyle::GaussianPyramid.
|
pure virtual |
Builds a pyramid without copying the base level
Implemented in Freestyle::GaussianPyramid.
|
virtual |
Definition at line 46 of file ImagePyramid.cpp.
References l.
|
inline |
Returns the number of levels in the pyramid
Definition at line 61 of file ImagePyramid.h.
References _levels.
Referenced by Freestyle::Canvas::loadMap().
|
virtual |
Returns the height of the level-th level image
Definition at line 107 of file ImagePyramid.cpp.
Referenced by Freestyle::Canvas::loadMap(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().
|
virtual |
Returns the pixel x,y using bilinear interpolation.
x | the abscissa specified in the finest level coordinate system |
y | the ordinate specified in the finest level coordinate system |
level | the level from which we want the pixel to be evaluated |
Definition at line 51 of file ImagePyramid.cpp.
References A, B, C, D, Freestyle::FrsImage::height(), height, Freestyle::GrayImage::pixel(), sx, sy, Freestyle::FrsImage::width(), width, x, and y.
Referenced by Freestyle::Canvas::loadMap(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().
|
virtual |
Returns the width of the level-th level image
Definition at line 102 of file ImagePyramid.cpp.
Referenced by Freestyle::Canvas::loadMap(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().
|
protected |
Definition at line 24 of file ImagePyramid.h.
Referenced by Freestyle::GaussianPyramid::BuildPyramid(), and getNumberOfLevels().