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

Return individual skeletons over the full original image. #58

Open
e-koch opened this issue Apr 14, 2020 · 0 comments
Open

Return individual skeletons over the full original image. #58

e-koch opened this issue Apr 14, 2020 · 0 comments

Comments

@e-koch
Copy link
Owner

e-koch commented Apr 14, 2020

It's not straightforward to return a single filament back into the original image shape. A convenience function of the following would be good to add (fil is a FilFinder2D instance):

from fil_finder.pixel_ident import recombine_skeletons

# For ith filament in fil.filaments
i = 0
mask_i = recombine_skeletons([fil.filaments[i].skeleton()], [fil.array_offsets[i]], fil.image.shape, 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

1 participant