Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

question about CalibrateCamera2

tang1102
Beginner
413 Views
I find some problem of CalibrateCamera2(), I think the coordinates of 3D object points CvMat* object_points and their correspondent 2D projections CvMat* image_points isn't correspondent. If I set the CvMat* object_points correspondent to CvMat* image_points the result is wrong, could you give me some more information about this function,e.g. the coordinate system of image and object applied in this fuction or the right correspondent sample of CvMat* object_points and CvMat* image_points.
0 Kudos
1 Reply
Intel_C_Intel
Employee
413 Views

Actually, here I just rephrase what's writtein in the OpenCV reference manual. object_points is array of the feature points of the calibration patern in the pattern coordinate space. The array is duplicated as many times, as the number of the pattern views captured. For example, if the pattern is planar, such as the checkerboard, X and Y axes are usually set parallel to the board sides with the coordinate origin at one of the board corners, and Z axis is orthogonal to the board plane. In this case object_points is{(X_k,Y_k)=(square_size*(k mod ), square_size*(k / )}. image_points is the projection of the object_points to the image view. It should be retrieved using a specialized algorithm, such as cvFindChessboardCorners. There is see opencv/tests/cv/src/acameracalibration.cpp, opencv/filters/calibfilter/calibfilter.cpp and opencv/cvaux/src/cvcalibfilter.cpp for examples how to use cvCalibrateCamera2. There will be also a simple example added to opencv/samples/c/ that wil demonstrate the function use.

0 Kudos
Reply