18#ifndef itkBinaryMagnitudeImageFilter_h
19#define itkBinaryMagnitudeImageFilter_h
32template <
typename TInput1,
typename TInput2,
typename TOutput>
47 const auto dA =
static_cast<double>(A);
48 const auto dB =
static_cast<double>(B);
50 return static_cast<TOutput
>(std::sqrt(dA * dA + dB * dB));
81template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
94 Modulus2<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>;
102#ifdef ITK_USE_CONCEPT_CHECKING
113#if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise generic operation of two images, or of an image and a constant.
Computes the square root of the sum of squares of corresponding input pixels.
BinaryMagnitudeImageFilter()
~BinaryMagnitudeImageFilter() override=default
bool operator==(const Modulus2 &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Modulus2)
Base class for all process objects that output image data.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
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....