From 96e2d326185fd1639238c8158ff9daf10d25c712 Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Fri, 2 Sep 2022 03:41:41 +0200 Subject: [PATCH] fixing broken stereo calibration --- modules/calib/src/calibration.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/calib/src/calibration.cpp b/modules/calib/src/calibration.cpp index 674b4d8ac7..caf557ae7d 100644 --- a/modules/calib/src/calibration.cpp +++ b/modules/calib/src/calibration.cpp @@ -917,10 +917,6 @@ static double stereoCalibrateImpl( param[idx + 17] = dk[k][13]; } - A[0] = A[1] = Matx33d(1, 0, 0, 0, 1, 0, 0, 0, 1); - - //std::cout << "param before LM: " << Mat(param, false).t() << "\n"; - auto lmcallback = [&](InputOutputArray _param, OutputArray JtErr_, OutputArray JtJ_, double& errnorm) { Mat_ param_m = _param.getMat();