Skip to content

Commit

Permalink
amend #931 and fix #927
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jan 18, 2018
1 parent 4c57c59 commit 185ddc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmriprep/interfaces/freesurfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def grow_mask(anat, aseg, ants_segs=None, ww=7, zval=2.0, bw=4):
]
if np.any(window > 0):
mu = window[window > 0].mean()
sigma = min(window[window > 0].std(), 1.e-5)
sigma = max(window[window > 0].std(), 1.e-5)
zstat = abs(anat[tuple(pixel)] - mu) / sigma
refined[tuple(pixel)] = int(zstat < zval)

Expand Down

0 comments on commit 185ddc9

Please sign in to comment.