ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkAdaptImageFilter.h>
Public Types | |
typedef TAccessor | AccessorType |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::FunctorType | FunctorType |
typedef SmartPointer< Self > | Pointer |
typedef AdaptImageFilter | Self |
typedef UnaryFunctorImageFilter < TInputImage, TOutputImage, Functor::AccessorFunctor < typename TInputImage::PixelType, TAccessor > > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
AccessorType & | GetAccessor () |
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 &) |
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.
typedef TAccessor itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AccessorType |
Typedef for the accessor type
Definition at line 144 of file itkAdaptImageFilter.h.
typedef SmartPointer< const Self > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::ConstPointer |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
Definition at line 140 of file itkAdaptImageFilter.h.
typedef Superclass::FunctorType itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::FunctorType |
Some typedefs.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
Definition at line 141 of file itkAdaptImageFilter.h.
typedef SmartPointer< Self > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Pointer |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
Definition at line 139 of file itkAdaptImageFilter.h.
typedef AdaptImageFilter itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self |
Standard class typedefs.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
Definition at line 131 of file itkAdaptImageFilter.h.
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< typename TInputImage::PixelType, TAccessor > > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Superclass |
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
Definition at line 137 of file itkAdaptImageFilter.h.
itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AdaptImageFilter | ( | ) | [inline, protected] |
Definition at line 170 of file itkAdaptImageFilter.h.
virtual itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::~AdaptImageFilter | ( | ) | [inline, protected, virtual] |
Definition at line 171 of file itkAdaptImageFilter.h.
itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AdaptImageFilter | ( | const Self & | ) | [private] |
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 > >.
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.
virtual const char* itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
static Pointer itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, 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 > >.
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.