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

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

#include <mdsMinMax.h>

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

 CMaxFilter (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)
 Max image filtering.
void resize (tSize Size)
 Sets the windows size.
 ~CMaxFilter ()
 Destructor.

Protected Attributes

tSize m_MaxSize
 Max filter size.

Detailed Description

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

Template providing square max-value image filtering functions.


Member Typedef Documentation

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

Image filter base.

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

Image type.

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

template<class I >
typedef base::tPixel mds::img::CMaxFilter< 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::CMaxFilter< I >::CMaxFilter ( 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::CMaxFilter< I >::~CMaxFilter ( )

Destructor.


Member Function Documentation

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

Returns current filter size.

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

Max image filtering.

  • Returns false on failure.

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

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

Sets the windows size.


Member Data Documentation

template<class I >
tSize mds::img::CMaxFilter< I >::m_MaxSize [protected]

Max filter size.


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