18 #ifndef itkBinaryMagnitudeImageFilter_h
19 #define itkBinaryMagnitudeImageFilter_h
32 template<
typename TInput1,
typename TInput2,
typename TOutput >
46 return !( *
this != other );
50 const TInput2 & B)
const
52 const auto dA =
static_cast< double >( A );
53 const auto dB =
static_cast< double >( B );
55 return static_cast< TOutput
>( std::sqrt(dA * dA + dB * dB) );
85 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType >;
109 #ifdef ITK_USE_CONCEPT_CHECKING
123 #if !defined( ITK_WRAPPING_PARSER )
~BinaryMagnitudeImageFilter() override=default
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Base class for all process objects that output image data.
Functor::Modulus2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool operator==(const Modulus2 &other) const
Computes the square root of the sum of squares of corresponding input pixels.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
BinaryMagnitudeImageFilter()
#define itkConceptMacro(name, concept)
bool operator!=(const Modulus2 &) const