Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gaussian smoothing #90

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Implement smoothing as option
  • Loading branch information
Mathis Rasmussen committed Jun 15, 2023
commit bbc5d4825daf16684eef0c4fa2903a9cbf7f420c
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