cvCalibrateCamera2 assertion
Hello,
after using OpenCV 2.4.4 for long time now i decides to take the step to upgrade to OpenCV 3.2.0 but i have some troubles bringing the distortion correction back to work.
The cvCalibrateCamera2 function tries to convert the points to homogeneous coordinates but always runs into an assertion in convertPointsHomogeneous: CV_Assert( _dst.fixedType() );
As the assertion handles a Mat that is defined in cvCalibrateCamera2 it seems like this is an internal error of OpenCV.
OpenCV Error: Assertion failed (_dst.fixedType()) in cv::convertPointsHomogeneous, file D:\Repositories\OpenCV\modules\calib3d\src\fundam.cpp, line 1029
can you show the code you're using ?
(and let's hope, you're not using those deprecated c-api functions directly..)
I do use the old c-api, as it would be a lot of work to change it.
then, do that work, now. (as noone will fix bugs related to that, ever)
or , rather throw it away entirely, and start with more recent code
Hello , I am using Open CV 3.3.0 with visual studio 2012.
Even am also facing the same issue, getting OpenCV Error: Assertion failed (_dst.fixedType()) in cv::convertPointsHomogeneous. Please could u suggest me possible solution !!
Thanks in Advance.
I am running into the same error. I am using the function as :
cvCalibrateCamera2(object_points2,image_points2,point_counts2,cvGetSize( image), intrinsic_matrix, distortion_coeffs, rot_vects, trans_vects,0,cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,30,DBL_EPSILON) );
I run into:
Any thoughts/ solutions?