18#ifndef itkNaryAddImageFilter_h
19#define itkNaryAddImageFilter_h
33template <
typename TInput,
typename TOutput>
43 for (
unsigned int i = 0; i < B.size(); ++i)
47 return static_cast<TOutput
>(sum);
94template <
typename TInputImage,
typename TOutputImage>
98 Functor::Add1<typename TInputImage::PixelType, typename TInputImage::PixelType>>
121 static_assert(std::is_default_constructible_v<typename TInputImage::PixelType>);
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Add1)
TOutput operator()(const std::vector< TInput > &B) const
bool operator==(const Add1 &) const
typename NumericTraits< TInput >::AccumulateType AccumulatorType
NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< typename TInputImage::PixelType, typename TInputImage::PixelType > > Superclass
NaryAddImageFilter()=default
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
~NaryAddImageFilter() override=default
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....