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

Normalize an image by setting its mean to zero and variance to one. More...

#include <itkNormalizeImageFilter.h>

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

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef TInputImage::Pointer InputImagePointer
typedef TOutputImage::Pointer OutputImagePointer
typedef SmartPointer< SelfPointer
typedef NormalizeImageFilter Self
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual void Modified () const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

void GenerateData ()
void GenerateInputRequestedRegion ()
 NormalizeImageFilter ()

Private Member Functions

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

Private Attributes

ShiftScaleImageFilter
< TInputImage, TOutputImage >
::Pointer 
m_ShiftScaleFilter
StatisticsImageFilter
< TInputImage >::Pointer 
m_StatisticsFilter

Detailed Description

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

Normalize an image by setting its mean to zero and variance to one.

NormalizeImageFilter shifts and scales an image so that the pixels in the image have a zero mean and unit variance. This filter uses StatisticsImageFilter to compute the mean and variance of the input and then applies ShiftScaleImageFilter to shift and scale the pixels.

NB: since this filter normalizes the data to lie within -1 to 1, integral types will produce an image that DOES NOT HAVE a unit variance.

See also:
NormalizeToConstantImageFilter
Wiki Examples:

Definition at line 49 of file itkNormalizeImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::NormalizeImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef TInputImage::Pointer itk::NormalizeImageFilter< TInputImage, TOutputImage >::InputImagePointer

Image related typedefs.

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

Definition at line 63 of file itkNormalizeImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage::Pointer itk::NormalizeImageFilter< TInputImage, TOutputImage >::OutputImagePointer

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 67 of file itkNormalizeImageFilter.h.

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

Standard Self typedef

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

Definition at line 54 of file itkNormalizeImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::NormalizeImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

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

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer itk::NormalizeImageFilter< 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::Object.

template<class TInputImage , class TOutputImage >
void itk::NormalizeImageFilter< TInputImage, TOutputImage >::GenerateData ( ) [protected, virtual]

GenerateData.

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage >
void itk::NormalizeImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( ) [protected, virtual]

What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierachy. Up till now, the base assumption has been that the largest possible region will be requested of the input.

This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.

See also:
ProcessObject::GenerateInputRequestedRegion(), ImageSource::GenerateInputRequestedRegion()

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

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

Runtime information support.

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

template<class TInputImage , class TOutputImage >
virtual void itk::NormalizeImageFilter< TInputImage, TOutputImage >::Modified ( ) const [virtual]

NormalizeImageFilter must call modified on its internal filters

Reimplemented from itk::Object.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage , class TOutputImage >
void itk::NormalizeImageFilter< 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::ImageToImageFilter< TInputImage, TOutputImage >.


Member Data Documentation

template<class TInputImage , class TOutputImage >
ShiftScaleImageFilter< TInputImage, TOutputImage >::Pointer itk::NormalizeImageFilter< TInputImage, TOutputImage >::m_ShiftScaleFilter [private]

Definition at line 87 of file itkNormalizeImageFilter.h.

template<class TInputImage , class TOutputImage >
StatisticsImageFilter< TInputImage >::Pointer itk::NormalizeImageFilter< TInputImage, TOutputImage >::m_StatisticsFilter [private]

Definition at line 85 of file itkNormalizeImageFilter.h.


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