Compute a mask file from fMRI nifti file(s)
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 : | input_filename : string
output_filename : string or None, optional
return_mean : boolean, optional
m : float, optional
M: float, optional :
cc: boolean, optional :
exclude_zeros: boolean, optional :
|
---|---|
Returns : | mask : 3D boolean array
mean_image : 3d ndarray, optional
|