Skip to content

Commit

Permalink
Implement smoothing as option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Rasmussen committed Jun 15, 2023
1 parent 12c3ba7 commit bbc5d48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rt_utils/image_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def find_mask_contours(mask: np.ndarray, approximate_contours: bool, scaling_fac
contours
) # Open-CV updated contours to be a tuple so we convert it back into a list here

# Coordinates are rescaled to image grid by dividing with scaling factor
for i, contour in enumerate(contours):
contours[i] = [[(contour[i][0][0] / scaling_factor), (contour[i][0][1] / scaling_factor)] for i in
range(0, len(contour))]
Expand Down

0 comments on commit bbc5d48

Please sign in to comment.