PnPRansacCallback::computeError: fix count in case of Nx3 matrices
This commit is contained in:
parent
4f2aeeffaa
commit
ed55d13112
@ -160,7 +160,7 @@ public:
|
|||||||
|
|
||||||
Mat opoints = _m1.getMat(), ipoints = _m2.getMat(), model = _model.getMat();
|
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 _rvec = model.col(0);
|
||||||
Mat _tvec = model.col(1);
|
Mat _tvec = model.col(1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user