17 #ifndef __itkWeightedAddImageFilter_h
18 #define __itkWeightedAddImageFilter_h
21 #include "itkNumericTraits.h"
56 template<
class TInput1,
class TInput2,
class TOutput >
61 typedef typename NumericTraits< TInput1 >::RealType
RealType;
74 return !(*
this != other);
77 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
81 return static_cast<TOutput
>( sum1 + sum2 );
98 template <
class TInputImage1,
class TInputImage2,
class TOutputImage>
102 Functor::WeightedAdd2<
103 typename TInputImage1::PixelType,
104 typename TInputImage2::PixelType,
105 typename TOutputImage::PixelType> >
114 typename TInputImage1::PixelType,
115 typename TInputImage2::PixelType,
116 typename TOutputImage::PixelType>
134 this->GetFunctor().SetAlpha( alpha );
138 #ifdef ITK_USE_CONCEPT_CHECKING
144 RealType, RealType>));
147 RealType, RealType>));
157 void operator=(
const Self&);