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