18 #ifndef itkAddImageFilter_h
19 #define itkAddImageFilter_h
33 template<
typename TInput1,
typename TInput2 = TInput1,
typename TOutput = TInput1 >
48 return !( *
this != other );
51 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
55 return static_cast< TOutput
>( sum + B );
109 template<
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1 >
114 typename TInputImage1::PixelType,
115 typename TInputImage2::PixelType,
116 typename TOutputImage::PixelType > >
124 typename TInputImage1::PixelType,
125 typename TInputImage2::PixelType,
138 #ifdef ITK_USE_CONCEPT_CHECKING
142 typename TInputImage2::PixelType,
143 typename TOutputImage::PixelType > ) );
153 void operator=(const
Self &) ITK_DELETE_FUNCTION;
Pixel-wise addition of two images.
SmartPointer< const Self > ConstPointer
bool operator==(const Add2 &other) const
NumericTraits< TInput1 >::AccumulateType AccumulatorType
virtual ~AddImageFilter()
Base class for all process objects that output image data.
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
SmartPointer< Self > Pointer
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const Add2 &) const
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
Implements pixel-wise generic operation of two images, or of an image and a constant.