Ask Your Question

etnesstt's profile - activity

2019-02-07 13:47:54 -0600 received badge  Popular Question (source)
2012-09-15 14:31:03 -0600 received badge  Supporter (source)
2012-09-15 14:31:01 -0600 received badge  Scholar (source)
2012-09-14 08:50:09 -0600 received badge  Editor (source)
2012-09-14 04:51:30 -0600 answered a question calibrate a camera and calculate the homography: assertion failed

Thank you very much for your message.

Could you please be so kind to help me, this is a part of my code:

for( int i=step,j=0 ; j<board_total; j++,="" i++)="" {<="" p="">

CV_MAT_ELEM(image_points, float,i,0) = corners[j].x; CV_MAT_ELEM(image_points, float,i,1) = corners[j].y; CV_MAT_ELEM(object_points,float,i,0) = (float) j/board_w; CV_MAT_ELEM(object_points,float,i,1) = (float) (j%board_w); CV_MAT_ELEM(*object_points,float,i,2)=0.0f; }

//the matrix are declared like this : CvMat* image_points = cvCreateMat(n_boardsboard_total,2,CV_32FC1); CvMat object_points = cvCreateMat(n_boards*board_total,3,CV_32FC1);

CvPoint2D32f* corners = new CvPoint2D32f[ board_total ];

2012-09-13 23:59:15 -0600 received badge  Student (source)
2012-09-13 12:01:47 -0600 asked a question calibrate a camera and calculate the homography: assertion failed

Hello!! I've a problem. I compiled the camera-calibration-program and there were no errors / warnings.

When I run the calibration-program and try to calibrate the camera with the images that are in my disk, I get an error-message that says:

"Assertion Failed:dst.channels<>> in unkown function , file ....modules 
\core\src\convert.cpp, enter code here`line 1277" in the function cvConvertScale() 
and cvCalibrateCamera2()

these two images resumes the results, after a click on continue in the image 1: image description

image description

all the images appear one by one on the screen, but no output-file is generated.

Thanks for help in advance.