18#ifndef itkNumericTraitsFixedArrayPixel_h
19#define itkNumericTraitsFixedArrayPixel_h
43template <
typename T,
unsigned int D>
154 itkGenericExceptionMacro(
"Cannot set the size of a FixedArray of length " << D <<
" to " << s);
180 template <
typename TArray>
184 for (
unsigned int i = 0; i < D; ++i)
202#define itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, D) \
204 ITKCommon_EXPORT const GENERIC_ARRAY<T, D> NumericTraits<GENERIC_ARRAY<T, D>>::Zero = \
205 MakeFilled<GENERIC_ARRAY<T, D>>(NumericTraits<T>::Zero); \
207 ITKCommon_EXPORT const GENERIC_ARRAY<T, D> NumericTraits<GENERIC_ARRAY<T, D>>::One = \
208 MakeFilled<GENERIC_ARRAY<T, D>>(NumericTraits<T>::One); \
209 ITK_MACROEND_NOOP_STATEMENT
215#define itkStaticNumericTraitsGenericArrayDimensionsMacro(GENERIC_ARRAY, T) \
216 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 1); \
217 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 2); \
218 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 3); \
219 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 4); \
220 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 5); \
221 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 6); \
222 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 7); \
223 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 8); \
224 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 9); \
225 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 10); \
226 ITK_MACROEND_NOOP_STATEMENT
Pixel-wise addition of two images.
Simulate a standard C array with copy semantics.
void Fill(const ValueType &)
static const Self ZeroValue()
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::AbsType ElementAbsType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self max(const Self &)
static const Self ITKCommon_EXPORT One
static unsigned int GetLength(const FixedArray< T, D > &)
ElementRealType ScalarRealType
static unsigned int GetLength()
static const Self ZeroValue(const Self &)
typename NumericTraits< T >::FloatType ElementFloatType
static void AssignToArray(const Self &v, TArray &mv)
static const Self OneValue(const Self &)
static const Self OneValue()
static const Self min(const Self &)
typename NumericTraits< T >::PrintType ElementPrintType
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static const Self NonpositiveMin()
typename NumericTraits< T >::RealType ElementRealType
static void SetLength(FixedArray< T, D > &m, const unsigned int s)
static const Self NonpositiveMin(const Self &)
Define additional traits for native types such as int or float.
static constexpr T NonpositiveMin()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....