четверг, 17 ноября 2011 г.

OpenCV Camera Calibration


Camera calibration is important for any image processing to be a highly accurate representation of the real world. "Geometric entities of the camera, such as the projection centre and image plane, can be computed quite simply from its matrix representation. Specializations of the general projective camera inherit its properties, for example their geometry is computed using the same algebraic expressions."
This algorithm show how to extract the relevant camera parameters from a sequence of images with using of OpenCV library. For this example you will need to print out this image as a full page:


Example Checkerboard


We use cvFindChessboardCorners to find the corners, and then draw them on the image with cvDrawChessboardCorners. "If all the corners are successfully identified, the corners are added to image_points and object_points for later use in calibration. After all the different orientations are successfully stored (orientations are arbitrary but should have a variety of views to solve for the camera parameters), then cvCalibrateCamera2 is used to get the camera parameters.Lastly, cvInitUndistoryMap is used with cvRemap to unwarp the camera images. "

Example of the algorithm

Комментариев нет:

Отправить комментарий