Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
Freestyle::ImagePyramid Class Referenceabstract

#include <ImagePyramid.h>

Inheritance diagram for Freestyle::ImagePyramid:
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 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

Definition at line 27 of file ImagePyramid.h.

◆ ImagePyramid() [2/2]

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

Definition at line 25 of file ImagePyramid.cpp.

◆ ~ImagePyramid()

Freestyle::ImagePyramid::~ImagePyramid ( )
virtual

Definition at line 35 of file ImagePyramid.cpp.

Member Function Documentation

◆ BuildPyramid() [1/2]

virtual void Freestyle::ImagePyramid::BuildPyramid ( const GrayImage level0,
unsigned  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,
unsigned  nbLevels 
)
pure virtual

Builds a pyramid without copying the base level

Implemented in Freestyle::GaussianPyramid.

◆ getLevel()

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

Definition at line 46 of file ImagePyramid.cpp.

References l.

◆ getNumberOfLevels()

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

Returns the number of levels in the pyramid

Definition at line 61 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 107 of file ImagePyramid.cpp.

Referenced by Freestyle::Canvas::loadMap(), 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 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().

◆ width()

int Freestyle::ImagePyramid::width ( int  level = 0)
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().

Member Data Documentation

◆ _levels

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

Definition at line 24 of file ImagePyramid.h.

Referenced by Freestyle::GaussianPyramid::BuildPyramid(), and getNumberOfLevels().


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