This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
Find ‘good’ cross-section slicing positions along a given axis.
img: 3D Nifti1Image
direction: string, optional (default “z”)
n_cuts: int, optional (default 7)
spacing: ‘auto’ or int, optional (default ‘auto’)
cut_coords: 1D array of length n_cuts
This code works by iteratively locating peak activations that are separated by a distance of at least ‘spacing’. If n_cuts is very large and all the activated regions are covered, cuts with a spacing less than ‘spacing’ will be returned.