-
Notifications
You must be signed in to change notification settings - Fork 275
Add support for astrobotany color calibration stickers #1819
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
Conversation
Test that calibration with a cameratrax and astrobotany color card return similar corrected values
|
Here's the code health analysis summary for commits Analysis Summary
Code Coverage Report
|
joshqsumner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I really like the partial detection option but I did not dig into how well the color correction works given that partial detection. Might be an interesting tangent related to #1770.
Made a few edits docs layout wise and added a function to throw an error if an aruco tag ends up with a mask in it as would happen in:
from plantcv import plantcv as pcv
pcv.params.debug = "plot"
img, _, _ = pcv.readimage("/home/josh/plantcv/tests/testdata/astrocard_img.png")
# function detects corner squares, which could be misleading without helper error function
labeled_mask = pcv.transform.detect_color_card(rgb_img=img)
Describe your changes
This PR introduces support for an alternate style of color card by setting
color_chip_size="astro"in thepcv.transformfunctionsdetect_color_card,mask_color_card, andauto_correct_color.Type of update
Is this a:
Associated issues
Related to an ongoing discussion on evaluating calibration quality, in #1770.
Additional context
This style of color card is commonly used in the astrobotany research community as a low-cost and low-mass alternative to Macbeth ColorChecker style cards. The reference matrix for these cards is set so that an image corrected with either type of card will, on average, have measurement error of RGB channels less than 2.5 (1% of full range).
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.ymlupdating.md