Computes projections of 3D points to the image plane given intrinsic and extrinsic camera parameters.
Optionally, the function computes jacobians - matrices of partial derivatives of image points as functions of all the input parameters w.r.t. the particular parameters, intrinsic and/or extrinsic.
The jacobians are used during the global optimization in cvCalibrateCamera2 and cvFindExtrinsicCameraParams2.
The function itself is also used to compute back-projection error for with current intrinsic and extrinsic parameters.

C# | Visual Basic | Visual C++ |
public static Point2D<float>[] ProjectPoints2( Point3D<float>[] objectPoints, ExtrinsicCameraParameters extrin, IntrinsicCameraParameters intrin, params Matrix<float>[] mats )
Public Shared Function ProjectPoints2 ( _ objectPoints As Point3D(Of Single)(), _ extrin As ExtrinsicCameraParameters, _ intrin As IntrinsicCameraParameters, _ ParamArray mats As Matrix(Of Single)() _ ) As Point2D(Of Single)()
public: static array<Point2D<float>^>^ ProjectPoints2( array<Point3D<float>^>^ objectPoints, ExtrinsicCameraParameters^ extrin, IntrinsicCameraParameters^ intrin, ... array<Matrix<float>^>^ mats )

- objectPoints (array< Point3D<(Of <(Single>)>) >[]()[])
- The array of object points, 3xN or Nx3, where N is the number of points in the view
- extrin (ExtrinsicCameraParameters)
- extrinsic parameters
- intrin (IntrinsicCameraParameters)
- intrinsic parameters

The array of image points which is the projection of objectPoints

Note, that with intrinsic and/or extrinsic parameters set to special values, the function can be used to compute just extrinsic transformation or just intrinsic transformation (i.e. distortion of a sparse set of points)