Skip to content

Conversation

annacasto
Copy link
Contributor

@annacasto annacasto commented Jan 9, 2024

Describe your changes
Added the new function checkerboard_calib that takes images of checkerboards and creates correction matrices.
Added the new function calibrate_camera that takes the output correction matrices from checkerboard_calib and corrects camera distortions like fish eye distortions.

Type of update
Is this a:

  • New feature or feature enhancement
  • Work in progress

Associated issues
Issue #1416

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

@annacasto annacasto linked an issue Jan 9, 2024 that may be closed by this pull request
@annacasto annacasto added the work in progress Mark work in progress label Jan 12, 2024
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (ec2e2df) to head (d525ee2).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1422   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         159      160    +1     
  Lines        7048     7094   +46     
=======================================
+ Hits         7047     7093   +46     
  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/__init__.py 100.00% <100.00%> (ø)
plantcv/plantcv/transform/checkerboard_calib.py 100.00% <100.00%> (ø)
plantcv/plantcv/transform/warp.py 100.00% <100.00%> (ø)

@annacasto
Copy link
Contributor Author

Added a test notebook and test data to the shared Google drive. The folder is called camera_distortions_1422.

@annacasto annacasto added ready to review and removed work in progress Mark work in progress labels Feb 1, 2024
@annacasto annacasto requested a review from HaleySchuhl February 1, 2024 16:27
@annacasto annacasto added the new feature New feature ideas and solutions label Feb 1, 2024
link to source code, link to other documentation page while referencing the downstream step to this one
add link to other doc page while referencing
Copy link
Contributor

@HaleySchuhl HaleySchuhl left a comment

Choose a reason for hiding this comment

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

Looks really good! I made a few minor updates to the documentation pages and addressed the merge conflicts introduced last week.

@codecov-commenter
Copy link

codecov-commenter commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (a5ede9b) to head (d525ee2).
Report is 17 commits behind head on main.

❗ Current head d525ee2 differs from pull request most recent head bf9fee5. Consider uploading reports for the commit bf9fee5 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1422   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         161      160    -1     
  Lines        7066     7094   +28     
=======================================
+ Hits         7065     7093   +28     
  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/__init__.py 100.00% <100.00%> (ø)
plantcv/plantcv/transform/checkerboard_calib.py 100.00% <100.00%> (ø)
plantcv/plantcv/transform/warp.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

@nfahlgren nfahlgren added this to the PlantCV v4.3 milestone Mar 1, 2024
@nfahlgren nfahlgren merged commit 9ba52cd into main Mar 1, 2024
@nfahlgren nfahlgren deleted the 1416-fisheye-image-distortion-correction branch March 1, 2024 23:31
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.

Fisheye image distortion correction
5 participants