18 #ifndef itkAbsImageAdaptor_h
19 #define itkAbsImageAdaptor_h
38 template<
typename TInternalType,
typename TExternalType >
50 static inline void Set(TInternalType & output,
const TExternalType & input)
52 output = (TInternalType)(
56 static inline TExternalType
Get(
const TInternalType & input)
58 return (TExternalType)(
73 template<
typename TImage,
typename TOutputPixelType >
76 Accessor::AbsPixelAccessor<
77 typename TImage::PixelType,
84 typename TImage::PixelType,
virtual ~AbsImageAdaptor() override
Give access to the std::abs() function of a value.
static void Set(TInternalType &output, const TExternalType &input)
SmartPointer< Self > Pointer
Presents an image as being composed of the std::abs() of its pixels.
static TExternalType Get(const TInternalType &input)
TInternalType InternalType
SmartPointer< const Self > ConstPointer
Define additional traits for native types such as int or float.
Give access to partial aspects of voxels from an Image.
ImageAdaptor< TImage, Accessor::AbsPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
TExternalType ExternalType
Base class for all data objects in ITK.