18 #ifndef __itkNumericTraitsArrayPixel_h
19 #define __itkNumericTraitsArrayPixel_h
29 template<
typename T >
131 template<
typename TArray>
134 for(
unsigned int i=0; i<
GetLength(v); i++ )
140 #if !defined(ITK_LEGACY_REMOVE)
146 itkLegacyMacro(
static const Self
Zero(
const Self & a))
155 itkLegacyMacro(
static const Self
One(
const Self & a))
158 b.Fill(NumericTraits< T >::One);
167 #endif // __itkNumericTraitsArrayPixel_h
static const Self OneValue(const Self &a)
Array class with size defined at construction time.
Array< ElementAccumulateType > AccumulateType
Array< ElementPrintType > PrintType
Array< ElementAbsType > AbsType
NumericTraits< T >::AccumulateType ElementAccumulateType
NumericTraits< T >::RealType ElementRealType
static void SetLength(Array< T > &m, const unsigned int s)
static const Self ZeroValue(const Self &a)
static const Self min(const Self &a)
static const Self max(const Self &a)
void Fill(TValue const &v)
void SetSize(SizeValueType sz)
static const Self NonpositiveMin(const Self &a)
ElementRealType ScalarRealType
static unsigned int GetLength()
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
SizeValueType GetSize(void) const
static void AssignToArray(const Self &v, TArray &mv)
Array< ElementRealType > RealType
NumericTraits< T >::FloatType ElementFloatType
SizeValueType Size(void) const
NumericTraits< T >::PrintType ElementPrintType
Define additional traits for native types such as int or float.
NumericTraits< T >::AbsType ElementAbsType
Array< ElementFloatType > FloatType
Self MeasurementVectorType
static unsigned int GetLength(const Array< T > &m)