|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNumericTraitsFixedArrayPixel_h
19 #define itkNumericTraitsFixedArrayPixel_h
43 template <
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 GENERIC_ARRAY<T, D>((T)(NumericTraits<T>::Zero)); \
207 ITKCommon_EXPORT const GENERIC_ARRAY<T, D> NumericTraits<GENERIC_ARRAY<T, D>>::One = \
208 GENERIC_ARRAY<T, D>((T)(NumericTraits<T>::One));
214 #define itkStaticNumericTraitsGenericArrayDimensionsMacro(GENERIC_ARRAY, T) \
215 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 1); \
216 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 2); \
217 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 3); \
218 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 4); \
219 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 5); \
220 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 6); \
221 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 7); \
222 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 8); \
223 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 9); \
224 itkStaticNumericTraitsGenericArrayMacro(GENERIC_ARRAY, T, 10);
227 #endif // itkNumericTraitsFixedArrayPixel_h
static const Self ITKCommon_EXPORT One
static const Self OneValue(const Self &)
typename NumericTraits< T >::PrintType ElementPrintType
static constexpr T NonpositiveMin()
static const Self max(const Self &)
static const Self ITKCommon_EXPORT Zero
static const Self min(const Self &)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
ElementRealType ScalarRealType
static void SetLength(FixedArray< T, D > &m, const unsigned int s)
typename NumericTraits< T >::AbsType ElementAbsType
static const Self NonpositiveMin(const Self &)
static const Self NonpositiveMin()
typename NumericTraits< T >::RealType ElementRealType
Simulate a standard C array with copy semantics.
static void AssignToArray(const Self &v, TArray &mv)
Define additional traits for native types such as int or float.
static const Self ZeroValue()
static const Self OneValue()
static const Self ZeroValue(const Self &)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static unsigned int GetLength()
typename NumericTraits< T >::FloatType ElementFloatType
static unsigned int GetLength(const FixedArray< T, D > &)
void Fill(const ValueType &)