From e22678018b084e8c0e17ece43114894aaea8fae8 Mon Sep 17 00:00:00 2001 From: Hamid Bazargani Date: Fri, 13 Feb 2015 00:30:18 -0500 Subject: [PATCH] Fix sacCalcJacobianErrors arguments. (curr.inl replaced with best.inl) Fix the issue given NULL inlMask --- modules/calib3d/src/fundam.cpp | 1 - modules/calib3d/src/rhorefc.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/modules/calib3d/src/fundam.cpp b/modules/calib3d/src/fundam.cpp index beba572c95..af7c4dfb0a 100644 --- a/modules/calib3d/src/fundam.cpp +++ b/modules/calib3d/src/fundam.cpp @@ -399,7 +399,6 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2, tempMask = Mat::ones(npoints, 1, CV_8U); result = cb->runKernel(src, dst, H) > 0; } - else if( method == RANSAC) result = createRANSACPointSetRegistrator(cb, 4, ransacReprojThreshold, confidence, maxIters)->run(src, dst, H, tempMask); else if( method == LMEDS ) diff --git a/modules/calib3d/src/rhorefc.cpp b/modules/calib3d/src/rhorefc.cpp index bc36e0bd84..2fffadac8a 100644 --- a/modules/calib3d/src/rhorefc.cpp +++ b/modules/calib3d/src/rhorefc.cpp @@ -624,11 +624,9 @@ unsigned RHO_HEST_REFC::rhoRefC(const float* src, /* Source points */ if(isFinalRefineEnabled() && canRefine()){ refine(); } - outputModel(); finiRun(); return isBestModelGoodEnough() ? best.numInl : 0; - }