Blender V5.0
Freestyle::ImagePyramid Class Referenceabstract

#include <ImagePyramid.h>

Inherited by Freestyle::GaussianPyramid.

Public Member Functions

 ImagePyramid ()
 ImagePyramid (const ImagePyramid &iBrother)
virtual ~ImagePyramid ()
virtual void BuildPyramid (const GrayImage &level0, uint nbLevels)=0
virtual void BuildPyramid (GrayImage *level0, uint nbLevels)=0
virtual GrayImagegetLevel (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

Detailed Description

Definition at line 22 of file ImagePyramid.h.

Constructor & Destructor Documentation

◆ ImagePyramid() [1/2]

Freestyle::ImagePyramid::ImagePyramid ( )
inline

◆ ImagePyramid() [2/2]

Freestyle::ImagePyramid::ImagePyramid ( const ImagePyramid & iBrother)

Definition at line 29 of file ImagePyramid.cpp.

References _levels, and ImagePyramid().

◆ ~ImagePyramid()

Freestyle::ImagePyramid::~ImagePyramid ( )
virtual

Definition at line 40 of file ImagePyramid.cpp.

References _levels.

Member Function Documentation

◆ BuildPyramid() [1/2]

virtual void Freestyle::ImagePyramid::BuildPyramid ( const GrayImage & level0,
uint nbLevels )
pure virtual

Builds the pyramid. must be overloaded by inherited classes. if nbLevels==0, the complete pyramid is built

Implemented in Freestyle::GaussianPyramid.

◆ BuildPyramid() [2/2]

virtual void Freestyle::ImagePyramid::BuildPyramid ( GrayImage * level0,
uint nbLevels )
pure virtual

Builds a pyramid without copying the base level

Implemented in Freestyle::GaussianPyramid.

References l, Freestyle::x, and y.

◆ getLevel()

GrayImage * Freestyle::ImagePyramid::getLevel ( int l)
virtual

Definition at line 52 of file ImagePyramid.cpp.

References _levels, and l.

◆ getNumberOfLevels()

int Freestyle::ImagePyramid::getNumberOfLevels ( ) const
inline

Returns the number of levels in the pyramid

Definition at line 59 of file ImagePyramid.h.

References _levels.

Referenced by Freestyle::Canvas::loadMap().

◆ height()

int Freestyle::ImagePyramid::height ( int level = 0)
virtual

Returns the height of the level-th level image

Definition at line 113 of file ImagePyramid.cpp.

References _levels.

Referenced by Freestyle::Canvas::loadMap(), pixel(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().

◆ pixel()

float Freestyle::ImagePyramid::pixel ( int x,
int y,
int level = 0 )
virtual

Returns the pixel x,y using bilinear interpolation.

Parameters
xthe abscissa specified in the finest level coordinate system
ythe ordinate specified in the finest level coordinate system
levelthe level from which we want the pixel to be evaluated

Definition at line 57 of file ImagePyramid.cpp.

References _levels, A, B, D, Freestyle::FrsImage::height(), height(), i, Freestyle::GrayImage::pixel(), Freestyle::FrsImage::width(), width(), Freestyle::x, and y.

Referenced by Freestyle::Canvas::loadMap(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().

◆ width()

int Freestyle::ImagePyramid::width ( int level = 0)
virtual

Returns the width of the level-th level image

Definition at line 108 of file ImagePyramid.cpp.

References _levels.

Referenced by Freestyle::Canvas::loadMap(), pixel(), Freestyle::Canvas::readMapPixel(), and Freestyle::SteerableViewMap::readSteerableViewMapPixel().

Member Data Documentation

◆ _levels

std::vector<GrayImage *> Freestyle::ImagePyramid::_levels
protected

The documentation for this class was generated from the following files: