Compute a mask file from fMRI data in 3D or 4D ndarrays.
Compute and write the mask of an image based on the grey level This is based on an heuristic proposed by T.Nichols: find the least dense point of the histogram, between fractions m and M of the total image histogram.
In case of failure, it is usually advisable to increase m.
Parameters : | mean_volume : 3D ndarray
reference_volume: 3D ndarray, optional :
m : float, optional
M: float, optional :
cc: boolean, optional :
opening: int, optional :
exclude_zeros: boolean, optional :
|
---|---|
Returns : | mask : 3D boolean ndarray
|