|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkAbsoluteValueDifferenceImageFilter_h
19 #define itkAbsoluteValueDifferenceImageFilter_h
57 template <
typename TInput1,
typename TInput2,
typename TOutput>
73 return !(*
this != other);
79 const auto dA = static_cast<double>(A);
80 const auto dB = static_cast<double>(B);
81 const double diff = dA - dB;
82 const double absdiff = (diff > 0.0) ? diff : -diff;
84 return static_cast<TOutput>(absdiff);
89 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
104 typename TInputImage2::PixelType,
105 typename TOutputImage::PixelType>;
113 #ifdef ITK_USE_CONCEPT_CHECKING
124 #if !defined(ITK_WRAPPING_PARSER)
~AbsoluteValueDifferenceImageFilter() override=default
AbsoluteValueDifference2()=default
Implements pixel-wise generic operation of two images, or of an image and a constant.
Base class for all process objects that output image data.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const AbsoluteValueDifference2 &) const
~AbsoluteValueDifference2()=default
#define itkConceptMacro(name, concept)
Implements pixel-wise the computation of absolute value difference.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
bool operator==(const AbsoluteValueDifference2 &other) const
Functor::AbsoluteValueDifference2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
void SetFunctor(const std::function< ConstRefFunctionType > &f)
AbsoluteValueDifferenceImageFilter()