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

Template providing square min-value image filtering functions. More...

#include <mdsMinMax.h>

Inheritance diagram for mds::img::CMinFilter< 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
 Image filter base.
typedef base::tImage tImage
 Image type.
typedef base::tPixel tPixel
 Image pixel type.

Public Member Functions

 CMinFilter (tSize Size)
 Constructor that creates a new filter.
tPixel getResponse (const tImage &SrcImage, tSize x, tSize y)
 Returns filter response at specified image point.
tSize getSize () const
 Returns current filter size.
bool operator() (const tImage &SrcImage, tImage &DstImage)
 Min image filtering.
void resize (tSize Size)
 Sets the windows size.
 ~CMinFilter ()
 Destructor.

Protected Attributes

tSize m_MinSize
 Min filter size.

Detailed Description

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

Template providing square min-value image filtering functions.


Member Typedef Documentation

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

Image filter base.

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

Image type.

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

template<class I >
typedef base::tPixel mds::img::CMinFilter< 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::CMinFilter< I >::CMinFilter ( tSize  Size)

Constructor that creates a new filter.

  • Parameter 'Size' is a window size and it must be an odd number.
template<class I >
mds::img::CMinFilter< I >::~CMinFilter ( )

Destructor.


Member Function Documentation

template<class I >
CMinFilter< I >::tPixel CMinFilter::getResponse ( const tImage SrcImage,
tSize  x,
tSize  y 
)

Returns filter response at specified image point.

  • Value is not normalized!
template<class I >
tSize mds::img::CMinFilter< I >::getSize ( ) const

Returns current filter size.

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

Min image filtering.

  • Returns false on failure.

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

template<class I >
void mds::img::CMinFilter< I >::resize ( tSize  Size)

Sets the windows size.


Member Data Documentation

template<class I >
tSize mds::img::CMinFilter< I >::m_MinSize [protected]

Min filter size.


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