18#ifndef itkComplexToImaginaryImageAdaptor_h
19#define itkComplexToImaginaryImageAdaptor_h
44template <
typename TInternalType,
typename TExternalType>
58 Set(TInternalType & output,
const TExternalType & input)
60 output = (TInternalType)(input);
63 static inline TExternalType
64 Get(
const TInternalType & input)
66 return (TExternalType)(input.imag());
82template <
typename TImage,
typename TOutputPixelType>
84 :
public ImageAdaptor<TImage, Accessor::ComplexToImaginaryPixelAccessor<typename TImage::PixelType, TOutputPixelType>>
Give access to the Imaginary part of a std::complex<> value.
static TExternalType Get(const TInternalType &input)
TInternalType InternalType
static void Set(TInternalType &output, const TExternalType &input)
TExternalType ExternalType
Presents a complex image as being composed of imag() part of its pixels.
ComplexToImaginaryImageAdaptor()=default
~ComplexToImaginaryImageAdaptor() override=default
Base class for all data objects in ITK.
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....