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::clfGradientGauss< InputStorageType, OutputStorageType > Class Template Reference

#include <OpenCLFramework/Filter/clfGradientGauss.hh>

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

Public Member Functions

virtual int Build (unsigned int size)
 
int Clear (float color, clfImage2D *image)
 
 clfGradientGauss (clfContext *ctx)
 
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 ~clfGradientGauss ()
 

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)
 
int SetFilterHoriz_ (unsigned int size, const float *mask)
 
int SetFilterVert_ (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::clfGradientGauss< InputStorageType, OutputStorageType >

Definition at line 36 of file clfGradientGauss.hh.

Constructor & Destructor Documentation

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

Definition at line 49 of file clfGradientGauss.cpp.

Member Function Documentation

template<class InputStorageType , class OutputStorageType >
int BIAS::clfGauss< InputStorageType, OutputStorageType >::Build ( unsigned int  size)
virtualinherited
template<class InputStorageType , class OutputStorageType >
void BIAS::clfGradientGauss< InputStorageType, OutputStorageType >::CalculateKernels_ ( double  Sigma,
double  Ratio 
)
protectedvirtual

calculates the kernel

Reimplemented from BIAS::clfGauss< InputStorageType, OutputStorageType >.

Definition at line 107 of file clfGradientGauss.cpp.

References BIAS::Vector< T >::GetData().

template<class InputStorageType , class OutputStorageType >
int BIAS::clfFilter< InputStorageType, OutputStorageType >::Clear ( float  color,
clfImage2D image 
)
inherited
template<class InputStorageType , class OutputStorageType >
int BIAS::clfGradientGauss< 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
inlineinherited

Definition at line 59 of file clfGauss.hh.

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

Definition at line 81 of file clfGauss.hh.

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

Definition at line 52 of file clfGauss.hh.

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

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 >
int BIAS::clfGradientGauss< InputStorageType, OutputStorageType >::SetFilterHoriz_ ( unsigned int  size,
const float *  mask 
)
protected
template<class InputStorageType , class OutputStorageType >
int BIAS::clfGradientGauss< InputStorageType, OutputStorageType >::SetFilterVert_ ( unsigned int  size,
const float *  mask 
)
protected

Definition at line 86 of file clfGradientGauss.cpp.

References BIAS::clfException::GetDetailedString().

template<class InputStorageType, class OutputStorageType>
void BIAS::clfGauss< InputStorageType, OutputStorageType >::SetRatio ( const double  ratio)
inlineinherited

Definition at line 54 of file clfGauss.hh.

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

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 
)
inlineinherited

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_
protectedinherited
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::GaussSigma_
protectedinherited
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::LastRatio_
protectedinherited
template<class InputStorageType, class OutputStorageType>
double BIAS::clfGauss< InputStorageType, OutputStorageType >::LastSigma_
protectedinherited
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: