Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::MeanImageFilter< TInputImage, TOutputImage > Class Template Reference
[Intensity Image Filters]

Applies an averaging filter to an image. More...

#include <itkMeanImageFilter.h>

Inheritance diagram for itk::MeanImageFilter:

Inheritance graph
[legend]
Collaboration diagram for itk::MeanImageFilter< TInputImage, TOutputImage >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TInputImage InputImageType
typedef TOutputImage OutputImageType
typedef MeanImageFilter Self
typedef ImageToImageFilter<
InputImageType, OutputImageType
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef InputImageType::PixelType InputPixelType
typedef OutputImageType::PixelType OutputPixelType
typedef NumericTraits< InputPixelType
>::RealType 
InputRealType
typedef InputImageType::RegionType InputImageRegionType
typedef OutputImageType::RegionType OutputImageRegionType
typedef InputImageType::SizeType InputSizeType

Public Methods

virtual const char * GetClassName () const
virtual void SetRadius (InputSizeType _arg)
 itkGetConstReferenceMacro (Radius, InputSizeType)
virtual void GenerateInputRequestedRegion () throw (InvalidRequestedRegionError)
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
 itkStaticConstMacro (OutputImageDimension, unsigned int, TOutputImage::ImageDimension)

Static Public Methods

Pointer New ()

Protected Methods

 MeanImageFilter ()
virtual ~MeanImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId)

Detailed Description

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

Applies an averaging filter to an image.

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

A mean filter is one of the family of linear filters.

See also:
Image , Neighborhood , NeighborhoodOperator , NeighborhoodIterator

Definition at line 42 of file itkMeanImageFilter.h.


Member Typedef Documentation

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

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

Definition at line 61 of file itkMeanImageFilter.h.

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

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

Definition at line 74 of file itkMeanImageFilter.h.

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

Convenient typedefs for simplifying declarations.

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

Definition at line 54 of file itkMeanImageFilter.h.

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

Image typedef support.

Definition at line 70 of file itkMeanImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef NumericTraits<InputPixelType>::RealType itk::MeanImageFilter< TInputImage, TOutputImage >::InputRealType
 

Definition at line 72 of file itkMeanImageFilter.h.

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

Definition at line 77 of file itkMeanImageFilter.h.

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

Superclass typedefs.

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

Definition at line 75 of file itkMeanImageFilter.h.

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

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 55 of file itkMeanImageFilter.h.

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

Definition at line 71 of file itkMeanImageFilter.h.

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

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

Definition at line 60 of file itkMeanImageFilter.h.

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

Standard class typedefs.

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

Definition at line 58 of file itkMeanImageFilter.h.

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

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

Definition at line 59 of file itkMeanImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage>
itk::MeanImageFilter< TInputImage, TOutputImage >::MeanImageFilter   [protected]
 

template<class TInputImage, class TOutputImage>
virtual itk::MeanImageFilter< TInputImage, TOutputImage >::~MeanImageFilter   [inline, protected, virtual]
 

Definition at line 95 of file itkMeanImageFilter.h.

References HardConnectedComponentImageFilter::PrintSelf().


Member Function Documentation

template<class TInputImage, class TOutputImage>
virtual void itk::MeanImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion   throw (InvalidRequestedRegionError) [virtual]
 

MeanImageFilter needs a larger input requested region than the output requested region. As such, MeanImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also:
ImageToImageFilter::GenerateInputRequestedRegion()

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

template<class TInputImage, class TOutputImage>
virtual const char* itk::MeanImageFilter< TInputImage, TOutputImage >::GetClassName   const [virtual]
 

Run-time type information (and related methods).

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

template<class TInputImage, class TOutputImage>
itk::MeanImageFilter< TInputImage, TOutputImage >::itkGetConstReferenceMacro Radius   ,
InputSizeType   
 

Get the radius of the neighborhood used to compute the mean

template<class TInputImage, class TOutputImage>
itk::MeanImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro OutputImageDimension   ,
unsigned    int,
TOutputImage::ImageDimension   
 

Extract dimension from input and output image.

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

template<class TInputImage, class TOutputImage>
itk::MeanImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro InputImageDimension   ,
unsigned    int,
TInputImage::ImageDimension   
 

Extract dimension from input and output image.

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

template<class TInputImage, class TOutputImage>
Pointer itk::MeanImageFilter< TInputImage, TOutputImage >::New   [static]
 

Method for creation through the object factory.

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

template<class TInputImage, class TOutputImage>
void itk::MeanImageFilter< TInputImage, TOutputImage >::PrintSelf std::ostream &    os,
Indent    indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

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

template<class TInputImage, class TOutputImage>
virtual void itk::MeanImageFilter< TInputImage, TOutputImage >::SetRadius InputSizeType    _arg [virtual]
 

Set the radius of the neighborhood used to compute the mean.

template<class TInputImage, class TOutputImage>
void itk::MeanImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData const OutputImageRegionType   outputRegionForThread,
int    threadId
[protected, virtual]
 

MeanImageFilter 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 >.


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:19:32 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000