-
Notifications
You must be signed in to change notification settings - Fork 271
1553-combined-object-filter #1555
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
Conversation
Here's the code health analysis summary for commits Analysis Summary
Code Coverage Report
|
Sample image and notebook for testing in data_science drive in jupyter/filter_objs |
Since filters is the name of the submodule filter doesn't need to be in the name of the function too?
@k034b363 is the updated function name okay? I figure since it is in the |
We still support Python 3.9, which doesn't have all the type hinting features that were added in 3.10
Yep, that makes sense! I didn't choose the name with any reasoning or logic, I like the change better |
Describe your changes
Taking the logic of existing filter on eccentricity, this function expands to allow filtering on any numeric (float or int) object property calculated by
skimage.measure.regionprops
. The default threshold is 0 andcut_side="upper"
, which will filter nothing for most (but not all) properties. Users can also specify keeping objects below the given threshold by settingcut_side
to "lower".Type of update
Is this a:
Associated issues
This closes #1553
Additional context
Add any other context about the problem here.
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md