18 #ifndef itkComplexToRealImageAdaptor_h
19 #define itkComplexToRealImageAdaptor_h
40 template<
typename TInternalType,
typename TExternalType >
52 static inline void Set(TInternalType & output,
const TExternalType & input)
53 { output = (TInternalType)( input ); }
55 static inline TExternalType
Get(
const TInternalType & input)
56 {
return (TExternalType)( input.real() ); }
70 template<
typename TImage,
typename TOutputPixelType >
73 Accessor::ComplexToRealPixelAccessor<
74 typename TImage::PixelType,
83 typename TImage::PixelType,
ComplexToRealImageAdaptor()=default
Give access to the Real part of a std::complex<> value.
TOutputPixelType ExternalType
Presents a complex image as being composed of real() part of its pixels.
TImage::PixelType InternalType
static TExternalType Get(const TInternalType &input)
static void Set(TInternalType &output, const TExternalType &input)
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
~ComplexToRealImageAdaptor() override=default
Base class for all data objects in ITK.