18 #ifndef itkSquaredDifferenceImageFilter_h
19 #define itkSquaredDifferenceImageFilter_h
56 template <
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);
81 template <
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)