ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
itk::MedianImageFilter< TInputImage, TOutputImage > Class Template Reference

Applies a median filter to an image. More...

#include <itkMedianImageFilter.h>

Inheritance diagram for itk::MedianImageFilter< TInputImage, TOutputImage >:
Collaboration diagram for itk::MedianImageFilter< TInputImage, TOutputImage >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef InputImageType::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef InputImageType::PixelType InputPixelType
typedef InputImageType::SizeType InputSizeType
typedef OutputImageType::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef OutputImageType::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef MedianImageFilter Self
typedef ImageToImageFilter
< InputImageType,
OutputImageType
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
 typedef (Concept::Convertible< InputPixelType, OutputPixelType >) InputConvertibleToOutputCheck
 typedef (Concept::SameDimension< InputImageDimension, OutputImageDimension >) SameDimensionCheck
 typedef (Concept::LessThanComparable< InputPixelType >) InputLessThanComparableCheck

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension

Protected Member Functions

 MedianImageFilter ()
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual ~MedianImageFilter ()

Private Member Functions

 MedianImageFilter (const Self &)
void operator= (const Self &)

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::MedianImageFilter< TInputImage, TOutputImage >

Applies a median filter to an image.

Computes an image where a given pixel is the median value of the the pixels in a neighborhood about the corresponding input pixel.

A median filter is one of the family of nonlinear filters. It is used to smooth an image without being biased by outliers or shot noise.

This filter requires that the input pixel type provides an operator<() (LessThan Comparable).

See also:
Image
Neighborhood
NeighborhoodOperator
NeighborhoodIterator
Wiki Examples:

Definition at line 52 of file itkMedianImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::MedianImageFilter< TInputImage, TOutputImage >::ConstPointer

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 71 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType itk::MedianImageFilter< TInputImage, TOutputImage >::InputImageRegionType

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 83 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage itk::MedianImageFilter< TInputImage, TOutputImage >::InputImageType

Convenient typedefs for simplifying declarations.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 64 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::PixelType itk::MedianImageFilter< TInputImage, TOutputImage >::InputPixelType

Image typedef support.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 77 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef InputImageType::SizeType itk::MedianImageFilter< TInputImage, TOutputImage >::InputSizeType

Definition at line 86 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef OutputImageType::RegionType itk::MedianImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Superclass typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 84 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::MedianImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 65 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef OutputImageType::PixelType itk::MedianImageFilter< TInputImage, TOutputImage >::OutputPixelType

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 81 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::MedianImageFilter< TInputImage, TOutputImage >::Pointer

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 70 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef MedianImageFilter itk::MedianImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 68 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter< InputImageType, OutputImageType > itk::MedianImageFilter< TInputImage, TOutputImage >::Superclass

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

Definition at line 69 of file itkMedianImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::MedianImageFilter< TInputImage, TOutputImage >::MedianImageFilter ( ) [protected]

End concept checking

template<class TInputImage , class TOutputImage >
virtual itk::MedianImageFilter< TInputImage, TOutputImage >::~MedianImageFilter ( ) [inline, protected, virtual]

Definition at line 101 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
itk::MedianImageFilter< TInputImage, TOutputImage >::MedianImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::MedianImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual const char* itk::MedianImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
static Pointer itk::MedianImageFilter< TInputImage, TOutputImage >::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::MedianImageFilter< TInputImage, TOutputImage >::operator= ( const Self ) [private]

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

Reimplemented from itk::BoxImageFilter< TInputImage, TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::MedianImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
) [protected, virtual]

MedianImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also:
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage >
itk::MedianImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameDimension< InputImageDimension, OutputImageDimension )

Begin concept checking This class requires SameDimensionCheck in the form of ( Concept::SameDimension< InputImageDimension, OutputImageDimension > )

template<class TInputImage , class TOutputImage >
itk::MedianImageFilter< TInputImage, TOutputImage >::typedef ( Concept::Convertible< InputPixelType, OutputPixelType )

This class requires InputConvertibleToOutputCheck in the form of ( Concept::Convertible< InputPixelType, OutputPixelType > )

template<class TInputImage , class TOutputImage >
itk::MedianImageFilter< TInputImage, TOutputImage >::typedef ( Concept::LessThanComparable< InputPixelType )

This class requires InputLessThanComparableCheck in the form of ( Concept::LessThanComparable< InputPixelType > )


Member Data Documentation

template<class TInputImage , class TOutputImage >
const unsigned int itk::MedianImageFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension [static]

Extract dimension from input and output image.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 58 of file itkMedianImageFilter.h.

template<class TInputImage , class TOutputImage >
const unsigned int itk::MedianImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension [static]

Extract dimension from input and output image.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 60 of file itkMedianImageFilter.h.


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