18#ifndef itkAbsoluteValueDifferenceImageFilter_h
19#define itkAbsoluteValueDifferenceImageFilter_h
57template <
typename TInput1,
typename TInput2,
typename TOutput>
73 const auto dA =
static_cast<double>(A);
74 const auto dB =
static_cast<double>(B);
75 const double diff = dA - dB;
76 const double absdiff = (diff > 0.0) ? diff : -diff;
78 return static_cast<TOutput
>(absdiff);
83template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType>;
108#ifdef ITK_USE_CONCEPT_CHECKING
119#if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise the computation of absolute value difference.
AbsoluteValueDifferenceImageFilter()
~AbsoluteValueDifferenceImageFilter() override=default
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool operator==(const AbsoluteValueDifference2 &) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(AbsoluteValueDifference2)
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....