Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::clfGauss< InputStorageType, OutputStorageType > Class Template Reference

#include <OpenCLFramework/Filter/clfGauss.hh>

+ Inheritance diagram for BIAS::clfGauss< InputStorageType, OutputStorageType >:
+ Collaboration diagram for BIAS::clfGauss< InputStorageType, OutputStorageType >:

Public Member Functions

virtual int Build (unsigned int size)
 
int Clear (float color, clfImage2D *image)
 
 clfGauss (clfContext *ctx)
 
virtual int Filter (clfImage2D *src, clfImage2D *dst)
 
double GetRatio () const
 
double GetRatio ()
 
double GetSigma () const
 
double GetSigma ()
 
void SetRatio (const double ratio)
 
void SetSigma (const double si)
 
void SetWinSize (const int ws, bool AdjustSigma=true)
 define the half win size of the kernel, if AdjustSigma is true sigma is computed according to the cut-off ratio, otherwise the ratio is adapted to the sigma More...
 
virtual ~clfGauss ()
 

Protected Member Functions

virtual void CalculateKernels_ (double Sigma, double Ratio)
 calculates the kernel More...
 
int Filter_ (std::string name, clfImage2D *src, clfImage2D *dst, int blockX=16, int blockY=16)
 
int FilterSep_ (std::string nameX, std::string nameY, clfImage2D *src, clfImage2D *dst)
 
int SetFilter1D_ (unsigned int size, const float *mask)
 
int SetFilter_ (unsigned int size, const float *mask)
 

Protected Attributes

clfContextcontext_
 
clfBufferfilterMask_
 
double GaussRatio_
 
double GaussSigma_
 
double LastRatio_
 
double LastSigma_
 
clfProgramprogram_
 
std::string programName_
 
clfImage2DtmpImage_
 
unsigned int winSize_
 

Detailed Description

template<class InputStorageType, class OutputStorageType>
class BIAS::clfGauss< InputStorageType, OutputStorageType >

Definition at line 37 of file clfGauss.hh.

Constructor & Destructor Documentation

template<class InputStorageType , class OutputStorageType >
BIAS::clfGauss< InputStorageType, OutputStorageType >::clfGauss ( clfContext ctx)
template<class InputStorageType , class OutputStorageType >
BIAS::clfGauss< InputStorageType, OutputStorageType >::~clfGauss ( )
virtual

Definition at line 57 of file clfGauss.cpp.

Member Function Documentation

template<class InputStorageType , class OutputStorageType >
int BIAS::clfGauss< InputStorageType, OutputStorageType >::Build ( unsigned int  size)
virtual
template<class InputStorageType , class OutputStorageType >
void BIAS::clfGauss< InputStorageType, OutputStorageType >::CalculateKernels_ ( double  Sigma,
double  Ratio 
)
protectedvirtual
template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::Clear ( float  color,
clfImage2D image 
)
inherited
template<class InputStorageType , class OutputStorageType >
int BIAS::clfGauss< InputStorageType, OutputStorageType >::Filter ( clfImage2D src,
clfImage2D dst 
)
virtual
template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::Filter_ ( std::string  name,
clfImage2D src,
clfImage2D dst,
int  blockX = 16,
int  blockY = 16 
)
protectedinherited
template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::FilterSep_ ( std::string  nameX,
std::string  nameY,
clfImage2D src,
clfImage2D dst 
)
protectedinherited
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GetRatio ( ) const
inline

Definition at line 59 of file clfGauss.hh.

template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GetRatio ( )
inline

Definition at line 81 of file clfGauss.hh.

template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GetSigma ( ) const
inline

Definition at line 52 of file clfGauss.hh.

template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GetSigma ( )
inline

Definition at line 80 of file clfGauss.hh.

template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::SetFilter1D_ ( unsigned int  size,
const float *  mask 
)
protectedinherited
template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::SetFilter_ ( unsigned int  size,
const float *  mask 
)
protectedinherited
template<class InputStorageType, class OutputStorageType>
void BIAS::clfGauss< InputStorageType, OutputStorageType >::SetRatio ( const double  ratio)
inline

Definition at line 54 of file clfGauss.hh.

template<class InputStorageType, class OutputStorageType>
void BIAS::clfGauss< InputStorageType, OutputStorageType >::SetSigma ( const double  si)
inline

Definition at line 47 of file clfGauss.hh.

template<class InputStorageType, class OutputStorageType>
void BIAS::clfGauss< InputStorageType, OutputStorageType >::SetWinSize ( const int  ws,
bool  AdjustSigma = true 
)
inline

define the half win size of the kernel, if AdjustSigma is true sigma is computed according to the cut-off ratio, otherwise the ratio is adapted to the sigma

Definition at line 64 of file clfGauss.hh.

Member Data Documentation

template<class InputStorageType, class OutputStorageType>
clfContext* BIAS::clfFilter< InputStorageType, OutputStorageType >::context_
protectedinherited

Definition at line 56 of file clfFilter.hh.

template<class InputStorageType, class OutputStorageType>
clfBuffer* BIAS::clfFilter< InputStorageType, OutputStorageType >::filterMask_
protectedinherited

Definition at line 58 of file clfFilter.hh.

template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GaussRatio_
protected
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GaussSigma_
protected
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::LastRatio_
protected
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::LastSigma_
protected
template<class InputStorageType, class OutputStorageType>
clfProgram* BIAS::clfFilter< InputStorageType, OutputStorageType >::program_
protectedinherited
template<class InputStorageType, class OutputStorageType>
std::string BIAS::clfFilter< InputStorageType, OutputStorageType >::programName_
protectedinherited

Definition at line 60 of file clfFilter.hh.

template<class InputStorageType, class OutputStorageType>
clfImage2D* BIAS::clfFilter< InputStorageType, OutputStorageType >::tmpImage_
protectedinherited

Definition at line 57 of file clfFilter.hh.

template<class InputStorageType, class OutputStorageType>
unsigned int BIAS::clfFilter< InputStorageType, OutputStorageType >::winSize_
protectedinherited

Definition at line 61 of file clfFilter.hh.


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