18 #ifndef itkComplexToPhaseImageAdaptor_h
19 #define itkComplexToPhaseImageAdaptor_h
41 template <
typename TInternalType,
typename TExternalType>
55 Set(TInternalType & output,
const TExternalType & input)
57 output = (TInternalType)(input);
60 static inline TExternalType
61 Get(
const TInternalType & input)
63 return (TExternalType)(std::atan2(input.imag(), input.real()));
78 template <
typename TImage,
typename TOutputPixelType>
80 :
public ImageAdaptor<TImage, Accessor::ComplexToPhasePixelAccessor<typename TImage::PixelType, TOutputPixelType>>