@@ -324,7 +324,7 @@ public static double CalibrateCamera(
324324 /// <param name="e">Output essential matrix.</param>
325325 /// <param name="f">Output fundamental matrix.</param>
326326 /// <param name="perViewErrors">Output per-view RMS reprojection errors.</param>
327- /// <param name="flags">Operation flags.</param>
327+ /// <param name="flags">Operation flags. Only <see cref="CalibrationFlags.UseExtrinsicGuess"/> is supported. </param>
328328 /// <param name="criteria">Termination criteria for the iterative optimization algorithm.</param>
329329 /// <returns>Overall RMS reprojection error.</returns>
330330 public static double RegisterCameras (
@@ -333,7 +333,7 @@ public static double RegisterCameras(
333333 InputArray cameraMatrix1 , InputArray distCoeffs1 , CameraModel cameraModel1 ,
334334 InputArray cameraMatrix2 , InputArray distCoeffs2 , CameraModel cameraModel2 ,
335335 InputOutputArray r , InputOutputArray t , OutputArray e , OutputArray f ,
336- OutputArray perViewErrors , int flags = 0 , TermCriteria ? criteria = null )
336+ OutputArray perViewErrors , CalibrationFlags flags = CalibrationFlags . None , TermCriteria ? criteria = null )
337337 {
338338 if ( objectPoints1 is null )
339339 throw new ArgumentNullException ( nameof ( objectPoints1 ) ) ;
@@ -356,7 +356,7 @@ public static double RegisterCameras(
356356 op1 , op1 . Length , op2 , op2 . Length , ip1 , ip1 . Length , ip2 , ip2 . Length ,
357357 cameraMatrix1 . Proxy , distCoeffs1 . Proxy , ( int ) cameraModel1 ,
358358 cameraMatrix2 . Proxy , distCoeffs2 . Proxy , ( int ) cameraModel2 ,
359- r . Proxy , t . Proxy , e . Proxy , f . Proxy , perViewErrors . Proxy , flags , criteria0 , out var ret ) ) ;
359+ r . Proxy , t . Proxy , e . Proxy , f . Proxy , perViewErrors . Proxy , ( int ) flags , criteria0 , out var ret ) ) ;
360360
361361 GC . KeepAlive ( cameraMatrix1 . Source ) ;
362362 GC . KeepAlive ( distCoeffs1 . Source ) ;
@@ -390,7 +390,8 @@ public static double RegisterCameras(
390390 /// <param name="rs">Output per-camera rotation matrices relative to camera 0.</param>
391391 /// <param name="ts">Output per-camera translation vectors relative to camera 0.</param>
392392 /// <param name="flagsForIntrinsics">Optional per-camera intrinsics-calibration flags (NUM_CAMERAS x 1, CV_32S).</param>
393- /// <param name="flags">Common multi-view calibration flags.</param>
393+ /// <param name="flags">Common multi-view calibration flags.
394+ /// Only <see cref="CalibrationFlags.UseIntrinsicGuess"/> and <see cref="CalibrationFlags.UseExtrinsicGuess"/> are supported.</param>
394395 /// <param name="criteria">Termination criteria for the iterative optimization algorithm.</param>
395396 /// <returns>Overall RMS reprojection error.</returns>
396397 public static double CalibrateMultiview (
@@ -401,7 +402,7 @@ public static double CalibrateMultiview(
401402 InputArray models ,
402403 out Mat [ ] ks , out Mat [ ] distortions , out Mat [ ] rs , out Mat [ ] ts ,
403404 InputArray flagsForIntrinsics = default ,
404- int flags = 0 ,
405+ CalibrationFlags flags = CalibrationFlags . None ,
405406 TermCriteria ? criteria = null )
406407 {
407408 if ( objPoints is null )
@@ -440,7 +441,7 @@ public static double CalibrateMultiview(
440441 imageSizeArray , imageSizeArray . Length ,
441442 detectionMask . Proxy , models . Proxy ,
442443 ksVec . CvPtr , distVec . CvPtr , rsVec . CvPtr , tsVec . CvPtr ,
443- flagsForIntrinsics . Proxy , flags , criteria0 , out var ret ) ) ;
444+ flagsForIntrinsics . Proxy , ( int ) flags , criteria0 , out var ret ) ) ;
444445
445446 ks = ksVec . ToArray ( ) ;
446447 distortions = distVec . ToArray ( ) ;
0 commit comments