Skip to content

Commit

Permalink
Updated mask issue in xanes_math/contrast_mask(). Giving inverse resu…
Browse files Browse the repository at this point in the history
…lts.
  • Loading branch information
WilliamJudge94 committed Aug 13, 2019
1 parent 3d21a63 commit 0646af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xanespy/xanes_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,6 @@ def contrast_mask(frames: np.ndarray, sensitivity: float = 1, min_size=0, frame_
if min_size > 0:
mask = morphology.opening(mask, selem=morphology.disk(min_size))

return mask
return ~mask


0 comments on commit 0646af2

Please sign in to comment.