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>;
109#if !defined(ITK_WRAPPING_PARSER)
BinaryGeneratorImageFilter()
void SetFunctor(const std::function< ConstRefFunctionType > &f)
BinaryMagnitudeImageFilter()
~BinaryMagnitudeImageFilter() override=default
SmartPointer< Self > Pointer
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
BinaryMagnitudeImageFilter Self
SmartPointer< const Self > ConstPointer
Functor:: Modulus2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
bool operator==(const Modulus2 &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Modulus2)
Implements transparent reference counting.
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....