AFQ.recognition.preprocess#

Module Contents#

Functions#

tolerance_mm_to_vox(img, dist_to_waypoint, ...)

fgarray(tg)

Streamlines resampled to 20 points.

crosses(fgarray, img)

Classify the streamlines by whether they cross the midline.

get_preproc_plan(img, tg, dist_to_waypoint, dist_to_atlas)

Attributes#

AFQ.recognition.preprocess.logger[source]#
AFQ.recognition.preprocess.tolerance_mm_to_vox(img, dist_to_waypoint, input_dist_to_atlas)[source]#
AFQ.recognition.preprocess.fgarray(tg)[source]#

Streamlines resampled to 20 points.

AFQ.recognition.preprocess.crosses(fgarray, img)[source]#

Classify the streamlines by whether they cross the midline. Creates a crosses attribute which is an array of booleans. Each boolean corresponds to a streamline, and is whether or not that streamline crosses the midline.

AFQ.recognition.preprocess.get_preproc_plan(img, tg, dist_to_waypoint, dist_to_atlas)[source]#