18 #ifndef __itkConstrainedValueDifferenceImageFilter_h
19 #define __itkConstrainedValueDifferenceImageFilter_h
57 template<
class TInput1,
class TInput2,
class TOutput >
70 return !( *
this != other );
74 const TInput2 & B)
const
76 const double dA =
static_cast< double >( A );
77 const double dB =
static_cast< double >( B );
78 const double diff = dA - dB;
81 const double cdiff2 = cdiff1 < NumericTraits< TOutput >::max() ?
84 return static_cast< TOutput
>( cdiff2 );
89 template<
class TInputImage1,
class TInputImage2,
class TOutputImage >
93 Functor::ConstrainedValueDifference<
94 typename TInputImage1::PixelType,
95 typename TInputImage2::PixelType,
96 typename TOutputImage::PixelType > >
103 typename TInputImage1::PixelType,
104 typename TInputImage2::PixelType,
105 typename TOutputImage::PixelType > >
117 #ifdef ITK_USE_CONCEPT_CHECKING
136 void operator=(
const Self &);