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

morphology.skel modifies input image #7419

Open
stefanv opened this issue May 14, 2024 · 1 comment
Open

morphology.skel modifies input image #7419

stefanv opened this issue May 14, 2024 · 1 comment
Labels

Comments

@stefanv
Copy link
Member

stefanv commented May 14, 2024

Description:

Run skel on a boolean mask. The mask is modified.

Way to reproduce:

No response

Version information:

No response

@lagru
Copy link
Member

lagru commented May 14, 2024

I'm probably missing something but could you clarify? I can't reproduce with

import numpy as np
import skimage as ski

mask = np.ones((10, 10), dtype=bool)
mask_ref = mask.copy()

ski.morphology.skeletonize(mask)
np.testing.assert_array_equal(mask, mask_ref)

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

No branches or pull requests

2 participants