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

Taking layer scale into account for regionprops #83

Open
K-Meech opened this issue Feb 16, 2024 · 0 comments
Open

Taking layer scale into account for regionprops #83

K-Meech opened this issue Feb 16, 2024 · 0 comments

Comments

@K-Meech
Copy link

K-Meech commented Feb 16, 2024

Currently, the scale of Napari layers doesn't seem to be taken into account during the regionprops calculations. This means that e.g. areas aren't scaled by the given pixel size, and are just given in pixel units.

regionprops_table has a 'spacing' parameter which the layer .scale could be passed into: https://scikit-image.org/docs/stable/api/skimage.measure.html#skimage.measure.regionprops_table , which currently isn't used:

table = sk_regionprops_table(np.asarray(labels).astype(int), intensity_image=np.asarray(image),

Would it be possible to add this? Thanks!

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