18#ifndef itkSquaredDifferenceImageFilter_h
19#define itkSquaredDifferenceImageFilter_h
56template <
typename TInput1,
typename TInput2,
typename TOutput>
72 const auto dA =
static_cast<double>(A);
73 const auto dB =
static_cast<double>(B);
74 const double diff = dA - dB;
76 return static_cast<TOutput
>(diff * diff);
81template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
96 typename TInputImage2::PixelType,
97 typename TOutputImage::PixelType>;
105#ifdef ITK_USE_CONCEPT_CHECKING
116#if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise generic operation of two images, or of an image and a constant.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator==(const SquaredDifference2 &) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(SquaredDifference2)
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...
Implements pixel-wise the computation of squared difference.
~SquaredDifferenceImageFilter() override=default
SquaredDifferenceImageFilter()
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....