volatile variable made mask-fixed as it should be

This commit is contained in:
Rostislav Vasilikhin 2022-09-05 00:01:22 +02:00
parent 8a43956a1b
commit a8b4ffac50

View File

@ -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 )