18#ifndef itkComplexToModulusImageFilter_h
19#define itkComplexToModulusImageFilter_h
34template <
typename TInput,
typename TOutput>
49 return (TOutput)(std::sqrt(A.real() * A.real() + A.imag() * A.imag()));
54template <
typename TInputImage,
typename TOutputImage>
77#ifdef ITK_USE_CONCEPT_CHECKING
86#if !defined(ITK_WRAPPING_PARSER)
Computes pixel-wise the Modulus of a complex image.
ComplexToModulusImageFilter()
~ComplexToModulusImageFilter() override=default
typename TOutputImage::PixelType OutputPixelType
typename NumericTraits< InputPixelType >::ValueType InputPixelValueType
typename TInputImage::PixelType InputPixelType
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ComplexToModulus)
bool operator==(const ComplexToModulus &) const
TOutput operator()(const TInput &A) const
Base class for all process objects that output image data.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Implements pixel-wise generic "operation" on one image.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....