From a8b4ffac50b195670fef2c0017a36b38d223ad81 Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Mon, 5 Sep 2022 00:01:22 +0200 Subject: [PATCH] volatile variable made mask-fixed as it should be --- modules/calib/src/calibration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/calib/src/calibration.cpp b/modules/calib/src/calibration.cpp index eee4a7db10..79ef29897e 100644 --- a/modules/calib/src/calibration.cpp +++ b/modules/calib/src/calibration.cpp @@ -776,6 +776,8 @@ static double stereoCalibrateImpl( flags |= CALIB_FIX_TAUX_TAUY; if( flags & CALIB_FIX_ASPECT_RATIO ) mask[idx + 0] = mask[idx + NINTRINSIC] = 0; + if ( flags & CALIB_SAME_FOCAL_LENGTH) + mask[idx + NINTRINSIC] = mask[idx + NINTRINSIC + 1] = 0; if( flags & CALIB_FIX_FOCAL_LENGTH ) mask[idx + 0] = mask[idx + 1] = mask[idx + NINTRINSIC] = mask[idx + NINTRINSIC+1] = 0; if( flags & CALIB_FIX_PRINCIPAL_POINT )