PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
pic::Pyramid Class Reference

The Pyramid class. More...

#include <pyramid.hpp>

Public Member Functions

 Pyramid (Image *img, bool lapGauss, int limitLevel)
 Pyramid. More...
 
 Pyramid (int width, int height, int channels, bool lapGauss, int limitLevel)
 Pyramid. More...
 
 ~Pyramid ()
 
void setLapGauss (bool lapGauss)
 setLapGauss More...
 
void update (Image *img)
 update recomputes the pyramid given a compatible image, img. More...
 
void setValue (float value)
 SetValue. More...
 
void mul (const Pyramid *pyr)
 mul is the mul operator ( *= ) between pyramids. More...
 
void add (const Pyramid *pyr)
 add is the add operator ( += ) between pyramids. More...
 
Imagereconstruct (Image *imgOut)
 reconstruct evaluates a Gaussian/Laplacian pyramid. More...
 
void blend (Pyramid *pyr, Pyramid *weight)
 blend More...
 
int size ()
 size More...
 
Imageget (int index)
 get More...
 
void setNULL ()
 setNULL More...
 

Public Attributes

ImageVec stack
 

Protected Member Functions

void initFilters ()
 initFilters More...
 
void create (Image *img, bool lapGauss, int limitLevel)
 create More...
 
void release ()
 release More...
 

Protected Attributes

bool lapGauss
 
bool bCreated
 
int limitLevel
 
FilterGaussian2Dflt_gauss
 
FilterSampler2Dflt_sampler
 
FilterSampler2DSubflt_sub
 
FilterSampler2DAddflt_add
 
std::vector< Filter *> filters
 
ImageVec trackerRec
 
ImageVec trackerUp
 

Detailed Description

The Pyramid class.

Constructor & Destructor Documentation

◆ Pyramid() [1/2]

PIC_INLINE pic::Pyramid::Pyramid ( Image img,
bool  lapGauss,
int  limitLevel = 1 
)

Pyramid.

Parameters
img
lapGaussis a boolean parameter. If it is true, a Laplacian pyramid will be created, otherwise a Gaussian one.
limitLevel

◆ Pyramid() [2/2]

PIC_INLINE pic::Pyramid::Pyramid ( int  width,
int  height,
int  channels,
bool  lapGauss,
int  limitLevel = 1 
)

Pyramid.

Parameters
width
height
channels
lapGaussis a boolean parameter. If it is true, a Laplacian pyramid will be created, otherwise a Gaussian one.
limitLevel

◆ ~Pyramid()

PIC_INLINE pic::Pyramid::~Pyramid ( )

Member Function Documentation

◆ add()

PIC_INLINE void pic::Pyramid::add ( const Pyramid pyr)

add is the add operator ( += ) between pyramids.

Parameters
pyr

◆ blend()

PIC_INLINE void pic::Pyramid::blend ( Pyramid pyr,
Pyramid weight 
)

blend

Parameters
pyr
weight

◆ create()

PIC_INLINE void pic::Pyramid::create ( Image img,
bool  lapGauss,
int  limitLevel = 1 
)
protected

create

Parameters
img
width
height
channels
lapGauss
limitLevel

◆ get()

Image* pic::Pyramid::get ( int  index)
inline

get

Parameters
index
Returns

◆ initFilters()

PIC_INLINE void pic::Pyramid::initFilters ( )
protected

initFilters

◆ mul()

PIC_INLINE void pic::Pyramid::mul ( const Pyramid pyr)

mul is the mul operator ( *= ) between pyramids.

Parameters
pyr

◆ reconstruct()

PIC_INLINE Image * pic::Pyramid::reconstruct ( Image imgOut = NULL)

reconstruct evaluates a Gaussian/Laplacian pyramid.

Parameters
imgOut
Returns

◆ release()

void pic::Pyramid::release ( )
inlineprotected

release

◆ setLapGauss()

void pic::Pyramid::setLapGauss ( bool  lapGauss)
inline

setLapGauss

Parameters
lapGaussis a boolean parameter. If it is true, a Laplacian pyramid will be created, otherwise a Gaussian one.

◆ setNULL()

void pic::Pyramid::setNULL ( )
inline

setNULL

◆ setValue()

PIC_INLINE void pic::Pyramid::setValue ( float  value)

SetValue.

Parameters
value

◆ size()

int pic::Pyramid::size ( )
inline

size

Returns

◆ update()

PIC_INLINE void pic::Pyramid::update ( Image img)

update recomputes the pyramid given a compatible image, img.

Parameters
img

Member Data Documentation

◆ bCreated

bool pic::Pyramid::bCreated
protected

◆ filters

std::vector< Filter* > pic::Pyramid::filters
protected

◆ flt_add

FilterSampler2DAdd* pic::Pyramid::flt_add
protected

◆ flt_gauss

FilterGaussian2D* pic::Pyramid::flt_gauss
protected

◆ flt_sampler

FilterSampler2D* pic::Pyramid::flt_sampler
protected

◆ flt_sub

FilterSampler2DSub* pic::Pyramid::flt_sub
protected

◆ lapGauss

bool pic::Pyramid::lapGauss
protected

◆ limitLevel

int pic::Pyramid::limitLevel
protected

◆ stack

ImageVec pic::Pyramid::stack

◆ trackerRec

ImageVec pic::Pyramid::trackerRec
protected

◆ trackerUp

ImageVec pic::Pyramid::trackerUp
protected

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