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

Ripple remover #77

Open
JasonGellis opened this issue Jun 10, 2021 · 1 comment
Open

Ripple remover #77

JasonGellis opened this issue Jun 10, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@JasonGellis
Copy link
Collaborator

JasonGellis commented Jun 10, 2021

Exploring using morphological operations(i.e., erosions - cv2.erode() and dilations - cv2.dilate()) for removing ripples. So far this approach works well with images which have thinner ripple lines than scars.
1_erosion

2 erosions:
2_erosion

However, an opening - an erosion followed by a dilation (cv2.MORPH_OPEN) seems like the most promissing option.
5X5_opening

This approach works best when the ripples are of 'thinner' line quality than the rest of the illustration. For example, this image has fairly homogenous line quality, and thus poor(ish) results:

3_erosion
5X5_opening_2

Images with poorly connected lines do not work:
4_erosion

Images with lower than 300 dpi also perform very poorly (image is 200dpi).
low_res
low_res_2

@JasonGellis
Copy link
Collaborator Author

@crangelsmith This and issues with arrows may best be addressed by designing custom kernels derived from image proportions. I believe this data is already stored in teh algo that seperates profile, platform, and dorsal surface. We've briefly discussed this. I will open a new issu for this.

@crangelsmith crangelsmith added the enhancement New feature or request label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants