You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: