#include <itkAdaptImageFilter.h>
Public Types | |
typedef AdaptImageFilter | Self |
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< typename TInputImage::PixelType, TAccessor > > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FunctorType | FunctorType |
typedef TAccessor | AccessorType |
Public Member Functions | |
virtual const char * | GetClassName () const |
AccessorType & | GetAccessor () |
void | SetAccessor (AccessorType &accessor) |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
AdaptImageFilter () | |
virtual | ~AdaptImageFilter () |
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.
|
Typedef for the accessor type Definition at line 128 of file itkAdaptImageFilter.h. |
|
Definition at line 121 of file itkAdaptImageFilter.h. |
|
Definition at line 122 of file itkAdaptImageFilter.h. Referenced by itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::SetAccessor(). |
|
Definition at line 120 of file itkAdaptImageFilter.h. |
|
Standard class typedefs. Definition at line 113 of file itkAdaptImageFilter.h. Referenced by itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::~AdaptImageFilter(). |
|
Definition at line 118 of file itkAdaptImageFilter.h. |
|
Definition at line 151 of file itkAdaptImageFilter.h. |
|
Definition at line 152 of file itkAdaptImageFilter.h. References itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self. |
|
Get the accessor. This is a convenience method so the user Definition at line 134 of file itkAdaptImageFilter.h. |
|
Run-time type information (and related methods). |
|
Method for creation through the object factory. |
|
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. |