AFQ.recognition.utils
#
Module Contents#
Classes#
Functions#
|
Helper function to flip streamlines |
|
Helper function to cut streamlines according to which points |
|
|
|
|
|
Move streamlines to or from template space. |
|
Attributes#
- 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_dist(select_sl, roi_dists, 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_dists, distances from a given streamline to a given inclusion roi
- roi_idxs, two indices into the list of inclusion rois to use for the cut
- in_place, whether to modify select_sl
- AFQ.recognition.utils.move_streamlines(tg, to, mapping, img, save_intermediates=None)[source]#
Move streamlines to or from template space.
- tostr
Either “template” or “subject”.
- mappingConformedMapping
Mapping to use to move streamlines.
- imgNifti1Image
Space to move streamlines to.