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>;
115#if !defined(ITK_WRAPPING_PARSER)
BinaryGeneratorImageFilter()
void SetFunctor(const std::function< ConstRefFunctionType > &f)
ConstrainedValueDifferenceImageFilter Self
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
Functor::ConstrainedValueDifference< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
SmartPointer< Self > Pointer
ConstrainedValueDifferenceImageFilter()
SmartPointer< const Self > ConstPointer
~ConstrainedValueDifferenceImageFilter() override=default
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstrainedValueDifference)
bool operator==(const ConstrainedValueDifference &) const
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....