Skip to content

Commit

Permalink
fix(cli): remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Feb 24, 2023
1 parent 28ea018 commit b7af4bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/patch_denoise/bindings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ def compute_mask(array, convex=False):
numpy.ndarray
Mask for array.
"""
if time_axis is not None:
mean = array.mean(axis=-1)
else:
mean = array
mean = array.mean(axis=-1)
mask = np.zeros(mean.shape, dtype=bool)
for i in range(array.shape[-1]):
mask[..., i] = mean[..., i] > threshold_otsu(mean[..., i])
Expand Down

0 comments on commit b7af4bc

Please sign in to comment.