From 036c391a0506a20286212edfa5d54573eb2606f8 Mon Sep 17 00:00:00 2001 From: TinyOh Date: Fri, 4 Jan 2019 15:34:19 +0800 Subject: [PATCH] fix(coeffs): camera equidistant model use default fx fy cx cy --- src/mynteye/api/processor/rectify_processor.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mynteye/api/processor/rectify_processor.cc b/src/mynteye/api/processor/rectify_processor.cc index 16398cc..3ed4b60 100644 --- a/src/mynteye/api/processor/rectify_processor.cc +++ b/src/mynteye/api/processor/rectify_processor.cc @@ -157,11 +157,11 @@ void RectifyProcessor::InitParams( cv::Size size{in_left.width, in_left.height}; cv::Mat M1 = - (cv::Mat_(3, 3) << 1.0, 0, 1.0, 0, 1.0, - 1.0, 0, 0, 1); + (cv::Mat_(3, 3) << 1.0, 0, 0.0, 0, 1.0, + 0.0, 0, 0, 1); cv::Mat M2 = - (cv::Mat_(3, 3) << 1.0, 0, 1.0, 0, 1.0, - 1.0, 0, 0, 1); + (cv::Mat_(3, 3) << 1.0, 0, 0.0, 0, 1.0, + 0.0, 0, 0, 1); cv::Mat D1(1, 8, CV_64F, in_left.coeffs); cv::Mat D2(1, 8, CV_64F, in_right.coeffs); cv::Mat R =