Inputs:
[Mandatory]
mean_volume : (an existing file name)
mean EPI image, used to compute the threshold for the mask
[Optional]
M : (a float)
upper fraction of the histogram to be discarded
cc : (a boolean)
if True, only the largest connect component is kept
m : (a float)
lower fraction of the histogram to be discarded
reference_volume : (an existing file name)
reference volume used to compute the mask. If none is give, the mean volume is used.
Outputs:
brain_mask : (an existing file name)
Unknown