Skip to content
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

Add min_size to detect_color_card kwargs #1449

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Feb 8, 2024

Describe your changes
Add min_size to detect_color_card kwargs

Type of update
Is this a:

  • feature enhancement

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

Additional context
Low resolution images plus small color card varieties can make color cards too small for detection at the default 1000 pixel filtering size. Enable users to lower this if it helps in their dataset.

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

add min_size to kwargs to act in _is_square filtering
@HaleySchuhl HaleySchuhl added enhancement Enhancements to existing features ready to review labels Feb 8, 2024
@HaleySchuhl HaleySchuhl added this to the PlantCV v4.3 milestone Feb 8, 2024
@HaleySchuhl HaleySchuhl self-assigned this Feb 8, 2024
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b072306) 99.98% compared to head (3cd2065) 99.98%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1449   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         158      158           
  Lines        6975     6976    +1     
=======================================
+ Hits         6974     6975    +1     
  Misses          1        1           
Flag Coverage Δ
unittests 99.98% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
plantcv/plantcv/transform/detect_color_card.py 100.00% <100.00%> (ø)

@HaleySchuhl
Copy link
Contributor Author

HaleySchuhl commented Feb 9, 2024

Noah is busy this afternoon so @annacasto could you review this PR?

@k034b363
Copy link
Contributor

k034b363 commented Feb 9, 2024

@HaleySchuhl I got this one, I think Anna is going to do the second one!

@nfahlgren nfahlgren merged commit 776823a into main Feb 9, 2024
6 checks passed
@nfahlgren nfahlgren deleted the add_size_to_detect_kwargs branch February 9, 2024 23:22
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
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants