18 #ifndef itkAbsoluteValueDifferenceImageFilter_h
19 #define itkAbsoluteValueDifferenceImageFilter_h
57 template <
typename TInput1,
typename TInput2,
typename TOutput>
75 const auto dA = static_cast<double>(A);
76 const auto dB = static_cast<double>(B);
77 const double diff = dA - dB;
78 const double absdiff = (diff > 0.0) ? diff : -diff;
80 return static_cast<TOutput>(absdiff);
85 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
101 typename TInputImage2::PixelType,
102 typename TOutputImage::PixelType>;
110 #ifdef ITK_USE_CONCEPT_CHECKING
121 #if !defined(ITK_WRAPPING_PARSER)