18 #ifndef itkDTITubeSpatialObjectPoint_h
19 #define itkDTITubeSpatialObjectPoint_h
23 #include "vnl/vnl_vector_fixed.h"
36 template<
unsigned int TPo
intDimension = 3 >
52 typedef enum { FA, ADC, GA } FieldEnumType;
64 std::copy(matrix.
Begin(), matrix.
End(), m_TensorMatrix);
69 std::copy(matrix.
Begin(), matrix.
End(), m_TensorMatrix);
74 for (
unsigned int i = 0; i < 6; i++ )
76 m_TensorMatrix[i] = matrix[i];
86 void AddField(
const char *name,
float value);
89 void AddField(FieldEnumType name,
float value);
92 void SetField(FieldEnumType name,
float value);
94 void SetField(
const char *name,
float value);
100 float GetField(
const char *name)
const;
102 float GetField(FieldEnumType name)
const;
106 float m_TensorMatrix[6];
110 void PrintSelf(std::ostream & os,
Indent indent)
const override;
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkDTITubeSpatialObjectPoint.hxx"
121 #endif // itkDTITubeSpatialObjectPoint_h
Point used for a tube definition.
void SetTensorMatrix(const float *matrix)
const float * GetTensorMatrix() const
Point used for a tube definition.
void SetTensorMatrix(const DiffusionTensor3D< float > &matrix)
const FieldListType & GetFields() const
std::pair< std::string, float > FieldType
Point used for spatial objets.
Control indentation during Print() invocation.
std::vector< FieldType > FieldListType
Represent a diffusion tensor as used in DTI images.
void SetTensorMatrix(const DiffusionTensor3D< double > &matrix)