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,
86 typename TImage::PixelType,
TOutputPixelType ExternalType
Define numeric traits for std::vector.
Give access to the std::abs() function of a value.
TImage::PixelType InternalType
static void Set(TInternalType &output, const TExternalType &input)
~AbsImageAdaptor() override=default
Presents an image as being composed of the std::abs() of its pixels.
static TExternalType Get(const TInternalType &input)
AbsImageAdaptor()=default
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
Base class for all data objects in ITK.