18 #ifndef itkWeightedAddImageFilter_h
19 #define itkWeightedAddImageFilter_h
33 template<
typename TInput1,
typename TInput2,
typename TOutput >
53 return !( *
this != other );
56 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
61 return static_cast< TOutput
>( sum1 + sum2 );
113 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
117 Functor::WeightedAdd2<
118 typename TInputImage1::PixelType,
119 typename TInputImage2::PixelType,
120 typename TOutputImage::PixelType > >
128 typename TInputImage1::PixelType,
129 typename TInputImage2::PixelType,
130 typename TOutputImage::PixelType >
160 #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
void operator=(const Self &)
Base class for all process objects that output image data.
void SetAlpha(RealType alpha)
FunctorType & GetFunctor()
WeightedAddImageFilter Self
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
virtual ~WeightedAddImageFilter()
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