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

Averaging image filter (7x7 version). More...

#include <mdsAveraging.h>

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

 CAvg7Filter ()
 Default constructor.
tPixel getResponse (const tImage &SrcImage, tSize x, tSize y)
 Returns filter response at specified image point.
tSize getSize () const
 Returns filter standard deviation.
bool operator() (const tImage &SrcImage, tImage &DstImage)
 Filtering of input/source image.
 ~CAvg7Filter ()
 Destructor.

Static Public Attributes

static const int DENOM = 256
 Number used to divide filter response.
static const CKernel2D::tData KERNEL []
 Filter kernel.

Detailed Description

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

Averaging image filter (7x7 version).


Member Typedef Documentation

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

Image filter base.

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

Image type.

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

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

Default constructor.

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

Destructor.


Member Function Documentation

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

Returns filter standard deviation.

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

Filtering of input/source image.

  • Returns false on failure.

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


Member Data Documentation

template<class I >
const int mds::img::CAvg7Filter< I >::DENOM = 256 [static]

Number used to divide filter response.

template<class I >
const CKernel2D::tData CAvg7Filter::KERNEL [static]
Initial value:
{
    1.0f,  2.0f,  3.0f,  4.0f,  3.0f,  2.0f,  1.0f,
    2.0f,  4.0f,  6.0f,  8.0f,  6.0f,  4.0f,  2.0f,
    3.0f,  6.0f,  9.0f, 12.0f,  9.0f,  6.0f,  3.0f,
    4.0f,  8.0f, 12.0f, 16.0f, 12.0f,  8.0f,  4.0f,
    3.0f,  6.0f,  9.0f, 12.0f,  9.0f,  6.0f,  3.0f,
    2.0f,  4.0f,  6.0f,  8.0f,  6.0f,  4.0f,  2.0f,
    1.0f,  2.0f,  3.0f,  4.0f,  3.0f,  2.0f,  1.0f
}

Filter kernel.


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