DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Namespaces | Enumerations | Functions
utlDMRI.h File Reference
#include "utlCore.h"
#include "utlNDArray.h"
#include "utlSTDHeaders.h"
+ Include dependency graph for utlDMRI.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 utl
 

Enumerations

enum  {
  TENSOR_9D =0,
  TENSOR_UPPER_TRIANGULAR,
  TENSOR_LOWER_TRIANGULAR,
  TENSOR_DIAGONAL_FIRST,
  TENSOR_EMBED6D
}
 
enum  {
  TRACTS_UNKNOWN =0,
  TRACTS_TRK =1,
  TRACTS_TCK =2,
  TRACTS_VTK =3
}
 
enum  {
  DWI_NORMALIZE =0,
  DWI_NONORMALIZE
}
 
enum  {
  CARTESIAN_TO_CARTESIAN =0,
  CARTESIAN_TO_SPHERICAL =1,
  SPHERICAL_TO_CARTESIAN =2,
  SPHERICAL_TO_SPHERICAL =3
}
 
enum  {
  RADIAN_TO_DEGREE =0,
  RADIAN_TO_RADIAN =1,
  DEGREE_TO_RADIAN =2,
  DEGREE_TO_DEGREE =3
}
 
enum  {
  DIRECTION_NODUPLICATE =0,
  DIRECTION_DUPLICATE =1
}
 
enum  {
  DIRECTION_NOFLIP =0,
  DIRECTION_FLIP =1
}
 

Functions

template<class T >
void utl::Convert1To2Tensor (const utl::NDArray< T, 1 > &vec, utl::NDArray< T, 2 > &mat)
 
template<class T >
void utl::Convert2To1Tensor (const utl::NDArray< T, 2 > &mat, utl::NDArray< T, 1 > &vec)
 
template<typename V1Type , typename V2Type >
void utl::ConvertTensor6DTo6D (const V1Type &v6d1, V2Type &v6d2, int s1, int s2)
 
template<typename V1Type , typename V2Type >
void utl::ConvertTensor6DTo9D (const V1Type &v6d, V2Type &v9d, int v6dStoreWay)
 
template<typename V1Type , typename V2Type >
void utl::ConvertTensor9DTo6D (const V1Type &v9d, V2Type &v6d, int v6dStoreWay)
 
int utl::DimToRankSH (const int dimm)
 
template<class T >
utl::Matrix< T > utl::GetDTIDesignMatrix (const utl::Matrix< T > &gradMat, const std::vector< T > &bVec, int dwi_normalize)
 
template<typename T >
std::vector< T > utl::GetE1E2FromFAMD (const T fa, const T meanEigenValue, const bool isE2E3Equal=true)
 
int utl::GetFiberTractsFormat (const std::string &filename)
 
int utl::GetFiberTractsFormatFromFileExtension (const std::string &filename)
 
int utl::GetIndexSHj (const int l, const int m)
 
std::vector< int > utl::GetIndexSHlm (const int j)
 
template<class T >
std::vector< T > utl::GetScalarsByName (const std::vector< T > &vec, const std::vector< std::string > &nameVec, const std::string &name)
 
int utl::GetScalarsDimentionByName (const std::string &name)
 
template<class T >
void utl::MatchBVectorAndGradientMatrix (const T &br, std::vector< T > &vec, const NDArray< T, 2 > &grad)
 
template<class T >
void utl::MatchBVectorAndGradientMatrix (std::vector< T > &vec, NDArray< T, 2 > &grad)
 
template<class T >
void utl::NormalizeGrad (const utl::NDArray< T, 2 > &grad)
 
int utl::RankToDimSH (const int shRank)
 
template<class T >
std::shared_ptr< NDArray< T, 2 > > utl::ReadGrad (const std::string &grad_str, const int NoSymmetricDuple=DIRECTION_NODUPLICATE, const int mode=CARTESIAN_TO_SPHERICAL, const int flipx=DIRECTION_NOFLIP, const int flipy=DIRECTION_NOFLIP, const int flipz=DIRECTION_NOFLIP, const bool need_normalize=true)
 
template<class T >
void utl::RemoveScalarsByName (std::vector< T > &vec, const std::vector< std::string > &nameVec, const std::string &name)
 
void utl::RGBToIndex (double R, double G, double B, double &index)
 
template<class T >
void utl::SetScalarsByName (const std::vector< T > &vec, const std::vector< std::string > &nameVec, const std::vector< T > &scalars, const std::string &name)
 

Detailed Description

Author
Jian Cheng (JC), jian..nosp@m.chen.nosp@m.g.198.nosp@m.3@gm.nosp@m.ail.c.nosp@m.om

Definition in file utlDMRI.h.