-
Notifications
You must be signed in to change notification settings - Fork 271
draw_roi bugfix #1511
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
draw_roi bugfix #1511
Conversation
draw the ROI bounds regardless of whether the moments can be calculated,and only plot number when more than one ROI
Here's the code health analysis summary for commits Analysis Summary
Code Coverage Report
|
In the previous PR I intentionally changed it to plot the ROI number even if there is only 1 ROI |
Ah ok I see @nfahlgren , I found it a little confusing to start plotting a |
In outputs we number the output labels from 1 so I think we should also number the ROIs from 1 instead of 0 now that I look at it |
Yea true, that'll be less confusing all around. Easy enough to implement, I can do that now. |
draw the ROI bounds regardless of whether the moments can be calculated, and only plot number on debug image when there is more than one ROI
Describe your changes
Un-indent the piece of code that is plotting the ROI boundaries, not requirement to be able to calculate moments to be able to draw this. Also adds a check for number of ROIs getting drawn and only adds number when
>1
.Type of update
Is this a:
Associated issues
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md