Skip to content

Conversation

@HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Sep 16, 2025

Describe your changes
Use polygon to help describe color cards that might be both rotated and skewed. Crop the color card detected, and then create a color matrix directly.

Type of update
Is this a:

  • update

Associated issues
Reference associated issue numbers. Does this pull request close any issues?

Additional context

  • Need to carefully consider the orientation detection algorithm and retest on a large set of images.

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

@HaleySchuhl HaleySchuhl added work in progress Mark work in progress update Updates an existing feature/method breaking labels Sep 16, 2025
@deepsource-io
Copy link

deepsource-io bot commented Sep 16, 2025

Here's the code health analysis summary for commits 2fecc73..1d17766. 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.

cropped card becomes warped so loosen aspect ratio and solidity restore contour detection on the cropped color card
embed new debug images, clarify output is now a color matrix
@HaleySchuhl HaleySchuhl added ready to review and removed work in progress Mark work in progress labels Sep 17, 2025
@joshqsumner joshqsumner self-requested a review September 18, 2025 13:14
Copy link
Contributor

@joshqsumner joshqsumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, like the new debug image.

I think we could have more information about tuning these parameters but per Noah's comments in dev meeting they maybe don't belong in this PR cluttering the actual docs. Maybe we'll have a "using bad images" tutorial or something in the future where we highlight features meant to get around a bad imaging set up.

@nfahlgren nfahlgren added this to the PlantCV v5.0 milestone Sep 22, 2025
@HaleySchuhl HaleySchuhl added work in progress Mark work in progress and removed ready to review labels Nov 14, 2025
@joshqsumner joshqsumner self-requested a review December 18, 2025 19:28
@joshqsumner joshqsumner self-assigned this Dec 18, 2025
@joshqsumner
Copy link
Contributor

Note, problem here is with detecting the white chip, color chip numbering is not consistent post-warp per Haley's lab meeting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking update Updates an existing feature/method work in progress Mark work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants