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
|
is the diffsuion signal in the direction
and is denoted
.
is the signal without diffusion weighted and is denoted
.


is the jth
component of the ithe gradient direction 

directions are required.
To estimate the 15 parameters of the fourth order tensor,
directions are required.
Solving this system using a least square strategy leads us to find
(the independant elements of
) minimizing
the estimation error
,
where each row of
contains the
diffusion
tensor monoms. The solution is then given by:
(in our case a gaussian noise on the ADC).