We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f418243 commit 6f55b53Copy full SHA for 6f55b53
sdcflows/utils/epimanip.py
@@ -313,7 +313,7 @@ def epi_mask(in_file, out_file=None):
313
maxnorm = np.percentile(closed[closed > 0], 90)
314
closed = np.clip(closed, a_min=0.0, a_max=maxnorm)
315
# Calculate index of center of masses
316
- cm = tuple(np.round(ndimage.measurements.center_of_mass(closed)).astype(int))
+ cm = tuple(np.round(ndimage.center_of_mass(closed)).astype(int))
317
# Erode the picture of the brain by a lot
318
eroded = ndimage.grey_erosion(closed, structure=ball(5))
319
# Calculate the residual
0 commit comments