Ask Your Question

Revision history [back]

Flags of cv::stereoCalibrate seems not to work

Hi

I have a stereo setup where i already made the mono calibration of each camera and i want to reuse the focal legth, principal point and distortions of that mono calibration.

So i set the fix CV_CALIB_FIX_K1 to K6, CV_CALIB_USE_INTRINSIC_GUESS, CV_CALIB_FIX_FOCAL_LENGTH and CV_CALIB_FIX_PRINCIPAL_POINT flags and also supplied the correct distortion coefficients and camera matrices to the cv::stereoCalibrate call and i supposed to only get the rotation and translation part between left and right camera, but the function still seems to modify K1 to K6 and folcal legth and principal point. I also tried only setting one flag (e.g. FixK1) but it is still changing....

I am using opencv 2.4.9, are the flags diabled or someting like that?

For sure i could ignore my first mono calib and make everything complete new but i have more targets visible in sperate cams than in both at the same time, thats why i think this would be more accurate....

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 becameraMatrix.at<double>(0,0) = 0.0; ??

best regards Gerald

Flags of cv::stereoCalibrate seems not to workdoku error

Hi

I have a stereo setup where i already made the mono calibration of each camera and i want to reuse the focal legth, principal point and distortions of that mono calibration.

So i set the fix CV_CALIB_FIX_K1 to K6, CV_CALIB_USE_INTRINSIC_GUESS, CV_CALIB_FIX_FOCAL_LENGTH and CV_CALIB_FIX_PRINCIPAL_POINT flags and also supplied the correct distortion coefficients and camera matrices to the cv::stereoCalibrate call and i supposed to only get the rotation and translation part between left and right camera, but the function still seems to modify K1 to K6 and folcal legth and principal point. I also tried only setting one flag (e.g. FixK1) but it is still changing....

I am using opencv 2.4.9, are the flags diabled or someting like that?

For sure i could ignore my first mono calib and make everything complete new but i have more targets visible in sperate cams than in both at the same time, thats why i think this would be more accurate....

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 becameraMatrix.at<double>(0,0) = 0.0; ??

best regards Gerald

doku error

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:

zero: cameraMatrix = Mat::eye(3, 3, CV_64F);

CV_64F); if( s.flag & CV_CALIB_FIX_ASPECT_RATIO )

) cameraMatrix.at<double>(0,0) = 1.0;1.0;

shouldnt that becameraMatrix.at<double>(0,0) become

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

??

best regards Gerald