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 );
114 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
118 Functor::WeightedAdd2<
119 typename TInputImage1::PixelType,
120 typename TInputImage2::PixelType,
121 typename TOutputImage::PixelType > >
129 typename TInputImage1::PixelType,
130 typename TInputImage2::PixelType,
131 typename TOutputImage::PixelType >
161 #ifdef ITK_USE_CONCEPT_CHECKING
NumericTraits< TInput1 >::RealType RealType
SmartPointer< const Self > ConstPointer
Computes a weighted sum of two images pixel-wise.
RealType GetAlpha() const
Base class for all process objects that output image data.
void SetAlpha(RealType alpha)
virtual ~WeightedAddImageFilter() override
FunctorType & GetFunctor()
WeightedAddImageFilter Self
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
bool operator!=(const WeightedAdd2 &other) const
NumericTraits< TInput1 >::AccumulateType AccumulatorType
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::WeightedAdd2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
TOutput operator()(const TInput1 &A, const TInput2 &B) const
void SetAlpha(RealType alpha)
bool operator==(const WeightedAdd2 &other) const
RealType GetAlpha() const
FunctorType::RealType RealType
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
Superclass::FunctorType FunctorType
Implements pixel-wise generic operation of two images, or of an image and a constant.
SmartPointer< Self > Pointer