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

itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor > Class Template Reference
[Intensity Image FiltersMultithreaded Filters]

Convert an image to another pixel type using the specified data accessor. More...

#include <itkAdaptImageFilter.h>

Inheritance diagram for itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef AdaptImageFilter Self
typedef UnaryFunctorImageFilter<
TInputImage, TOutputImage,
Functor::AccessorFunctor<
typename TInputImage::PixelType,
TAccessor > > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef Superclass::FunctorType FunctorType
typedef TAccessor AccessorType

Public Member Functions

virtual const char * GetNameOfClass () const
AccessorTypeGetAccessor ()
void SetAccessor (AccessorType &accessor)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 AdaptImageFilter ()
virtual ~AdaptImageFilter ()

Detailed Description

template<class TInputImage, class TOutputImage, class TAccessor>
class itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >

Convert an image to another pixel type using the specified data accessor.

AdaptImageFilter converts an image to another pixel type using a data accessor. AdaptImageFilter can perform simple cast operations (i.e. short to float) or can extract a subcomponent of a pixel (i.e. extract the green component of an RGB pixel. AdaptImageFilter could also be used for performing simple arithmetic operations at a pixel (i.e. taking the sqrt() or sin() of a pixel); however, these types of operations could also be accomplished using the itk::UnaryImageFilter.

The third template parameter for this filter is a DataAccessor which performs the adaption or conversion of a pixel. The DataAccessor must provide a method called Get() which takes an input pixel and returns an output pixel. The input pixel can be passed by reference but the output pixel is frequently returned by value. However, a data accessor that returns a subcomponent of a pixel will usually return that subcomponent by reference. For instance, a data accessor that returns the green component of a RGB pixel will simply return a reference to the proper element of the RGB vector. See itk::DataAccessor for performing simple cast operations.

Definition at line 108 of file itkAdaptImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage, class TAccessor>
typedef TAccessor itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AccessorType
 

Typedef for the accessor type

Definition at line 128 of file itkAdaptImageFilter.h.

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

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

Definition at line 121 of file itkAdaptImageFilter.h.

template<class TInputImage, class TOutputImage, class TAccessor>
typedef Superclass::FunctorType itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::FunctorType
 

Some typedefs.

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

Definition at line 122 of file itkAdaptImageFilter.h.

Referenced by itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::SetAccessor().

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

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

Definition at line 120 of file itkAdaptImageFilter.h.

template<class TInputImage, class TOutputImage, class TAccessor>
typedef AdaptImageFilter itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self
 

Standard class typedefs.

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

Definition at line 113 of file itkAdaptImageFilter.h.

Referenced by itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::~AdaptImageFilter().

template<class TInputImage, class TOutputImage, class TAccessor>
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< typename TInputImage::PixelType, TAccessor> > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Superclass
 

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

Definition at line 118 of file itkAdaptImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage, class TAccessor>
itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AdaptImageFilter  )  [inline, protected]
 

Definition at line 151 of file itkAdaptImageFilter.h.

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

Definition at line 152 of file itkAdaptImageFilter.h.

References itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self.


Member Function Documentation

template<class TInputImage, class TOutputImage, class TAccessor>
AccessorType& itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::GetAccessor  )  [inline]
 

Get the accessor. This is a convenience method so the user

Definition at line 134 of file itkAdaptImageFilter.h.

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

Run-time type information (and related methods).

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

template<class TInputImage, class TOutputImage, class TAccessor>
Pointer itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >.

template<class TInputImage, class TOutputImage, class TAccessor>
void itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::SetAccessor AccessorType accessor  )  [inline]
 

Set the accessor. This is a convenience method so the user does

Definition at line 137 of file itkAdaptImageFilter.h.

References itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::FunctorType.


The documentation for this class was generated from the following file:
Generated at Thu May 25 00:20:11 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000