|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkAbsImageAdaptor_h
19 #define itkAbsImageAdaptor_h
39 template <
typename TInternalType,
typename TExternalType>
53 Set(TInternalType & output,
const TExternalType & input)
55 output = (TInternalType)((input > TExternalType{}) ? input : -input);
58 static inline TExternalType
59 Get(
const TInternalType & input)
61 return (TExternalType)((input > TInternalType{}) ? input : -input);
76 template <
typename TImage,
typename TOutputPixelType>
78 :
public ImageAdaptor<TImage, Accessor::AbsPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
~AbsImageAdaptor() override=default
static TExternalType Get(const TInternalType &input)
AbsImageAdaptor()=default
Give access to the itk::Math::abs() function of a value.
Give access to partial aspects of voxels from an Image.
TOutputPixelType ExternalType
Presents an image as being composed of the itk::Math::abs() of its pixels.
static void Set(TInternalType &output, const TExternalType &input)
TImage::PixelType InternalType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Base class for most ITK classes.
Base class for all data objects in ITK.