cvfindhomography used with distorted image points (Bug #1633)
Description
In calibration.cpp
http://code.opencv.org/projects/opencv/repository/entry/tags/2.3.1/opencv/modules/calib3d/src/calibration.cpp#L1406
Image points given in matrix '_m' are distorted points(directly given from the user input) hence computed homography may not always hold.
Associated revisions
Merge pull request #1633 from ilya-lavrenov:ocl_imgproc
History
Updated by Alexander Shishkov almost 13 years ago
- Priority changed from High to Normal
- Target version deleted ()
- Category set to calibration, 3d
Updated by Ilya Lysenkov almost 13 years ago
- Assignee set to Ilya Lysenkov
Updated by Ilya Lysenkov almost 13 years ago
Yes, you are right, these are distorted points. So the computed homography will be only approximation. That is why least-squares fitting is used at the line 1436 to find an optimal solution.
We cannot undistort points before calling this function at the line 1592 because it is executed when CV_CALIB_USE_INTRINSIC_GUESS is not set. It means we don't have distortion coefficients by this moment and original points have to be used.
- Status changed from Open to Cancelled
Updated by Alexander Shishkov almost 13 years ago
- Target version set to 2.4.0