Merge pull request #15793 from Cherubin7th:3.4
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 27 Oct 2019 22:45:19 +0000 (22:45 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 27 Oct 2019 22:45:19 +0000 (22:45 +0000)
modules/calib3d/src/fisheye.cpp

index 5fe6b2a..56fd821 100644 (file)
@@ -857,8 +857,8 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
 
     CV_Assert(K1.empty() || (K1.size() == Size(3,3)));
     CV_Assert(D1.empty() || (D1.total() == 4));
-    CV_Assert(K2.empty() || (K1.size() == Size(3,3)));
-    CV_Assert(D2.empty() || (D1.total() == 4));
+    CV_Assert(K2.empty() || (K2.size() == Size(3,3)));
+    CV_Assert(D2.empty() || (D2.total() == 4));
 
     CV_Assert((!K1.empty() && !K2.empty() && !D1.empty() && !D2.empty()) || !(flags & CALIB_FIX_INTRINSIC));