ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkAdaptImageFilter.h>
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 std::sqrt() or std::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.
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 Types inherited from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Functor::AccessorFunctor < TInputImage::PixelType, TAccessor > | FunctorType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::ConstPointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef UnaryFunctorImageFilter | Self |
typedef InPlaceImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef InPlaceImageFilter | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Private Member Functions | |
AdaptImageFilter (const Self &) | |
void | operator= (const Self &) |
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 |
Definition at line 140 of file itkAdaptImageFilter.h.
typedef Superclass::FunctorType itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::FunctorType |
Definition at line 141 of file itkAdaptImageFilter.h.
typedef SmartPointer< Self > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Pointer |
Definition at line 139 of file itkAdaptImageFilter.h.
typedef AdaptImageFilter itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self |
Standard class typedefs.
Definition at line 131 of file itkAdaptImageFilter.h.
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< typename TInputImage::PixelType, TAccessor > > itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Superclass |
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::Object.
|
inline |
Get the accessor. This is a convenience method so the user
Definition at line 153 of file itkAdaptImageFilter.h.
References itk::Functor::AccessorFunctor< TInput, TAccessor >::GetAccessor(), and itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::GetFunctor().
|
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.
|
private |
|
inline |
Set the accessor. This is a convenience method so the user does
Definition at line 156 of file itkAdaptImageFilter.h.
References itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::GetFunctor(), itk::Object::Modified(), and itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::SetFunctor().