18 #ifndef itkComplexToPhaseImageAdaptor_h
19 #define itkComplexToPhaseImageAdaptor_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)( std::atan2( input.imag(), input.real() ) ); }
69 template<
typename TImage,
typename TOutputPixelType >
72 Accessor::ComplexToPhasePixelAccessor<
73 typename TImage::PixelType,
80 typename TImage::PixelType,
TInternalType InternalType
Give access to the Phase part of a std::complex<> value.
Presents a complex image as being composed of arg() part of its pixels.
virtual ~ComplexToPhaseImageAdaptor()
static TExternalType Get(const TInternalType &input)
ComplexToPhaseImageAdaptor()
SmartPointer< Self > Pointer
TExternalType ExternalType
void operator=(const Self &)
Give access to partial aspects of voxels from an Image.
ComplexToPhaseImageAdaptor Self
static void Set(TInternalType &output, const TExternalType &input)
Base class for all data objects in ITK.
ImageAdaptor< TImage, Accessor::ComplexToPhasePixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
SmartPointer< const Self > ConstPointer