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

Applies a linear transformation to the intensity levels of the input Image. More...

#include <itkRescaleIntensityImageFilter.h>

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

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef TInputImage::PixelType InputPixelType
typedef TOutputImage::PixelType OutputPixelType
typedef SmartPointer< SelfPointer
typedef NumericTraits
< InputPixelType >::RealType 
RealType
typedef RescaleIntensityImageFilter Self
typedef
UnaryFunctorImageFilter
< TInputImage, TOutputImage,
Functor::IntensityLinearTransform
< typename
TInputImage::PixelType,
typename
TOutputImage::PixelType > > 
Superclass

Public Member Functions

void BeforeThreadedGenerateData (void)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual const OutputPixelTypeGetOutputMaximum ()
virtual const OutputPixelTypeGetOutputMinimum ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual void SetOutputMaximum (OutputPixelType _arg)
virtual void SetOutputMinimum (OutputPixelType _arg)
 typedef (Concept::MultiplyOperator< RealType >) RealTypeMultiplyOperatorCheck
 typedef (Concept::HasNumericTraits< InputPixelType >) InputHasNumericTraitsCheck
 typedef (Concept::HasNumericTraits< OutputPixelType >) OutputHasNumericTraitsCheck
 typedef (Concept::AdditiveOperators< RealType >) RealTypeAdditiveOperatorsCheck
virtual const RealTypeGetScale ()
virtual const RealTypeGetShift ()
virtual const InputPixelTypeGetInputMinimum ()
virtual const InputPixelTypeGetInputMaximum ()

Static Public Member Functions

static Pointer New ()

Private Attributes

InputPixelType m_InputMaximum
InputPixelType m_InputMinimum
OutputPixelType m_OutputMaximum
OutputPixelType m_OutputMinimum
RealType m_Scale
RealType m_Shift
 RescaleIntensityImageFilter ()
virtual ~RescaleIntensityImageFilter ()
 RescaleIntensityImageFilter (const Self &)
void operator= (const Self &)

Detailed Description

template<typename TInputImage, typename TOutputImage = TInputImage>
class itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >

Applies a linear transformation to the intensity levels of the input Image.

RescaleIntensityImageFilter applies pixel-wise a linear transformation to the intensity values of input image pixels. The linear transformation is defined by the user in terms of the minimum and maximum values that the output image should have.

The following equation gives the mapping of the intensity values

\[ outputPixel = ( inputPixel - inputMin) \cdot \frac{(outputMax - outputMin )}{(inputMax - inputMin)} + outputMin \]

All computations are performed in the precison of the input pixel's RealType. Before assigning the computed value to the output pixel.

NOTE: In this filter the minimum and maximum values of the input image are computed internally using the MinimumMaximumImageCalculator. Users are not supposed to set those values in this filter. If you need a filter where you can set the minimum and maximum values of the input, please use the IntensityWindowingImageFilter. If you want a filter that can use a user-defined linear transformation for the intensity, then please use the ShiftScaleImageFilter.

See also:
IntensityWindowingImageFilter
Wiki Examples:
Examples:

itkOrthogonalSwath2DPathFilterTest.cxx.

Definition at line 121 of file itkRescaleIntensityImageFilter.h.


Member Typedef Documentation

template<typename TInputImage , typename TOutputImage = TInputImage>
typedef SmartPointer< const Self > itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::ConstPointer
template<typename TInputImage , typename TOutputImage = TInputImage>
typedef TInputImage::PixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::InputPixelType

Definition at line 141 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
typedef TOutputImage::PixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::OutputPixelType

Definition at line 140 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
typedef SmartPointer< Self > itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::Pointer
template<typename TInputImage , typename TOutputImage = TInputImage>
typedef NumericTraits< InputPixelType >::RealType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::RealType

Definition at line 142 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
typedef RescaleIntensityImageFilter itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::Self
template<typename TInputImage , typename TOutputImage = TInputImage>
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::IntensityLinearTransform< typename TInputImage::PixelType, typename TOutputImage::PixelType > > itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::RescaleIntensityImageFilter ( ) [protected]

End concept checking

template<typename TInputImage , typename TOutputImage = TInputImage>
virtual itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::~RescaleIntensityImageFilter ( ) [inline, protected, virtual]

End concept checking

Definition at line 190 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::RescaleIntensityImageFilter ( const Self ) [private]

End concept checking


Member Function Documentation

template<typename TInputImage , typename TOutputImage = TInputImage>
void itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( void  ) [virtual]

Process to execute before entering the multithreaded section

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TInputImage , typename TOutputImage = TInputImage>
virtual::itk::LightObject::Pointer itk::RescaleIntensityImageFilter< 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::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::IntensityLinearTransform< TInputImage::PixelType, TOutputImage::PixelType > >.

template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const InputPixelType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetInputMaximum ( ) [virtual]

Get the Minimum and Maximum values of the input image.

Warning:
These Values are only valid after the filter has been updated
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const InputPixelType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetInputMinimum ( ) [virtual]

Get the Minimum and Maximum values of the input image.

Warning:
These Values are only valid after the filter has been updated
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const char* itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const [virtual]
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const OutputPixelType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetOutputMaximum ( ) [virtual]
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const OutputPixelType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetOutputMinimum ( ) [virtual]
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const RealType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetScale ( ) [virtual]

Get the Scale and Shift used for the linear transformation of gray level values.

Warning:
These Values are only valid after the filter has been updated
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual const RealType& itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::GetShift ( ) [virtual]

Get the Scale and Shift used for the linear transformation of gray level values.

Warning:
These Values are only valid after the filter has been updated
template<typename TInputImage , typename TOutputImage = TInputImage>
static Pointer itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::New ( ) [static]
template<typename TInputImage , typename TOutputImage = TInputImage>
void itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::operator= ( const Self ) [private]
template<typename TInputImage , typename TOutputImage = TInputImage>
void itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [virtual]

Print internal ivars

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

template<typename TInputImage , typename TOutputImage = TInputImage>
virtual void itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::SetOutputMaximum ( OutputPixelType  _arg) [virtual]
template<typename TInputImage , typename TOutputImage = TInputImage>
virtual void itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::SetOutputMinimum ( OutputPixelType  _arg) [virtual]
template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::typedef ( Concept::MultiplyOperator< RealType )

This class requires RealTypeMultiplyOperatorCheck in the form of ( Concept::MultiplyOperator< RealType > )

template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::typedef ( Concept::HasNumericTraits< OutputPixelType )

This class requires OutputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< OutputPixelType > )

template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::typedef ( Concept::AdditiveOperators< RealType )

This class requires RealTypeAdditiveOperatorsCheck in the form of ( Concept::AdditiveOperators< RealType > )

template<typename TInputImage , typename TOutputImage = TInputImage>
itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::typedef ( Concept::HasNumericTraits< InputPixelType )

Begin concept checking This class requires InputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< InputPixelType > )


Member Data Documentation

template<typename TInputImage , typename TOutputImage = TInputImage>
InputPixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_InputMaximum [private]

Definition at line 200 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
InputPixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_InputMinimum [private]

Definition at line 199 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
OutputPixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_OutputMaximum [private]

Definition at line 203 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
OutputPixelType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_OutputMinimum [private]

Definition at line 202 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
RealType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_Scale [private]

Definition at line 196 of file itkRescaleIntensityImageFilter.h.

template<typename TInputImage , typename TOutputImage = TInputImage>
RealType itk::RescaleIntensityImageFilter< TInputImage, TOutputImage >::m_Shift [private]

Definition at line 197 of file itkRescaleIntensityImageFilter.h.


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