diff --git a/modules/calib3d/src/rho.cpp b/modules/calib3d/src/rho.cpp index 8ac22df33c..81d641c3fc 100644 --- a/modules/calib3d/src/rho.cpp +++ b/modules/calib3d/src/rho.cpp @@ -1664,7 +1664,7 @@ inline void RHO_HEST_REFC::nStarOptimize(void){ best_n = test_n; bestNumInl = testNumInl; } - testNumInl -= !!arg.inl[test_n-1];/* FIXME: Probable bug! */ + testNumInl -= !!best.inl[test_n-1]; } if(bestNumInl*ctrl.phMax > ctrl.phNumInl*best_n){