Skip to content

Commit

Permalink
avoiding warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Jul 22, 2021
1 parent 908447d commit ff359ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eta/core/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def _mask_to_polygons(mask, tolerance=2):
padded_mask = np.pad(mask, pad_width=1, mode="constant", constant_values=0)

contours = measure.find_contours(padded_mask, 0.5)
contours = np.subtract(contours, 1) # undo padding
contours = [c - 1 for c in contours] # undo padding

polygons = []
for contour in contours:
Expand Down

0 comments on commit ff359ac

Please sign in to comment.