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 );
98 template<
typename TInputImage,
typename TOutputImage >
102 Functor::Add1< typename TInputImage::PixelType, typename TInputImage::PixelType > >
110 TInputImage, TOutputImage,
112 typename TInputImage::PixelType > >;
124 #ifdef ITK_USE_CONCEPT_CHECKING
128 typename TOutputImage::PixelType > ) );
bool operator==(const Add1 &) const
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename NumericTraits< TInputImage::PixelType >::AccumulateType AccumulatorType
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
NaryAddImageFilter()=default
~NaryAddImageFilter() override=default
#define itkConceptMacro(name, concept)