17 #ifndef __itkAbsoluteValueDifferenceImageFilter_h
18 #define __itkAbsoluteValueDifferenceImageFilter_h
51 template<
class TInput1,
class TInput2,
class TOutput>
63 return !(*
this != other);
66 const TInput2 & B)
const
68 const double dA =
static_cast<double>( A );
69 const double dB =
static_cast<double>( B );
70 const double diff = dA - dB;
71 const double absdiff = ( diff > 0.0 ) ? diff : -diff;
72 return static_cast<TOutput
>( absdiff );
77 template <
class TInputImage1,
class TInputImage2,
class TOutputImage>
81 Functor::AbsoluteValueDifference2<
82 typename TInputImage1::PixelType,
83 typename TInputImage2::PixelType,
84 typename TOutputImage::PixelType> >
91 typename TInputImage1::PixelType,
92 typename TInputImage2::PixelType,
93 typename TOutputImage::PixelType>
106 #ifdef ITK_USE_CONCEPT_CHECKING
123 void operator=(
const Self&);