fix(coeffs): camera equidistant model use default fx fy cx cy

This commit is contained in:
TinyOh 2019-01-04 15:34:19 +08:00
parent b40723e819
commit 036c391a05

View File

@ -157,11 +157,11 @@ void RectifyProcessor::InitParams(
cv::Size size{in_left.width, in_left.height}; cv::Size size{in_left.width, in_left.height};
cv::Mat M1 = cv::Mat M1 =
(cv::Mat_<double>(3, 3) << 1.0, 0, 1.0, 0, 1.0, (cv::Mat_<double>(3, 3) << 1.0, 0, 0.0, 0, 1.0,
1.0, 0, 0, 1); 0.0, 0, 0, 1);
cv::Mat M2 = cv::Mat M2 =
(cv::Mat_<double>(3, 3) << 1.0, 0, 1.0, 0, 1.0, (cv::Mat_<double>(3, 3) << 1.0, 0, 0.0, 0, 1.0,
1.0, 0, 0, 1); 0.0, 0, 0, 1);
cv::Mat D1(1, 8, CV_64F, in_left.coeffs); cv::Mat D1(1, 8, CV_64F, in_left.coeffs);
cv::Mat D2(1, 8, CV_64F, in_right.coeffs); cv::Mat D2(1, 8, CV_64F, in_right.coeffs);
cv::Mat R = cv::Mat R =