37 #ifndef AIMS_MATH_DTITENSOR_H 38 #define AIMS_MATH_DTITENSOR_H 70 :
_base( trieder, eigenvalue )
121 #ifndef DOXYGEN_HIDE_INTERNAL_CLASSES 126 template<>
inline std::string DataTypeCode<DtiTensor>::dataType()
133 #endif // DOXYGEN_HIDE_INTERNAL_CLASSES 141 if ( averageDc <= 0.0 )
160 if ( thirdInvariant < 0.0 )
163 float val = 1.0 - thirdInvariant /
cube( averageDc );
192 float magnitudeDc = ( fourthInvariant < 0.0 ? 0.0 :
193 sqrt( fourthInvariant / 3.0 ) );
195 float val = ( float )sqrt( 1.5 * ( 1.0 - ( averageDc * averageDc ) /
196 ( magnitudeDc * magnitudeDc ) ) );
208 os <<
"{base=" << thing.
base()
209 <<
",dir=" << thing.
dir()
220 default : os <<
"UNKNOWN";
break;
222 os <<
",index=" << thing.
index();
const float & anisotropyFA() const
friend std::ostream & operator<<(std::ostream &os, const DtiTensor &thing)
float volumeRatio(const DtiTensor &thing)
DtiTensor(const DtiTensor &other)
std::ostream & operator<<(std::ostream &os, const DtiTensor &thing)
const Tensor & base() const
float meanDiffusivity() const
const Point3df & dir() const
const Point3df & location() const
DtiTensor(const Tensor &other)
DtiTensor(const AimsVector< float, 6 > &coef)
DtiTensor(const Trieder &trieder, const Point3df &eigenvalue)
const short & index() const
const AimsVector< float, 6 > & coef() const
const float & anisotropyVR() const
const int & category() const
const T & item(int d) const
float fractionalAniso(const DtiTensor &thing)