unravel.stream

Created on Wed Aug 16 11:25:30 2023

@author: DELINTE Nicolas

Functions

align_streamline(stream)

Sets the start and end point of a streamline with arbitrary rules.

extract_nodes(trk_file[, nodes, smooth_iter])

Return the streamline with the most density, subsampled into a defined number of nodes.

extract_nodes_legacy(trk_file[, level, smooth])

The start is assumed to be the lowest position along the last axis.

get_dist_from_median_trajectory(trk_file, ...)

get_roi_sections_from_nodes(trk_file, ...)

Create a mask containing the subdivisions of a tract along its mean trajectory.

get_streamline_number_from_index(streams, index)

remove_outlier_streamlines(trk_file, point_array)

Removes streamlines that are outliers for more than half (default) of the bundle trajectory based on the distance to the mean trajectory.

remove_streamlines(streams, idx)

TODO: speed up with something along the lines of 'streams=streams[idx]'

smooth_streamlines(trk_file[, out_file, ...])

Slightly smooth streamlines.