18#ifndef itkWeightedAddImageFilter_h
19#define itkWeightedAddImageFilter_h
34template <
typename TInput1,
typename TInput2,
typename TOutput>
61 return static_cast<TOutput
>(sum1 + sum2);
116template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
130 WeightedAdd2<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>;
BinaryGeneratorImageFilter()
void SetFunctor(const std::function< ConstRefFunctionType > &f)
RealType GetAlpha() const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(WeightedAdd2)
bool operator==(const WeightedAdd2 &other) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
typename NumericTraits< TInput1 >::RealType RealType
typename NumericTraits< TInput1 >::AccumulateType AccumulatorType
void SetAlpha(RealType alpha)
virtual void Modified() const
Implements transparent reference counting.
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
FunctorType & GetFunctor()
SmartPointer< Self > Pointer
WeightedAddImageFilter Self
Functor:: WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
void BeforeThreadedGenerateData() override
WeightedAddImageFilter()=default
~WeightedAddImageFilter() override=default
typename FunctorType::RealType RealType
void SetAlpha(RealType alpha)
SmartPointer< const Self > ConstPointer
virtual const FunctorType & GetFunctor() const
RealType GetAlpha() const
#define itkConceptMacro(name, concept)
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....