18 #ifndef itkAbsoluteValueDifferenceImageFilter_h
19 #define itkAbsoluteValueDifferenceImageFilter_h
57 template <
typename TInput1,
typename TInput2,
typename TOutput>
73 const auto dA = static_cast<double>(A);
74 const auto dB = static_cast<double>(B);
75 const double diff = dA - dB;
76 const double absdiff = (diff > 0.0) ? diff : -diff;
78 return static_cast<TOutput>(absdiff);
83 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
99 typename TInputImage2::PixelType,
100 typename TOutputImage::PixelType>;
108 #ifdef ITK_USE_CONCEPT_CHECKING
119 #if !defined(ITK_WRAPPING_PARSER)