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,
81 typename TImage::PixelType,
ComplexToRealImageAdaptor Self
ComplexToRealImageAdaptor()
Give access to the Real part of a std::complex<> value.
TExternalType ExternalType
TInternalType InternalType
Presents a complex image as being composed of real() part of its pixels.
SmartPointer< const Self > ConstPointer
ImageAdaptor< TImage, Accessor::ComplexToRealPixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
virtual ~ComplexToRealImageAdaptor() override
static TExternalType Get(const TInternalType &input)
static void Set(TInternalType &output, const TExternalType &input)
SmartPointer< Self > Pointer
Give access to partial aspects of voxels from an Image.
Base class for all data objects in ITK.