volatile variable made mask-fixed as it should be

pull/22460/head
Rostislav Vasilikhin 2 years ago
parent 8a43956a1b
commit a8b4ffac50
  1. 2
      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 )

Loading…
Cancel
Save