Estimates intrinsic camera parameters and extrinsic parameters for each of the views

C# | Visual Basic | Visual C++ |
public static void cvCalibrateCamera2( IntPtr object_points, IntPtr image_points, IntPtr point_counts, MCvSize image_size, IntPtr intrinsic_matrix, IntPtr distortion_coeffs, IntPtr rotation_vectors, IntPtr translation_vectors, int flags )

- object_points (IntPtr)
- The joint matrix of object points, 3xN or Nx3, where N is the total number of points in all views
- image_points (IntPtr)
- The joint matrix of corresponding image points, 2xN or Nx2, where N is the total number of points in all views
- point_counts (IntPtr)
- Vector containing numbers of points in each particular view, 1xM or Mx1, where M is the number of a scene views
- image_size (MCvSize)
- Size of the image, used only to initialize intrinsic camera matrix
- intrinsic_matrix (IntPtr)
- The output camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]. If CV_CALIB_USE_INTRINSIC_GUESS and/or CV_CALIB_FIX_ASPECT_RATION are specified, some or all of fx, fy, cx, cy must be initialized
- distortion_coeffs (IntPtr)
- The output 4x1 or 1x4 vector of distortion coefficients [k1, k2, p1, p2]
- rotation_vectors (IntPtr)
- The output 3xM or Mx3 array of rotation vectors (compact representation of rotation matrices, see cvRodrigues2).
- translation_vectors (IntPtr)
- The output 3xM or Mx3 array of translation vectors
- flags (Int32)
- Different flags