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

feat(ceres_intrinsic_camera_calibrator): ceres-based intrinsic calibrator #141

Merged
merged 17 commits into from
Oct 23, 2024

Conversation

knzo25
Copy link
Collaborator

@knzo25 knzo25 commented Nov 1, 2023

Implemented a ceres-based camera intrinsics calibrator.
Numerical results seem to be the same as opencv but it is way faster when using a large number of calibration images

Description

Related links

Tests performed

Notes for reviewers

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Numerical results seem to be the same as opencv but it is way faster when using a large number of calibration images

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25 knzo25 requested a review from drwnz November 1, 2023 07:30
@knzo25 knzo25 self-assigned this Nov 1, 2023
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25 knzo25 changed the title feat(ceres_intrinsic_camera_calibrator): Ceres-based intrinsic calibrator feat(ceres_intrinsic_camera_calibrator): ceres-based intrinsic calibrator Nov 1, 2023
@codecov-commenter
Copy link

Codecov Report

Attention: 338 lines in your changes are missing coverage. Please review.

Comparison is base (b0153ee) 0.95% compared to head (a0edbff) 0.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                Coverage Diff                @@
##           tier4/universe    #141      +/-   ##
=================================================
- Coverage            0.95%   0.00%   -0.96%     
=================================================
  Files                 269       4     -265     
  Lines               20908     338   -20570     
  Branches              387       0     -387     
=================================================
- Hits                  200       0     -200     
+ Misses              20551     338   -20213     
+ Partials              157       0     -157     
Flag Coverage Δ
differential 0.00% <0.00%> (?)
total ?

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

Files Coverage Δ
...rinsic_camera_calibrator/reprojection_residual.hpp 0.00% <0.00%> (ø)
...rator/src/ceres_intrinsic_camera_calibrator_py.cpp 0.00% <0.00%> (ø)
...tor/ceres_intrinsic_camera_calibrator/src/main.cpp 0.00% <0.00%> (ø)
...librator/src/ceres_camera_intrinsics_optimizer.cpp 0.00% <0.00%> (ø)

... and 269 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@amadeuszsz amadeuszsz left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@@ -47,11 +47,13 @@ calibrate(
const Eigen::MatrixXd & initial_dist_coeffs_eigen, int num_radial_coeffs, int num_rational_coeffs,
bool use_tangential_distortion, bool verbose)
{
int num_dist_coeffs = initial_dist_coeffs_eigen.rows() * initial_dist_coeffs_eigen.cols();
Copy link
Contributor

@amadeuszsz amadeuszsz Oct 23, 2024

Choose a reason for hiding this comment

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

nit: narrowing conversion, std::size_t might be applied in both lines

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25 knzo25 merged commit 1bb940c into tier4/universe Oct 23, 2024
7 checks passed
@knzo25 knzo25 deleted the feature/ceres_intrinsic_calibrator branch October 23, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants