Skip to content

Commit

Permalink
Merge pull request #338 from jakirkham/fix_contour_bug
Browse files Browse the repository at this point in the history
Fix contour bug
  • Loading branch information
jakirkham committed Jan 5, 2016
2 parents eb653c6 + 94d1f7c commit 89ad70c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nanshe/util/xnumpy.py
Expand Up @@ -4963,8 +4963,9 @@ def generate_contour(a_image, separation_distance=1.0, margin=1.0):
upper_threshold = separation_distance + half_thickness

a_mask_transformed = mahotas.distance(
a_image
).astype(a_image.dtype)
a_image,
"euclidean"
)

above_lower_threshold = (lower_threshold <= a_mask_transformed)
below_upper_threshold = (a_mask_transformed <= upper_threshold)
Expand Down

0 comments on commit 89ad70c

Please sign in to comment.