From ed55d13112bbe28b6616c9bf4b82bb3e5d9a2e2e Mon Sep 17 00:00:00 2001 From: Alexander Duda Date: Sun, 9 Nov 2014 23:08:47 +0100 Subject: [PATCH] PnPRansacCallback::computeError: fix count in case of Nx3 matrices --- modules/calib3d/src/solvepnp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calib3d/src/solvepnp.cpp b/modules/calib3d/src/solvepnp.cpp index bdc32c6..a44eb62 100644 --- a/modules/calib3d/src/solvepnp.cpp +++ b/modules/calib3d/src/solvepnp.cpp @@ -160,7 +160,7 @@ public: Mat opoints = _m1.getMat(), ipoints = _m2.getMat(), model = _model.getMat(); - int i, count = opoints.cols; + int i, count = opoints.checkVector(3); Mat _rvec = model.col(0); Mat _tvec = model.col(1); -- 2.7.4