17 #ifndef __itkComplexToModulusImageAdaptor_h
18 #define __itkComplexToModulusImageAdaptor_h
38 template <
class TInternalType,
class TExternalType >
50 static inline void Set(TInternalType & output,
const TExternalType & input)
51 {output = (TInternalType)(input);}
53 static inline TExternalType Get(
const TInternalType & input )
54 {
return (TExternalType)( vcl_sqrt(input.real() * input.real() +
55 input.imag() * input.imag() ) ); }
69 template <
class TImage,
class TOutputPixelType>
72 Accessor::ComplexToModulusPixelAccessor<
73 typename TImage::PixelType,
80 typename TImage::PixelType,
97 void operator=(
const Self&);