AFQ.recognition.utils#
Attributes#
Classes#
Functions#
|
Helper function to manually orient streamlines by their endpoints, |
|
|
|
Helper function to flip streamlines |
|
Helper function to cut streamlines according to which points |
|
|
|
Module Contents#
- AFQ.recognition.utils.manual_orient_sls(fgarray)[source]#
Helper function to manually orient streamlines by their endpoints, according to LPI+ pyAFQ standard assuming streamlines are in RASMM
- AFQ.recognition.utils.flip_sls(select_sl, idx_to_flip, in_place=False)[source]#
Helper function to flip streamlines
- AFQ.recognition.utils.cut_sls_by_closest(select_sl, roi_closest, roi_idxs, in_place=False)[source]#
Helper function to cut streamlines according to which points are closest to certain rois.
- Parameters:
- select_sl
streamlines to cut
- roi_closest
indices into given streamline of points nearest to inclusion rois
- roi_idxs
two indices into the list of inclusion rois to use for the cut
- in_place
whether to modify select_sl