kyamagu / mexopencv

Collection and a development kit of matlab mex functions for OpenCV library
http://kyamagu.github.io/mexopencv
Other
661 stars 319 forks source link

cv.projectPoints: Wrong number of arguments #430

Closed X1l10on88 closed 5 years ago

X1l10on88 commented 5 years ago

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.

amroamroamro commented 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);
X1l10on88 commented 5 years ago

Solved, thanks!