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