18#ifndef itkConstrainedValueDifferenceImageFilter_h
19#define itkConstrainedValueDifferenceImageFilter_h
57template <
typename TInput1,
typename TInput2,
typename TOutput>
72 const auto dA =
static_cast<double>(A);
73 const auto dB =
static_cast<double>(B);
74 const double diff = dA - dB;
79 return static_cast<TOutput
>(cdiff2);
84template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
97 typename TInputImage2::PixelType,
98 typename TOutputImage::PixelType>;
106#ifdef ITK_USE_CONCEPT_CHECKING
119#if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise generic operation of two images, or of an image and a constant.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
Implements pixel-wise the computation of constrained value difference.
Functor::ConstrainedValueDifference< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
ConstrainedValueDifferenceImageFilter()
~ConstrainedValueDifferenceImageFilter() override=default
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstrainedValueDifference)
bool operator==(const ConstrainedValueDifference &) const
Base class for all process objects that output image data.
Define additional traits for native types such as int or float.
static constexpr T NonpositiveMin()
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....