|
Blender
V2.93
|
#include <ImagePyramid.h>
Inherited by Freestyle::GaussianPyramid.
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 36 of file ImagePyramid.h.
|
inline |
Definition at line 41 of file ImagePyramid.h.
| Freestyle::ImagePyramid::ImagePyramid | ( | const ImagePyramid & | iBrother | ) |
Definition at line 39 of file ImagePyramid.cpp.
|
virtual |
Definition at line 49 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 60 of file ImagePyramid.cpp.
References l.
|
inline |
Returns the number of levels in the pyramid
Definition at line 75 of file ImagePyramid.h.
References _levels.
Referenced by Freestyle::Canvas::loadMap().
|
virtual |
Returns the height of the level-th level image
Definition at line 121 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 65 of file ImagePyramid.cpp.
References A, B, C, D, Freestyle::FrsImage::height(), height, Freestyle::GrayImage::pixel(), 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 116 of file ImagePyramid.cpp.
Referenced by Freestyle::Canvas::loadMap(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().
|
protected |
Definition at line 38 of file ImagePyramid.h.
Referenced by Freestyle::GaussianPyramid::BuildPyramid(), and getNumberOfLevels().