 |
ITK
5.4.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>
74 const auto dA = static_cast<double>(A);
75 const auto dB = static_cast<double>(B);
76 const double diff = dA - dB;
78 return static_cast<TOutput>(diff * diff);
83 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
98 typename TInputImage2::PixelType,
99 typename TOutputImage::PixelType>;
107 #ifdef ITK_USE_CONCEPT_CHECKING
118 #if !defined(ITK_WRAPPING_PARSER)
Implements pixel-wise the computation of squared difference.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
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()
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(SquaredDifference2)
~SquaredDifference2()=default
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
#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...
bool operator==(const SquaredDifference2 &) const