MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
mds::img::CAnisotropicFilter< I > Class Template Reference

Anisotropic filtering based on the diffusion process. More...

#include <mdsAnisotropic.h>

Inheritance diagram for mds::img::CAnisotropicFilter< I >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE }
 Check that I is an image. More...
typedef CImageFilter< I > base
 Base types.
typedef base::tImage tImage
 Image type.
typedef base::tPixel tPixel
 Image pixel type.

Public Member Functions

 CAnisotropicFilter (double dKappa, tSize NumOfIters=-1)
 Constructor.
tSize getNumOfIters () const
 Returns number of iterations of diffusion process.
bool operator() (const tImage &SrcImage, tImage &DstImage)
 Filtering of input/source image.
void setNumOfIters (tSize NumOfIters)
 Sets the number of iterations of diffusion process.
 ~CAnisotropicFilter ()
 Destructor.

Static Public Attributes

static const double DT = 0.125
static const double MIN_CHANGE = 0.1

Protected Member Functions

double getDiffusionStrength (double dGrad)
 Returns value of the diffusion function.

Protected Attributes

double m_dInvKappa
double m_dKappa
 Filter parameters.
tSize m_NumOfIters
 Number of iterations of the diffusion process.

Detailed Description

template<class I>
class mds::img::CAnisotropicFilter< I >

Anisotropic filtering based on the diffusion process.


Member Typedef Documentation

template<class I >
typedef CImageFilter<I> mds::img::CAnisotropicFilter< I >::base

Base types.

template<class I >
typedef base::tImage mds::img::CAnisotropicFilter< I >::tImage

Image type.

Reimplemented from mds::img::CImageFilter< I >.

template<class I >
typedef base::tPixel mds::img::CAnisotropicFilter< I >::tPixel

Image pixel type.

Reimplemented from mds::img::CImageFilter< I >.


Member Enumeration Documentation

template<class I>
anonymous enum [inherited]

Check that I is an image.

You will see name of this enum somewhere in compiler error message if the type I is not image.

Enumerator:
TEMPLATE_PARAMETER_IS_NOT_IMAGE 

Constructor & Destructor Documentation

template<class I >
mds::img::CAnisotropicFilter< I >::CAnisotropicFilter ( double  dKappa,
tSize  NumOfIters = -1 
)

Constructor.

template<class I >
mds::img::CAnisotropicFilter< I >::~CAnisotropicFilter ( )

Destructor.


Member Function Documentation

template<class I >
double CAnisotropicFilter::getDiffusionStrength ( double  dGrad) [protected]

Returns value of the diffusion function.

template<class I >
tSize mds::img::CAnisotropicFilter< I >::getNumOfIters ( ) const

Returns number of iterations of diffusion process.

template<class I >
bool CAnisotropicFilter::operator() ( const tImage SrcImage,
tImage DstImage 
) [virtual]

Filtering of input/source image.

Point filter responses are written to the destination image.

  • Returns false on failure.

Implements mds::img::CImageFilter< I >.

template<class I >
void mds::img::CAnisotropicFilter< I >::setNumOfIters ( tSize  NumOfIters)

Sets the number of iterations of diffusion process.


Member Data Documentation

template<class I >
const double CAnisotropicFilter::DT = 0.125 [static]
template<class I >
double mds::img::CAnisotropicFilter< I >::m_dInvKappa [protected]
template<class I >
double mds::img::CAnisotropicFilter< I >::m_dKappa [protected]

Filter parameters.

template<class I >
tSize mds::img::CAnisotropicFilter< I >::m_NumOfIters [protected]

Number of iterations of the diffusion process.

template<class I >
const double CAnisotropicFilter::MIN_CHANGE = 0.1 [static]

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