18 #ifndef itkComplexToImaginaryImageAdaptor_h
19 #define itkComplexToImaginaryImageAdaptor_h
43 template<
typename TInternalType,
typename TExternalType >
55 static inline void Set(TInternalType & output,
const TExternalType & input)
56 { output = (TInternalType)( input ); }
58 static inline TExternalType
Get(
const TInternalType & input)
59 {
return (TExternalType)( input.imag() ); }
73 template<
typename TImage,
typename TOutputPixelType >
76 Accessor::ComplexToImaginaryPixelAccessor<
77 typename TImage::PixelType,
86 typename TImage::PixelType,
static TExternalType Get(const TInternalType &input)
ComplexToImaginaryImageAdaptor()=default
TOutputPixelType ExternalType
Give access to the Imaginary part of a std::complex<> value.
static void Set(TInternalType &output, const TExternalType &input)
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
Presents a complex image as being composed of imag() part of its pixels.
Base class for all data objects in ITK.
TImage::PixelType InternalType
~ComplexToImaginaryImageAdaptor() override=default