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

Template providing median image filtering functions. More...

#include <mdsMedian.h>

Inheritance diagram for mds::img::CMedianFilter< 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

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

Protected Attributes

mds::base::CData< tPixelm_Data
 Internal data buffer.
tSize m_MedianSize
 Median filter size.

Detailed Description

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

Template providing median image filtering functions.


Member Typedef Documentation

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

Image filter base.

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

Image type.

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

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

Constructor that creates a new median filter.

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

Destructor.


Member Function Documentation

template<class I >
CMedianFilter< I >::tPixel CMedianFilter::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::CMedianFilter< I >::getSize ( ) const

Returns current median size.

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

Median image filtering.

  • Returns false on failure

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

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

Sets the windows size.


Member Data Documentation

template<class I >
mds::base::CData<tPixel> mds::img::CMedianFilter< I >::m_Data [protected]

Internal data buffer.

template<class I >
tSize mds::img::CMedianFilter< I >::m_MedianSize [protected]

Median filter size.


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