21 #ifndef otbComplexToIntensityImageFilter_h
22 #define otbComplexToIntensityImageFilter_h
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "vnl/vnl_math.h"
42 template <
class TInput,
class TOutput>
58 return !(*
this != other);
62 return static_cast<TOutput
>(A.real() * A.real() + A.imag() * A.imag());
67 template <
class TInputImage,
class TOutputImage>
69 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
70 Function::ComplexToIntensity<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
75 typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
91 #ifdef ITK_USE_CONCEPT_CHECKING
93 itkConceptMacro(InputConvertibleToOutputCheck, (itk::Concept::Convertible<InputPixelValueType, OutputPixelType>));
109 void operator=(
const Self&) =
delete;