Skip to content

fix test_cameracalibration bug#19860

Closed
NerdToMars wants to merge 3 commits intoopencv:masterfrom
NerdToMars:master
Closed

fix test_cameracalibration bug#19860
NerdToMars wants to merge 3 commits intoopencv:masterfrom
NerdToMars:master

Conversation

@NerdToMars
Copy link
Copy Markdown

fix the rotation matrix transpose issue, resolve the hug difference between perViewErrors and goodPerviewErrors via:

  1. remove rotation matrix transpose in calibration test
  2. add rotation matrix transpose to match good rotation matrix.

for details, please refer to this issue: #19849

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 other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

1. remove transpose operation when return camera rotation matrix
1. transpose rotMatrs to match goodRotMatrs.
@asenyaev
Copy link
Copy Markdown
Contributor

asenyaev commented Apr 8, 2021

jenkins cn please retry a build

@asmorkalov
Copy link
Copy Markdown
Contributor

asmorkalov commented Jul 27, 2021

@NerdToMars Thanks for the patch! @vpisarev is very busy now.
The change affects project call results. In case, if it reduces difference between perViewErrors and goodPerviewErrors than it's logical to reduce threshold at line: code = compare(&perViewErrors[0], &goodPerViewErrors[0], numImages, 1.1, "per view errors vector");

@asmorkalov
Copy link
Copy Markdown
Contributor

Also the same issue exists in 3.4 branch. OpenCV team merges 3.4 to master on weekly or be-weekly bases, so all changes will appear in master too. The PR was created from master branch and cannot be re-targeted to 3.4 easily. Please create PR with fix from topic brianch derived from 3.4 and point it to 3.4..

@asmorkalov asmorkalov added pr: needs rebase Rebase patch (and squash fixup commits) on the top of target branch incomplete labels Jul 29, 2021
{
Mat r9;
cvtest::Rodrigues( rvecs[i], r9 );
cv::transpose(r9, r9);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@asmorkalov
Copy link
Copy Markdown
Contributor

@NerdToMars Friendly reminder.

@asmorkalov
Copy link
Copy Markdown
Contributor

@NerdToMars Friendly reminder.

@asmorkalov asmorkalov mentioned this pull request Oct 5, 2021
6 tasks
@asmorkalov
Copy link
Copy Markdown
Contributor

Replaced by #20810

@asmorkalov asmorkalov closed this Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants