unravel.utils
Created on Sat Jun 4 22:17:13 2022
@author: DELINTE Nicolas
Functions
|
Creates a new .trk file with all streamlines contained in the two input .trk files. |
|
Get the fixel weights from a tract specified in trk_file. |
|
Returns the number of streamlines in a tractogram. |
|
Get the total segment length from a tract specified in trk. |
Returns an array with the lengths of the n streamlines in a tractogram. |
|
|
|
|
Sets values in RGB array (x,y,z,3) to be within [0,1]. |
|
Returns a RGB map of shape (x,y,z,3) representing the main direction of of the peaks. |
|
Fuse peaks into a single peak based on fixel weight and fvf, intensity is then weighted with frac. |
|
Produces a graph of the streamline density of tract 'trk', the streamline specified with 'streamline_number' is highlighted along 'axis'. |
|
|
Creates fractional anisotropy (FA), axial diffusivity (AD), radial diffusivity (RD) and mean diffusivity (MD) maps from a tensor array. |
|
|
Returns a binary mask of each voxel containing a tractography node.The voxels containing streamlines segments but no nodes will not be selected. |
|
X,y,z coordinates to spherical coordinates. |