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 auto dA =
static_cast< double >( A );
77 const auto 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 >
103 typename TInputImage2::PixelType,
104 typename TOutputImage::PixelType >;
113 #ifdef ITK_USE_CONCEPT_CHECKING
129 #if !defined( ITK_WRAPPING_PARSER )
ConstrainedValueDifference()=default
ConstrainedValueDifferenceImageFilter()
Define numeric traits for std::vector.
Functor::ConstrainedValueDifference< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
~ConstrainedValueDifference()=default
Base class for all process objects that output image data.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Implements pixel-wise the computation of constrained value difference.
bool operator!=(const ConstrainedValueDifference &) const
Implements pixel-wise generic operation of two images, or of an image and a constant.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
#define itkConceptMacro(name, concept)
~ConstrainedValueDifferenceImageFilter() override=default
bool operator==(const ConstrainedValueDifference &other) const