ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkAdaptImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
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.
|
inlineprotected |
Definition at line 170 of file itkAdaptImageFilter.h.
|
inlineprotectedvirtual |
Definition at line 171 of file itkAdaptImageFilter.h.
|
private |
|
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 > >.
|
inline |
Get the accessor. This is a convenience method so the user
Definition at line 153 of file itkAdaptImageFilter.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
|
static |
Method for creation through the object factory.
Reimplemented from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >.
|
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 > >.
|
inline |
Set the accessor. This is a convenience method so the user does
Definition at line 156 of file itkAdaptImageFilter.h.