0ae30da34308bd0efffb6c611a7e0f546ec69679,doc/examples/reconst_dti.py,,,#,74
Before Change
rectangular area around the middle of our datasets.
i,j,k,w = np.array(data.shape) / 2
data_small = data[i-5:i+5, j-5:j+5, k-2:k+2]
from dipy.data import get_sphere
sphere = get_sphere("symmetric724")
After Change
tensor_vals = lower_triangular(tenfit.quadratic_form)
correct_order = [0,1,3,2,4,5]
tensor_vals_reordered = tensor_vals[:,:,:,correct_order]
nib.save(nib.Nifti1Image(tensor_vals_reordered.astype(np.float32), img.get_affine()), "tensors_coefs.nii")
Other tensor statistics can be calculated from the `tenfit` object. For example,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: nipy/dipy
Commit Name: 0ae30da34308bd0efffb6c611a7e0f546ec69679
Time: 2013-06-19
Author: m.descoteaux@usherbrooke.ca
File Name: doc/examples/reconst_dti.py
Class Name:
Method Name:
Project Name: dPys/PyNets
Commit Name: 7dc35cbcb7d12dc1dc11688f22bb0ddda393847d
Time: 2020-08-12
Author: dpisner@utexas.edu
File Name: tests/test_track.py
Class Name:
Method Name: test_track_ensemble_particle
Project Name: dPys/PyNets
Commit Name: 7dc35cbcb7d12dc1dc11688f22bb0ddda393847d
Time: 2020-08-12
Author: dpisner@utexas.edu
File Name: tests/test_track.py
Class Name:
Method Name: test_track_ensemble