Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does camera calibration work on one image but not on a (very similar) other image?

Hello, I am having to very similiar images of a chessboard pattern. Each is taken by a different camera with a slightly different distortion. However, with the calibration sample code provided in the OpenCV (OpenCV Version 2.4.2) package (OpenCV-2.4.2/samples/cpp/calibration.cpp) I can calculate the camera parameters from of one image (hence for one camera), but not for the other image.

If I run the code in the Debugger the variable found in line 468 is having the value false, indicating that no chessboard corners where detected (with the picture that doesnt work).

I use the programm from the commandline using the following parameters: calibration -w 13 -h 9 -s 18 -o camera.yml -op -oe imagelist.yaml

Calibration WORKS Calibration DOES NOT WORK

Why does camera calibration work on one image but not on a (very similar) other image?

Hello, I am having to very similiar images of a chessboard pattern. Each is taken by a different camera with a slightly different distortion. However, with the calibration sample code provided in the OpenCV (OpenCV Version 2.4.2) package (OpenCV-2.4.2/samples/cpp/calibration.cpp) I can calculate the camera parameters from of one image (hence for one camera), but not for the other image.

If I run the code in the Debugger the variable found in line 468 is having the value false, indicating that no chessboard corners where detected (with the picture that doesnt work).

I use the programm from the commandline using the following parameters: calibration -w 13 -h 9 -s 18 -o camera.yml -op -oe imagelist.yaml

Calibration WORKS Calibration DOES NOT WORK