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,
101 void operator=(
const Self&) =
delete;