-
Notifications
You must be signed in to change notification settings - Fork 265
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
Interactive object count #754
base: interactive-tools
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## interactive-tools #754 +/- ##
=====================================================
- Coverage 100.00% 96.27% -3.73%
=====================================================
Files 158 160 +2
Lines 6944 7389 +445
=====================================================
+ Hits 6944 7114 +170
- Misses 0 275 +275
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I started reviewing/testing this PR and ran into a few questions:
Updates I plan to make:
|
The branch has been fully updated with the 4.x branch, so ready to review/work on again |
I can start testing this out after lunch! Can you slack me the test notebook and image you have or is it already on the datasci shared drive? |
I only did code updates to fix the conflicts and refactor the tests into modules. Looks like you might have been testing it before, but you might not have gotten to the notebook stage yet? And/or @JorgeGtz might have somthing. I think we were also discussing merging in the |
I have a stomata notebook after all. Added this function to the agenda for discussion at dev meeting tomorrow :) |
remove self return from .correct method test
finish out code example
updating example to insert images into code chunks
methods felt unreadable so added line to separate
resize
undefined variable name update to defined
var name
testing refactored class methods and such, so pushing to GitHub so the code isn't just locally on my computer like it has been all week.
change default label to label, add label param to init, add label param to save_counts method, wrap logic for only doing fancy label configuration if there is a binary image available to use for create_labels
update save_coords to be a fnx talking to outputs.observations and update old function to be named "print_coords" for to text file
remove extra output
remove coordinate calculation and return
move detect_discs
fix import statement
update logic of test (unfiltered mask has more stuff)
b39eff7
to
e5cb828
Compare
remove device counter and import of params
Describe your changes
Added the function detect_discs which helps detecting the pollen grains in the image in #746.
This branch is intended to be updated with the interactive tool for counting objects in an image.
Added the function get_centroids that returns the coordinates of the connected regions in a binary image. The coordinates can be used in the interactive tool to automatically count the objects given by the binary image.
Type of update
Is this a:
Associated issues
Associated with #746
Additional context
The goal is to provide an interactive tool for object counting that can be used with other PlantCV functions to semi-automate the counting.