|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkWeightedAddImageFilter_h
19 #define itkWeightedAddImageFilter_h
34 template <
typename TInput1,
typename TInput2,
typename TOutput>
61 return static_cast<TOutput>(sum1 + sum2);
116 template <
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());
typename NumericTraits< typename TInputImage1::PixelType >::AccumulateType AccumulatorType
void SetAlpha(RealType alpha)
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
bool operator==(const WeightedAdd2 &other) const
Implements pixel-wise generic operation of two images, or of an image and a constant.
RealType GetAlpha() const
void BeforeThreadedGenerateData() override
Base class for all process objects that output image data.
typename NumericTraits< typename TInputImage1::PixelType >::RealType RealType
Computes a weighted sum of two images pixel-wise.
Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(WeightedAdd2)
Define additional traits for native types such as int or float.
FunctorType & GetFunctor()
#define itkConceptMacro(name, concept)
typename FunctorType::RealType RealType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void SetAlpha(RealType alpha)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TOutput operator()(const TInput1 &A, const TInput2 &B) const
RealType GetAlpha() const