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 using Superclass = itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
90 #ifdef ITK_USE_CONCEPT_CHECKING
92 itkConceptMacro(InputConvertibleToOutputCheck, (itk::Concept::Convertible<InputPixelValueType, OutputPixelType>));
Computes pixel-wise the intensity of a complex image.
typename itk::NumericTraits< InputPixelType >::ValueType InputPixelValueType
void operator=(const Self &)=delete
typename TOutputImage::PixelType OutputPixelType
itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Function::ComplexToIntensity< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
itk::SmartPointer< const Self > ConstPointer
~ComplexToIntensityImageFilter() override=default
ComplexToIntensityImageFilter(const Self &)=delete
typename TInputImage::PixelType InputPixelType
itk::SmartPointer< Self > Pointer
ComplexToIntensityImageFilter()=default
bool operator==(const ComplexToIntensity &other) const
TOutput operator()(const TInput &A) const
bool operator!=(const ComplexToIntensity &) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.