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

The FilterThreshold class. More...

#include <filter_threshold.hpp>

Inheritance diagram for pic::FilterThreshold:
pic::pic::Filter

Public Member Functions

 FilterThreshold (float threshold=0.5f, bool bAdaptive=false)
 FilterThreshold. More...
 
void update (float threshold, bool bAdaptive)
 update More...
 
void OutputSize (ImageVec imgIn, int &width, int &height, int &channels, int &frames)
 OutputSize. More...
 
- Public Member Functions inherited from pic::pic::Filter
 Filter ()
 Filter. More...
 
 ~Filter ()
 
virtual void release ()
 release More...
 
virtual void changePass (int pass, int tPass)
 changePass changes the pass direction. More...
 
virtual std::string signature ()
 signature returns the signature for the filter. More...
 
int checkHalfSize (int size)
 checkHalfSize More...
 
std::string getOutPutName (std::string nameIn)
 getOutPutName More...
 
ImagecachedProcess (ImageVec imgIn, Image *imgOut, std::string nameIn)
 CachedProcess. More...
 
ImageallocateOutputMemory (ImageVec imgIn, Image *imgOut, bool bDelete)
 allocateOutputMemory More...
 
void insertFilter (Filter *flt, bool asSingle=false)
 insertFilter More...
 
void setFloatParameters (std::vector< float > param_f)
 setFloatParameters sets float parameters. More...
 
virtual void ProcessAux (ImageVec imgIn, Image *imgOut, TileList *tiles)
 ProcessAux. More...
 
virtual ImageProcess (ImageVec imgIn, Image *imgOut)
 Process. More...
 

Static Public Member Functions

static Imageexecute (Image *imgIn, Image *imgOut, float threshold, bool bAdaptive)
 
static ImageOtsu (Image *imgIn, Image *imgOut)
 

Protected Member Functions

void ProcessBBox (Image *dst, ImageVec src, BBox *box)
 ProcessBBox. More...
 
- Protected Member Functions inherited from pic::pic::Filter
bool checkInput (ImageVec &imgIn)
 checkInput More...
 
virtual void f (FilterFData *data)
 f More...
 
virtual void ProcessBBox (Image *dst, ImageVec src, BBox *box)
 ProcessBBox. More...
 
ImageProcessP (ImageVec imgIn, Image *imgOut)
 ProcessP. More...
 
virtual ImagesetupAux (ImageVec imgIn, Image *imgOut)
 setupAux More...
 

Protected Attributes

float threshold
 
bool bAdaptive
 
- Protected Attributes inherited from pic::pic::Filter
float scale
 
std::vector< float > param_f
 
int minInputImages
 

Additional Inherited Members

- Public Attributes inherited from pic::pic::Filter
bool cachedOnly
 
bool bDelete
 
std::vector< Filter * > filters
 

Detailed Description

The FilterThreshold class.

Constructor & Destructor Documentation

◆ FilterThreshold()

pic::FilterThreshold::FilterThreshold ( float  threshold = 0.5f,
bool  bAdaptive = false 
)
inline

FilterThreshold.

Parameters
threshold
bAdaptive

Member Function Documentation

◆ execute()

static Image* pic::FilterThreshold::execute ( Image imgIn,
Image imgOut,
float  threshold,
bool  bAdaptive 
)
inlinestatic

◆ Otsu()

static Image* pic::FilterThreshold::Otsu ( Image imgIn,
Image imgOut 
)
inlinestatic

◆ OutputSize()

void pic::FilterThreshold::OutputSize ( ImageVec  imgIn,
int &  width,
int &  height,
int &  channels,
int &  frames 
)
inlinevirtual

OutputSize.

Parameters
imgIn
width
height
channels
frames

Reimplemented from pic::pic::Filter.

◆ ProcessBBox()

void pic::FilterThreshold::ProcessBBox ( Image dst,
ImageVec  src,
BBox box 
)
inlineprotected

ProcessBBox.

Parameters
dst
src
box

◆ update()

void pic::FilterThreshold::update ( float  threshold,
bool  bAdaptive 
)
inline

update

Parameters
threshold
bAdaptive

Member Data Documentation

◆ bAdaptive

bool pic::FilterThreshold::bAdaptive
protected

◆ threshold

float pic::FilterThreshold::threshold
protected

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