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)
Represent a diffusion tensor as used in DTI images.
void Fill(const ValueType &)
ElementRealType ScalarRealType
Self MeasurementVectorType
static const Self ZeroValue()
static const Self NonpositiveMin()
static unsigned int GetLength()
static void SetLength(DiffusionTensor3D< T > &m, const unsigned int s)
DiffusionTensor3D< ElementPrintType > PrintType
typename NumericTraits< T >::FloatType ElementFloatType
static const Self ZeroValue(const Self &)
DiffusionTensor3D< ElementFloatType > FloatType
static const Self min(const Self &)
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static constexpr bool IsComplex
DiffusionTensor3D< ElementAccumulateType > AccumulateType
typename NumericTraits< T >::AbsType ElementAbsType
static const Self max(const Self &)
DiffusionTensor3D< T > Self
typename NumericTraits< T >::PrintType ElementPrintType
DiffusionTensor3D< ElementAbsType > AbsType
static const Self OneValue()
static void AssignToArray(const Self &v, TArray &mv)
static const Self ITKCommon_EXPORT One
static constexpr bool IsInteger
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static unsigned int GetLength(const DiffusionTensor3D< T > &)
static const Self OneValue(const Self &)
static constexpr bool IsSigned
typename NumericTraits< T >::RealType ElementRealType
static const Self NonpositiveMin(const Self &)
DiffusionTensor3D< ElementRealType > RealType
Define additional traits for native types such as int or float.
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
static constexpr T min(const T &)
static constexpr bool IsComplex
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)