Commit ed55d131 authored by Alexander Duda's avatar Alexander Duda

PnPRansacCallback::computeError: fix count in case of Nx3 matrices

parent 4f2aeeff
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment