Skip to content

backport C++ 3d/calibration_base.cpp:5.x to calib3d/calibration_base.cpp:4.x#26414

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
vrabaud:4x_calibration_base
Nov 8, 2024
Merged

backport C++ 3d/calibration_base.cpp:5.x to calib3d/calibration_base.cpp:4.x#26414
asmorkalov merged 2 commits intoopencv:4.xfrom
vrabaud:4x_calibration_base

Conversation

@vrabaud
Copy link
Copy Markdown
Contributor

@vrabaud vrabaud commented Nov 4, 2024

This is to minimize the differences between 4.x and 5.x

To review this PR, it is best to look at the second commit which is a simpler diff.

The next steps are:

  • backport stereo/stereo_geom.cpp:5.x
  • backport the remaining calibration.cpp code to C++

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch

@vrabaud vrabaud force-pushed the 4x_calibration_base branch 2 times, most recently from 7af9717 to 7d7c9c2 Compare November 4, 2024 20:05
@vrabaud vrabaud marked this pull request as ready for review November 4, 2024 20:56
@vrabaud vrabaud requested a review from asmorkalov November 4, 2024 20:57
@asmorkalov asmorkalov added category: calib3d cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code) labels Nov 5, 2024
@asmorkalov asmorkalov added this to the 4.11.0 milestone Nov 5, 2024
@asmorkalov asmorkalov self-assigned this Nov 5, 2024
@vrabaud vrabaud force-pushed the 4x_calibration_base branch from 7d7c9c2 to ecd8147 Compare November 5, 2024 09:02
@vrabaud vrabaud force-pushed the 4x_calibration_base branch from ecd8147 to c77eaa3 Compare November 6, 2024 14:28
@vrabaud
Copy link
Copy Markdown
Contributor Author

vrabaud commented Nov 6, 2024

I actually removed the C functions: they are only used internally and the C code that was calling them is not calling the C++ functions.

@vrabaud vrabaud force-pushed the 4x_calibration_base branch from c77eaa3 to af6d6d3 Compare November 6, 2024 14:30
@vrabaud
Copy link
Copy Markdown
Contributor Author

vrabaud commented Nov 7, 2024

I just added a little fix for vertical distortion coefficients (I thought our internal failing test was flaky). This code will be removed in a future PR anyway.

@vrabaud vrabaud force-pushed the 4x_calibration_base branch from 79af869 to 5061ff3 Compare November 7, 2024 15:08
@vrabaud vrabaud force-pushed the 4x_calibration_base branch from 5061ff3 to b66d78e Compare November 7, 2024 15:11
@asmorkalov asmorkalov merged commit 6873bde into opencv:4.x Nov 8, 2024
@asmorkalov asmorkalov mentioned this pull request Nov 13, 2024
thewoz pushed a commit to CobbsLab/OPENCV that referenced this pull request Feb 13, 2025
…cpp:4.x (opencv#26414)

* Add vanilla calibration_base from 5.x

This is from 5510571

* Have the C implementation use the new C++ one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: calib3d cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants