|
ITK
5.2.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>
59 return !(*
this != other);
68 return static_cast<TOutput>(sum1 + sum2);
123 template <
typename TInputImage1,
typename TInputImage2,
typename TOutputImage>
136 WeightedAdd2<typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType>;
165 #ifdef ITK_USE_CONCEPT_CHECKING
typename NumericTraits< typename TInputImage1::PixelType >::AccumulateType AccumulatorType
~WeightedAddImageFilter() override=default
void SetAlpha(RealType alpha)
bool operator==(const WeightedAdd2 &other) const
Implements pixel-wise generic operation of two images, or of an image and a constant.
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Functor::WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
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.
bool operator!=(const WeightedAdd2 &other) const
Define additional traits for native types such as int or float.
FunctorType & GetFunctor()
#define itkConceptMacro(name, concept)
virtual const FunctorType & GetFunctor() const
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
virtual void Modified() const
WeightedAddImageFilter()=default
void SetFunctor(const std::function< ConstRefFunctionType > &f)