18 #ifndef itkNaryAddImageFilter_h
19 #define itkNaryAddImageFilter_h
33 template<
typename TInput,
typename TOutput >
40 inline TOutput
operator()(
const std::vector< TInput > & B)
const
45 for (
unsigned int i = 0; i < B.size(); i++ )
49 return static_cast< TOutput
>( sum );
97 template<
typename TInputImage,
typename TOutputImage >
101 Functor::Add1< typename TInputImage::PixelType, typename TInputImage::PixelType > >
107 TInputImage, TOutputImage,
121 #ifdef ITK_USE_CONCEPT_CHECKING
125 typename TOutputImage::PixelType > ) );
bool operator==(const Add1 &) const
NumericTraits< TInput >::AccumulateType AccumulatorType
Base class for all process objects that output image data.
virtual ~NaryAddImageFilter() override
SmartPointer< const Self > ConstPointer
NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< typename TInputImage::PixelType, typename TInputImage::PixelType > > Superclass
Pixel-wise addition of N images.
Perform a generic pixel-wise operation on N images.
bool operator!=(const Add1 &) const
TOutput operator()(const std::vector< TInput > &B) const
SmartPointer< Self > Pointer
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)