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>;
147 this->GetFunctor().SetAlpha(alpha);
156 return this->GetFunctor().GetAlpha();
159#ifdef ITK_USE_CONCEPT_CHECKING
176 this->SetFunctor(this->GetFunctor());
Implements pixel-wise generic operation of two images, or of an image and a constant.
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)
Base class for all process objects that output image data.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Computes a weighted sum of two images pixel-wise.
FunctorType & GetFunctor()
void BeforeThreadedGenerateData() override
WeightedAddImageFilter()=default
~WeightedAddImageFilter() override=default
typename FunctorType::RealType RealType
void SetAlpha(RealType alpha)
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....