18 #ifndef __itkConstrainedValueDifferenceImageFilter_h
19 #define __itkConstrainedValueDifferenceImageFilter_h
57 template<
typename TInput1,
typename TInput2,
typename 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<
typename TInputImage1,
typename TInputImage2,
typename 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
ConstrainedValueDifferenceImageFilter()
ConstrainedValueDifferenceImageFilter Self
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::ConstrainedValueDifference< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
~ConstrainedValueDifference()
void operator=(const Self &)
Base class for all process objects that output image data.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
SmartPointer< Self > Pointer
Implements pixel-wise the computation of constrained value difference.
bool operator!=(const ConstrainedValueDifference &) const
ConstrainedValueDifference()
static T NonpositiveMin()
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
SmartPointer< const Self > ConstPointer
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool operator==(const ConstrainedValueDifference &other) const
virtual ~ConstrainedValueDifferenceImageFilter()