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

Add optional pixel to mm conversion in plantcv.analyze.size and others #1649

Open
rayn-alex opened this issue Jan 10, 2025 · 0 comments
Open
Labels
new feature New feature ideas and solutions

Comments

@rayn-alex
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I want to convert the pixel size values to mm so it's written in the outputs with the unit mm

Describe the solution you'd like
Add an option to the function that leads to a conversion of the px values to mm or mm². This could simply be a conversion factor. E.g.:
plantcv.analyze.size(img, labeled_mask, n_labels=1, label=None, px_conversion_factor=None)

Describe alternatives you've considered
It's always possible to do the conversion outside plantCV. However, I think it'd be convenient and it might be useful for more users.

If you all think an option like this makes sense, I could implement this in plantcv.analyze.size as well as all the other functions where this might be relevant (please help me to list all).

@rayn-alex rayn-alex added the new feature New feature ideas and solutions label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature ideas and solutions
Projects
None yet
Development

No branches or pull requests

1 participant