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

#include <itkAdaptImageFilter.h>

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

List of all members.

Public Types

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

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
AccessorTypeGetAccessor ()
virtual const char * GetNameOfClass () const
void SetAccessor (AccessorType &accessor)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 AdaptImageFilter ()
virtual ~AdaptImageFilter ()

Private Member Functions

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

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 vcl_sqrt() or vcl_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 125 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 144 of file itkAdaptImageFilter.h.

template<class TInputImage , class TOutputImage , class TAccessor >
typedef SmartPointer< const Self > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::ConstPointer
template<class TInputImage , class TOutputImage , class TAccessor >
typedef Superclass::FunctorType itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::FunctorType
template<class TInputImage , class TOutputImage , class TAccessor >
typedef SmartPointer< Self > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Pointer
template<class TInputImage , class TOutputImage , class TAccessor >
typedef AdaptImageFilter itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self
template<class TInputImage , class TOutputImage , class TAccessor >
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< typename TInputImage::PixelType, TAccessor > > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Superclass

Constructor & Destructor Documentation

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

Definition at line 170 of file itkAdaptImageFilter.h.

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

Definition at line 171 of file itkAdaptImageFilter.h.

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

Member Function Documentation

template<class TInputImage , class TOutputImage , class TAccessor >
virtual::itk::LightObject::Pointer itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::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::AccessorFunctor< TInputImage::PixelType, TAccessor > >.

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 153 of file itkAdaptImageFilter.h.

template<class TInputImage , class TOutputImage , class TAccessor >
virtual const char* itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::GetNameOfClass ( ) const [virtual]
template<class TInputImage , class TOutputImage , class TAccessor >
static Pointer itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::New ( ) [static]
template<class TInputImage , class TOutputImage , class TAccessor >
void itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::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::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.

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 156 of file itkAdaptImageFilter.h.


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