-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Omnidirectional Camera Calibration #3686
Comments
We can make changes to: RECTIFY_LONGLATI: If the issue is still open,Kindly assign the issue to me so that I can rectify it and raise a PR. |
OK, thank you, but I don't have the permission to assign the issue to you. If you have , please help yourself |
Hello Thank you. |
System information (version)
Detailed description
In function cv::omnidir::initUndistortRectifyMap, when flags is RECTIFY_CYLINDRICAL, the code line 477-479
_xt = std::cos(theta); _yt = std::sin(theta); _wt = h;
may be
_xt = -std::sin(h) * std::cos(theta); _yt = -std::cos(h); _wt = std::sin(h) * std::sin(theta);
and when flags is RECTIFY_LONGLATI, the code line 483-485
_xt = -std::cos(theta); _yt = -std::sin(theta) * std::cos(h); _wt = std::sin(theta) * std::sin(h);
may be
theta = (j * 1.0 / (size.width - 1) - 0.5) * 3.1415926; h = (i * 1.0 / (size.height - 1) - 0.5) * 3.1415926; _xt = std::sin(theta); _yt = std::cos(theta) * std::sin(h); _wt = std::cos(theta) * std::cos(h);
The text was updated successfully, but these errors were encountered: