18#ifndef itkNumericTraitsCovariantVectorPixel_h
19#define itkNumericTraitsCovariantVectorPixel_h
43template <
typename T,
unsigned int D>
146 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
147 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
158 itkGenericExceptionMacro(
"Cannot set the size of a CovariantVector of length " << D <<
" to " << s);
184 template <
typename TArray>
188 for (
unsigned int i = 0; i < D; ++i)
Pixel-wise addition of two images.
A templated class holding a n-Dimensional covariant vector.
void Fill(const ValueType &)
static unsigned int GetLength(const CovariantVector< T, D > &)
static const Self ZeroValue()
typename NumericTraits< T >::AbsType ElementAbsType
typename NumericTraits< T >::FloatType ElementFloatType
static const Self ZeroValue(const Self &)
static const Self NonpositiveMin(const Self &)
static const Self OneValue()
static const Self NonpositiveMin()
static const Self OneValue(const Self &)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static unsigned int GetLength()
static const Self max(const Self &)
typename NumericTraits< T >::RealType ElementRealType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self min(const Self &)
static void SetLength(CovariantVector< T, D > &m, const unsigned int s)
static void AssignToArray(const Self &v, TArray &mv)
typename NumericTraits< T >::PrintType ElementPrintType
ElementRealType ScalarRealType
static const Self ITKCommon_EXPORT One
static const Self ITKCommon_EXPORT Zero
Define additional traits for native types such as int or float.
static constexpr bool IsInteger
static constexpr bool IsSigned
static constexpr T NonpositiveMin()
static constexpr bool IsComplex
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....