18#ifndef itkNumericTraitsDiffusionTensor3DPixel_h
19#define itkNumericTraitsDiffusionTensor3DPixel_h
147 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
148 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
160 itkGenericExceptionMacro(
"Cannot set the size of a DiffusionTensor3D "
161 "to anything other than 6.");
187 template <
typename TArray>
191 for (
unsigned int i = 0; i < 6; ++i)
Pixel-wise addition of two images.
Represent a diffusion tensor as used in DTI images.
void Fill(const ValueType &)
ElementRealType ScalarRealType
static const Self ZeroValue()
static const Self NonpositiveMin()
static unsigned int GetLength()
static void SetLength(DiffusionTensor3D< T > &m, const unsigned int s)
typename NumericTraits< T >::FloatType ElementFloatType
static const Self ZeroValue(const Self &)
static const Self min(const Self &)
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::AccumulateType ElementAccumulateType
typename NumericTraits< T >::AbsType ElementAbsType
static const Self max(const Self &)
typename NumericTraits< T >::PrintType ElementPrintType
static const Self OneValue()
static void AssignToArray(const Self &v, TArray &mv)
static const Self ITKCommon_EXPORT One
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static unsigned int GetLength(const DiffusionTensor3D< T > &)
static const Self OneValue(const Self &)
typename NumericTraits< T >::RealType ElementRealType
static const Self NonpositiveMin(const Self &)
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....