ofxPoissonFill
Poisson filling shader for OpenFrameworks
All Classes Functions
PoissonFill Class Reference

Public Member Functions

void init (int _w, int _h, int _depth)
 Initialize Poisson filler and allocate necessary datastructures. More...
 
void init (int _w, int _h)
 Initialize Poisson filler and allocate necessary datastructures. More...
 
void process (ofTexture &tex)
 Process a texture (RGBA) More...
 
ofTexture & getTexture ()
 Get the processed output. More...
 
void pass (ofFbo &p, ofTexture *tex1, ofTexture *tex2)
 
ofShader shader2way ()
 

Public Attributes

ofFbo downs [PF_MAX_LAYERS]
 
ofFbo ups [PF_MAX_LAYERS]
 
ofShader shader
 
int w
 
int h
 
int depth
 

Member Function Documentation

ofTexture& PoissonFill::getTexture ( )
inline

Get the processed output.

Returns
the processed texture (reference)
void PoissonFill::init ( int  _w,
int  _h,
int  _depth 
)
inline

Initialize Poisson filler and allocate necessary datastructures.

Parameters
_winput texture width
_hinput texture width
_depthdepth of the image pyramid
void PoissonFill::init ( int  _w,
int  _h 
)
inline

Initialize Poisson filler and allocate necessary datastructures.

Depth of the image pyramid is inferred using log2

Parameters
_winput texture width
_hinput texture width
void PoissonFill::process ( ofTexture &  tex)
inline

Process a texture (RGBA)

Parameters
texthe texture to be processed

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