doku error

asked 2014-09-23 02:09:10 -0600

Gerald Lodron gravatar image

updated 2014-09-23 03:56:10 -0600

Hi

I also found a bug in the doku: http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

The camera matrix. If we used the fixed aspect ratio option we need to set the f_x to zero:
cameraMatrix = Mat::eye(3, 3, CV_64F);
if( s.flag & CV_CALIB_FIX_ASPECT_RATIO )
   cameraMatrix.at<double>(0,0) = 1.0;

shouldnt that become

Matrix.at<double>(0,0) = 0.0; ??

best regards Gerald

edit retag flag offensive close merge delete

Comments

Hmm I am rather thinking that the text is wrong. AFAIK the fx parameter is a multiplier. By making it 1 you will have no ration aspect. Making it 1.5 for example and fy 1 would create a different aspect ration. So I would say description is wrong and not the value itself.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-23 03:59:11 -0600 )edit

but the value is already 1 from Mat::eye. Then the whole if() does nothing...

Gerald Lodron gravatar imageGerald Lodron ( 2014-09-23 05:23:52 -0600 )edit

hmm indeed, looked passed that. guess we need an expert in calibration here ... haven't done it before so.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-23 05:51:23 -0600 )edit