19#ifndef itkNumericTraitsStdVector_h
20#define itkNumericTraitsStdVector_h
68 using Self = std::vector<T>;
71 using AbsType = std::vector<ElementAbsType>;
117 Self b(a.Size(), T{});
135 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
136 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
154 return itk::Math::CastWithRangeCheck<unsigned int>(m.size());
163 template <
typename TArray>
167 for (
unsigned int i = 0; i <
GetLength(v); ++i)
Pixel-wise addition of two images.
static void AssignToArray(const Self &v, TArray &mv)
std::vector< ElementPrintType > PrintType
Self MeasurementVectorType
static const Self max(const Self &a)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
std::vector< ElementAccumulateType > AccumulateType
static const Self ZeroValue(const Self &a)
static const Self NonpositiveMin(const Self &a)
typename NumericTraits< T >::RealType ElementRealType
std::vector< ElementRealType > RealType
typename NumericTraits< T >::AbsType ElementAbsType
static unsigned int GetLength(const std::vector< T > &m)
std::vector< ElementFloatType > FloatType
typename NumericTraits< T >::PrintType ElementPrintType
static const Self OneValue(const Self &a)
ElementRealType ScalarRealType
typename NumericTraits< T >::AccumulateType ElementAccumulateType
typename NumericTraits< T >::FloatType ElementFloatType
static void SetLength(std::vector< T > &m, const unsigned int s)
static const Self min(const Self &a)
std::vector< ElementAbsType > AbsType
Define additional traits for native types such as int or float.
static constexpr bool IsInteger
static constexpr bool IsSigned
static unsigned int GetLength()
static constexpr bool IsComplex
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....