Closed X1l10on88 closed 5 years ago
Distortion coefficients param is an option, not required input (defaults to zero ceoffs).
http://amroamroamro.github.io/mexopencv/matlab/cv.projectPoints.html
So the call should be:
imagePoints = cv.projectPoints(src2, rvec, tvec, K, 'DistCoeffs',distCoeffs);
Solved, thanks!
MATLAB 2015a GCC 4.7 mexopencv: current branch OpenCV 3.4.1
Error:
imagePoints = cv.projectPoints(src2, rvec, tvec, K, distCoeffs) Error using projectPoints Wrong number of arguments
opencvmex compiled without warnings or errors and others cv. functions works properly.