Compute a brain mask from fMRI data in 3D or 4D ndarrays.
This is based on an heuristic proposed by T.Nichols: find the least dense point of the histogram, between fractions lower_cutoff and upper_cutoff of the total image histogram.
In case of failure, it is usually advisable to increase lower_cutoff.
Parameters : | epi_img: nifti-like image :
lower_cutoff: float, optional :
upper_cutoff: float, optional :
connected: bool, optional :
opening: bool or int, optional :
ensure_finite: bool :
exclude_zeros: bool, optional :
target_affine: 3x3 or 4x4 matrix, optional :
target_shape: 3-tuple of integers, optional :
memory: instance of joblib.Memory or string :
verbose: int, optional : |
---|---|
Returns : | mask: nibabel.Nifti1Image :
|