|PARP Research Group||Universidad de Murcia|
examples/OpenCV/cameraCalibrator/cameraCalibrator.cpp File Reference
Obtains intrinsic camera matrix and distortion coefficients for a camera. More...
Obtains intrinsic camera matrix and distortion coefficients for a camera.
This example is based on the example 11-1 from the book:
Learning OpenCV: Computer Vision with the OpenCV Library by Gary Bradski and Adrian Kaehler Published by O'Reilly Media, October 3, 2008
It uses the chessboard template image OpenCV_Chessboard.png attacked to the source code to obtain the camera calibration parameters.
Once compiled, the program should be used with this command line:
./cameraCalibrator --URL=<video source>
10 images containing the chessboard must be captured using the Grab chessboard button of the graphical user interface. Then the application will calibrate the intrinsic camera parameters when the button Calibrate is pressed.
Definition in file cameraCalibrator.cpp.