|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkSquaredDifferenceImageFilter_h
19 #define itkSquaredDifferenceImageFilter_h
56 template <
typename TInput1,
typename TInput2,
typename TOutput>
72 return !(*
this != other);
78 const auto dA = static_cast<double>(A);
79 const auto dB = static_cast<double>(B);
80 const double diff = dA - dB;
82 return static_cast<TOutput>(diff * diff);
87 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
101 typename TInputImage2::PixelType,
102 typename TOutputImage::PixelType>;
110 #ifdef ITK_USE_CONCEPT_CHECKING
121 #if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise the computation of squared difference.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const SquaredDifference2 &) const
Functor::SquaredDifference2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
Implements pixel-wise generic operation of two images, or of an image and a constant.
SquaredDifference2()=default
Base class for all process objects that output image data.
SquaredDifferenceImageFilter()
~SquaredDifference2()=default
bool operator==(const SquaredDifference2 &other) const
#define itkConceptMacro(name, concept)
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...
~SquaredDifferenceImageFilter() override=default
void SetFunctor(const std::function< ConstRefFunctionType > &f)