Skip to content

Faster roi filters - #1979

Open
joshqsumner wants to merge 10 commits into
v5.0from
faster-roi-filters
Open

Faster roi filters#1979
joshqsumner wants to merge 10 commits into
v5.0from
faster-roi-filters

Conversation

@joshqsumner

Copy link
Copy Markdown
Contributor

Describe your changes
@marcusdgriff had an ai make new roi filtering functions as part of the gui project. After benchmarking they are faster in all but one (rare) context compared to our current methods. This PR replaces roi.quick_filter with those new internals and adds a "largest" option to roi.quick_filter (although "largest" may not always be faster in this framework).

Type of update
This is a feature update.

Associated issues
None.

Additional context
Original code was from claude. In terms of review I've read it pretty thoroughly but it does use some cv2 that is new to me (and I assume others on the team) that could be good to familiarize with.

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

marcusdgriff and others added 6 commits June 24, 2026 23:53
Renamed fast_filter to quick_filter, bug fix in fast_filter largest, test update, init changes for new names.
@joshqsumner joshqsumner added this to the PlantCV v5.0 milestone Jul 24, 2026
@joshqsumner joshqsumner added the enhancement Enhancements to existing features label Jul 24, 2026
@deepsource-io

deepsource-io Bot commented Jul 24, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 0a9cf06...478f755 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Coverage  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Jul 24, 2026 4:56p.m. Review ↗
Code coverage Jul 24, 2026 4:56p.m. Review ↗

Code Coverage Summary

Language Line Coverage (New Code) Line Coverage (Overall)
Aggregate
100%
[✓ above threshold]
100%
Python
100%
[✓ above threshold]
100%

➟ Additional coverage metrics may have been reported. See full coverage report ↗


Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

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

Labels

enhancement Enhancements to existing features ready to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants