PARP Research Group Universidad de Murcia


examples/OpenCV/cameraCalibrator/cameraCalibrator.cpp File Reference

Obtains intrinsic camera matrix and distortion coefficients for a camera. More...

#include <iostream>
#include <fstream>
#include <QVMatrix>
#include <QVApplication>
#include <QVImageCanvas>
#include <QVVideoReaderBlock>
#include <QVDefaultGUI>
#include <qvip.h>
#include <qvimageio.h>
#include <qvprojective.h>

Go to the source code of this file.


Detailed Description

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.

Usage

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.

Parameters:
URL Video source identification string. See section QVMPlayerURLFormat for further info about its format.
Author:
PARP Research Group. University of Murcia, Spain.

Definition in file cameraCalibrator.cpp.




QVision framework. PARP research group. Copyright © 2007, 2008, 2009, 2010, 2011.