Skip to content

Add quality control for image color #1574

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

Merged
merged 42 commits into from
Aug 15, 2024
Merged

Add quality control for image color #1574

merged 42 commits into from
Aug 15, 2024

Conversation

kmurphy61
Copy link
Contributor

@kmurphy61 kmurphy61 commented Aug 5, 2024

Describe your changes
A new function that allows a user to view the R, G, and B histograms to determine if they are too close to the minimum (0) or maximum (255), which would suggest the image is over or underexposed. 5% is used as the cutoff for a warning message.

Type of update

  • New feature or feature enhancement

Associated issues
Issue #1573

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.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv/mkdocs.yml
  • Changes to function input/output signatures added to updating.md
  • Code reviewed
  • PR approved

@kmurphy61 kmurphy61 added the new feature New feature ideas and solutions label Aug 5, 2024
Copy link

deepsource-io bot commented Aug 5, 2024

Here's the code health analysis summary for commits 0f51190..f33ee4f. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage100%100%
Line Coverage100%100%
New Branch Coverage100%100%
New Composite Coverage100%100%
New Line Coverage100%, ✅ Above Threshold100%, ✅ Above Threshold

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@HaleySchuhl
Copy link
Contributor

@kmurphy61 I will continue to work on this today! I believe we want the output observation to be a metadata term since it's an image-level metric. I'll plan to ping you on slack when it's ready for you to test locally, and we can divide up the remaining PR tasks to get this ready to review 💫

@nfahlgren nfahlgren added this to the PlantCV v4.4 milestone Aug 15, 2024
No need to test different debug modes since the debug logic now uses _debug

Float equality is not a stable test, use np.isclose instead
@nfahlgren nfahlgren merged commit 279f12e into main Aug 15, 2024
5 checks passed
@nfahlgren nfahlgren deleted the 1573-quality-control branch August 15, 2024 16:03
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 ready to review
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants