18 #ifndef __itkSquaredDifferenceImageFilter_h
19 #define __itkSquaredDifferenceImageFilter_h
55 template<
class TInput1,
class TInput2,
class TOutput >
68 return !( *
this != other );
72 const TInput2 & B)
const
74 const double dA =
static_cast< double >( A );
75 const double dB =
static_cast< double >( B );
76 const double diff = dA - dB;
78 return static_cast< TOutput
>( diff * diff );
83 template<
class TInputImage1,
class TInputImage2,
class TOutputImage >
87 Functor::SquaredDifference2<
88 typename TInputImage1::PixelType,
89 typename TInputImage2::PixelType,
90 typename TOutputImage::PixelType > >
96 TInputImage1, TInputImage2, TOutputImage,
98 typename TInputImage1::PixelType,
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType >
113 #ifdef ITK_USE_CONCEPT_CHECKING
129 void operator=(
const Self &);