18 #ifndef __itkAbsoluteValueDifferenceImageFilter_h
19 #define __itkAbsoluteValueDifferenceImageFilter_h
56 template<
class TInput1,
class TInput2,
class TOutput >
69 return !( *
this != other );
73 const TInput2 & B)
const
75 const double dA =
static_cast< double >( A );
76 const double 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<
class TInputImage1,
class TInputImage2,
class TOutputImage >
89 Functor::AbsoluteValueDifference2<
90 typename TInputImage1::PixelType,
91 typename TInputImage2::PixelType,
92 typename TOutputImage::PixelType > >
99 typename TInputImage1::PixelType,
100 typename TInputImage2::PixelType,
101 typename TOutputImage::PixelType >
114 #ifdef ITK_USE_CONCEPT_CHECKING
132 void operator=(
const Self &);