Not-normalized output from findHomography#25308
Conversation
|
@ivashmak Could you take a look too? |
The idea to not normalize h33 to 1 is valid. In my USAC implementation, h33 is not constrained to 1. However, I am not sure about these changes: opencv/modules/calib3d/src/fundam.cpp Line 213 in e76b1ca opencv/modules/calib3d/src/fundam.cpp Line 254 in e76b1ca Before, |
|
@ivashmak, thank you for the prompt review! As I understand, both Moreover I don't understand how opencv/modules/calib3d/src/fundam.cpp Lines 253 to 258 in e76b1ca For complete picture, these are homography matrices for - _H0.convertTo(_model, _H0.type(), 1./_H0.at<double>(2,2) );
+ _H0.convertTo(_model, _H0.type(), scaleFor(_H0.at<double>(2,2)));
🤔 Or maybe this is something expected and we should not get exact matrix. I'll review it more carefully. |
|
About So, Where, I saw the latest commit, and you removed the |
|
@ivashmak, I see your concern. Reverted zero value condition back to the origin one. |
1940245 to
aa41f91
Compare
asmorkalov
left a comment
There was a problem hiding this comment.
👍 I do not see engineering issues, but need approve for Vadim or Maksim.
Not-normalized output from findHomography opencv#25308 ### Pull Request Readiness Checklist resolves opencv#25133 resolves opencv#4834 resolves opencv#22166 resolves opencv#18592 See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
The bug was introduced in opencv#25308
|
@asmorkalov, this PR has not been ported to 5.x: https://github.com/opencv/opencv/blob/5.x/modules/3d/src/fundam.cpp |
|
Thanks for the reminder. I have not merged 4.x->5.x for a month aprox. Will do right after release. |
Fix Homography computation. #25665 The bug was introduced in #25308 I am sorry I do not have a proper test. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] The PR is proposed to the proper branch - [x] There is a reference to the 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
Pull Request Readiness Checklist
resolves #25133
resolves #4834
resolves #22166
resolves #18592
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.