18 #ifndef __itkComplexToModulusImageAdaptor_h
19 #define __itkComplexToModulusImageAdaptor_h
40 template<
class TInternalType,
class TExternalType >
52 static inline void Set(TInternalType & output,
const TExternalType & input)
53 { output = (TInternalType)( input ); }
55 static inline TExternalType Get(
const TInternalType & input)
57 return (TExternalType)( vcl_sqrt( input.real() * input.real()
58 + input.imag() * input.imag() ) );
73 template<
class TImage,
class TOutputPixelType >
76 Accessor::ComplexToModulusPixelAccessor<
77 typename TImage::PixelType,
84 typename TImage::PixelType,
100 void operator=(
const Self &);