18 #ifndef itkComplexToModulusImageFilter_h
19 #define itkComplexToModulusImageFilter_h
22 #include "vnl/vnl_math.h"
34 template<
typename TInput,
typename TOutput >
47 return !( *
this != other );
52 return (TOutput)( std::sqrt( A.real() * A.real()
53 + A.imag() * A.imag() ) );
58 template<
typename TInputImage,
typename TOutputImage >
62 Functor::ComplexToModulus<
63 typename TInputImage::PixelType,
64 typename TOutputImage::PixelType > >
70 TInputImage, TOutputImage,
88 #ifdef ITK_USE_CONCEPT_CHECKING
101 void operator=(const
Self &) ITK_DELETE_FUNCTION;
TOutputImage::PixelType OutputPixelType
virtual ~ComplexToModulusImageFilter()
bool operator!=(const ComplexToModulus &) const
ComplexToModulusImageFilter()
TInputImage::PixelType InputPixelType
Base class for all process objects that output image data.
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::ComplexToModulus< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
SmartPointer< Self > Pointer
NumericTraits< InputPixelType >::ValueType InputPixelValueType
Computes pixel-wise the Modulus of a complex image.
ComplexToModulusImageFilter Self
Implements pixel-wise generic operation on one image.
SmartPointer< const Self > ConstPointer
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput &A) const
bool operator==(const ComplexToModulus &other) const