ITK
6.0.0
Insight 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 121 of file itkAdaptImageFilter.h.
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::ImageToImageFilter< TInputImage, TOutputImage > | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Additional Inherited Members | |
Static Public Attributes inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
template<typename TSourceObject > | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading { true } |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::AccessorType = TAccessor |
Typedef for the accessor type
Definition at line 145 of file itkAdaptImageFilter.h.
using itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::ConstPointer = SmartPointer<const Self> |
Definition at line 138 of file itkAdaptImageFilter.h.
using itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Pointer = SmartPointer<Self> |
Definition at line 137 of file itkAdaptImageFilter.h.
using itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Self = AdaptImageFilter |
Standard class type aliases.
Definition at line 131 of file itkAdaptImageFilter.h.
using itk::AdaptImageFilter< TInputImage, TOutputImage, TAccessor >::Superclass = UnaryFunctorImageFilter<TInputImage, TOutputImage, Functor::AccessorFunctor<typename TInputImage::PixelType, TAccessor> > |
Definition at line 135 of file itkAdaptImageFilter.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inline |
Get the accessor. This is a convenience method so the user
Definition at line 152 of file itkAdaptImageFilter.h.
References itk::Functor::AccessorFunctor< TInput, TAccessor >::GetAccessor(), and itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::GetFunctor().
|
overridevirtual |
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
|
inline |
Set the accessor. This is a convenience method so the user does
Definition at line 159 of file itkAdaptImageFilter.h.
References itk::Functor::AccessorFunctor< TInput, TAccessor >::GetAccessor(), itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::GetFunctor(), itk::Object::Modified(), itk::Functor::AccessorFunctor< TInput, TAccessor >::SetAccessor(), and itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::AccessorFunctor< TInputImage::PixelType, TAccessor > >::SetFunctor().