18 #ifndef itkWeightedAddImageFilter_h
19 #define itkWeightedAddImageFilter_h
34 template<
typename TInput1,
typename TInput2,
typename TOutput >
54 return !( *
this != other );
57 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
62 return static_cast< TOutput
>( sum1 + sum2 );
115 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
130 typename TInputImage2::PixelType,
131 typename TOutputImage::PixelType >;
159 #ifdef ITK_USE_CONCEPT_CHECKING
typename FunctorType::RealType RealType
Define numeric traits for std::vector.
typename NumericTraits< typename TInputImage1::PixelType >::AccumulateType AccumulatorType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename NumericTraits< typename TInputImage1::PixelType >::RealType RealType
Computes a weighted sum of two images pixel-wise.
RealType GetAlpha() const
virtual const FunctorType & GetFunctor() const
Base class for all process objects that output image data.
void SetAlpha(RealType alpha)
FunctorType & GetFunctor()
Implements pixel-wise generic operation of two images, or of an image and a constant.
void BeforeThreadedGenerateData() override
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
void SetFunctor(const std::function< ConstRefFunctionType > &f)
~WeightedAddImageFilter() override=default
bool operator!=(const WeightedAdd2 &other) const
TOutput operator()(const TInput1 &A, const TInput2 &B) const
void SetAlpha(RealType alpha)
bool operator==(const WeightedAdd2 &other) const
RealType GetAlpha() const
WeightedAddImageFilter()=default
Functor::WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
#define itkConceptMacro(name, concept)