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

Fill holes in labels #67

Closed
tischi opened this issue Feb 11, 2022 · 4 comments
Closed

Fill holes in labels #67

tischi opened this issue Feb 11, 2022 · 4 comments

Comments

@tischi
Copy link

tischi commented Feb 11, 2022

@dlegland

For one of our projects it would be very useful to have a "Fill holes in labels" option.
Would that be within scope to add?

@dlegland
Copy link
Contributor

Hi,
yes, could be a good idea, but there would be problems when some labels are enclosed into other labels... What behaviour would you expect in that case?

@tischi
Copy link
Author

tischi commented Feb 14, 2022

Hm, I guess I would expect that the outer label is filled until it hits the inner label, thus not changing the inner label. Essentially, I would say that the algorithm only is allowed to change the values of background (0) pixels.

@dlegland
Copy link
Contributor

yes, sounds logical. However I am not sure this is that easy to implement (not straightforward to differentiate inner hole to non-inner background...).

@dlegland
Copy link
Contributor

Implemented in a664ec1,
and released within MorphoLibJ 1.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants