QMRITools`TensorTools`
QMRITools`TensorTools`

# TensorCalc

TensorCalc[data, gradients, bvalue] calculates the diffusion tensor for the given dataset. Allows for one unweighted image and one b value. Gradient directions must be in the form {{x1,y1,z1}, ..., {xn,yn,zn}} without the unweighted gradient direction. bvalue is a singe number indicating the b-value used. TensorCalc[data, gradients, bvec] calculates the diffusion tensor for the given dataset. allows for multiple unweighted images and multiple bvalues. allows for differnt tensor fitting methods. gradient directions must be in the form {{x1,y1,z1}, ..., {xn,yn,zn}} with the unweighted direction as {0,0,0}. bvec the bvector, with a bvalue defined for each gradient direction. b value for unweighted images is 0. TensorCalc[data, bmatix] calculates the diffusion tensor for the given dataset. allows for multiple unweighted images and multiple bvalues. bmat is the bmatrix which can be generated usiong Bmatrix. The bvalue assumed to be is in s/mm^2 and therfore the output is in mm^2/2. TensorCalc[] is based on DOI: 10.1016/j.neuroimage.2013.05.028 and 10.1002/mrm.25165.

# Details

• The following options can be given:
•  MonitorCalc True MonitorCalc is an option for all Calc fucntions. When true the proceses of the calculation is shown. Method "iWLLS" Method is an option for various algorithm-intensive functions that specifies what internal methods they should use. FullOutput True FullOutput is an option for TensorCalc when using bvector. When True also the S0 is given as output. RobustFit True RobustFit is an option for TensorCalc. If true outliers will be rejected in the fit, only works with WLLS. If FullOutput is given the outlier map is given. Parallelize False Parallelize[expr] evaluates expr using automatic parallelization. RobustFitParameters {0.0001, 6} RobustFitParameters is an option for TensorCalc. gives the threshold for stopping the itterations and the kappa for the outlier marging, {tr,kappa}.