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

Functionality for boundary tracing in JuliaImages.org example in some package already? #1016

Open
cpaniaguam opened this issue Sep 1, 2022 · 1 comment

Comments

@cpaniaguam
Copy link

In this example there is a nice implementation of functionality similar to MATLAB's bwtraceboundary. I was wondering if this type of function was already included in the Images.jl ecosystem. I looked around but didn't find anything.

@zygmuntszpak
Copy link
Member

Hi,
I implement something like this in the ImageComponentAnalysis.jl package

You can do this with:

 component_labels = ImageComponentAnalysis.label_components(img1, trues(3,3))
 measurements = analyze_components(component_labels, Contour())

You can see the test script for an example usage:
https://github.com/zygmuntszpak/ImageComponentAnalysis.jl/blob/master/test/contour_topology.jl

Note that the API for ImageComponentAnalysis is likely to change in the future. I need to do a major overhaul of the package to bring it all up to date.

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