Blender V4.3
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 24 of file ImagePyramid.h.

Constructor & Destructor Documentation

◆ ImagePyramid() [1/2]

Freestyle::ImagePyramid::ImagePyramid ( )
inline

Definition at line 29 of file ImagePyramid.h.

◆ ImagePyramid() [2/2]

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

Definition at line 29 of file ImagePyramid.cpp.

References _levels.

◆ ~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.

◆ getLevel()

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

Definition at line 52 of file ImagePyramid.cpp.

References _levels, and l.

Referenced by Freestyle::SteerableViewMap::saveSteerableViewMap().

◆ 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::SteerableViewMap::getNumberOfPyramidLevels(), Freestyle::Canvas::loadMap(), and Freestyle::SteerableViewMap::saveSteerableViewMap().

◆ height()

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

◆ 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, B, Freestyle::FrsImage::height(), height(), Freestyle::GrayImage::pixel(), Freestyle::FrsImage::width(), and width().

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

◆ width()

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

Member Data Documentation

◆ _levels

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

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