21 #ifndef otbAssociativeSymmetricalSumImageFilter_h
22 #define otbAssociativeSymmetricalSumImageFilter_h
24 #include "itkBinaryFunctorImageFilter.h"
51 template <
class TInput1,
class TInput2,
class TOutput>
60 inline TOutput
operator()(
const TInput1 X,
const TInput2 Y)
65 SumXY +=
static_cast<TOutput
>((X * Y) / (1. - X - Y + (2 * X * Y)));
72 template <
class TInputImage1,
class TInputImage2,
class TOutputImage>
74 :
public itk::BinaryFunctorImageFilter<
75 TInputImage1, TInputImage2, TOutputImage,
76 Functor::AssociativeSymmetricalSum<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>>
81 typedef itk::BinaryFunctorImageFilter<
82 TInputImage1, TInputImage2, TOutputImage,
Implements an asymmetric fusion of line detector image filter.
itk::BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::AssociativeSymmetricalSum< typename TInputImage1::PixelType, typename TInputImage1::PixelType, typename TOutputImage::PixelType > > Superclass
itk::SmartPointer< const Self > ConstPointer
AssociativeSymmetricalSumImageFilter(const Self &)=delete
AssociativeSymmetricalSumImageFilter Self
AssociativeSymmetricalSumImageFilter()
void operator=(const Self &)=delete
itk::SmartPointer< Self > Pointer
~AssociativeSymmetricalSumImageFilter() override
Functor used with the AssociativeSymmetricalSumImageFilter.
virtual ~AssociativeSymmetricalSum()
TOutput operator()(const TInput1 X, const TInput2 Y)
AssociativeSymmetricalSum()
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.