This documentation is for CAPS version 0.0.1

If you use the software, please do not esitate to Report a Bug.

caps.diffusion_estimation.tensor_estimation.LSTensorEstimation

LSTensorEstimation

class caps.diffusion_estimation.tensor_estimation.LSTensorEstimation[source]

Ordinary least square tensor fiting

Fits a diffusion tensor given diffusion-weighted signals and gradient info using a least square strategy [R1].

[+show/hide ols fit details]

References

[R1](1, 2) Mori, S., 2007. Introduction to Diffusion Tensor Imaging. Elsevier.

Inputs

[Mandatory]

bvals_file: a file name (mandatory)
the the diffusion b-values
bvecs_file: a file name (mandatory)
the the diffusion b-vectors
dwi_file: a file name (mandatory)
an existing diffusion weighted image
mask_file: a file name (mandatory)
a mask image
model_order: an integer (mandatory)
the estimated model order (even)

[Optional]

estimate_odf: a boolean (optional)
estimate the odf
model_name: a string (optional)
the name of the output tensor model file
output_directory: a directory name (optional)
the output directory where the tensor model will be written

Outputs

tensor_file: a file name
the result file containing the tensor model coefficients