You are here: Start » AVL.NET » AVL.CalibrateCamera(AvlNet.Point3D[][], AvlNet.Point2D[][], int, int, bool, bool, bool, AvlNet.Matrix, AvlNet.LensDistortion, AvlNet.Position3D[], float)

AVL.CalibrateCamera(AvlNet.Point3D[][], AvlNet.Point2D[][], int, int, bool, bool, bool, AvlNet.Matrix, AvlNet.LensDistortion, AvlNet.Position3D[], float)

Finds the camera intrinsic and extrinsic parameters from the input arrays of image and real-world coordinates.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CalibrateCamera(
	AvlNet.Point3D[][] inObjectPoints,
	AvlNet.Point2D[][] inImagePoints,
	int inImageWidth,
	int inImageHeight,
	bool inFixPrincipalPoint,
	bool inFixAspectRatio,
	bool inZeroTangentDist,
	out AvlNet.Matrix outCameraMatrix,
	out AvlNet.LensDistortion outDistortion,
	out AvlNet.Position3D[] outCameraPositions,
	out float outError
)

Parameters

inObjectPoints
Type: AvlNet.Point3D
Array, for each view: array of 3D points of the calibration pattern.
inImagePoints
Type: AvlNet.Point2D
Array, for each view: array of corresponding 2D points in the picture.
inImageWidth
Type: System.Int32
Image width, only used to initialize camera matrix, not used when inInitialCameraMatrix present.
inImageHeight
Type: System.Int32
Image height, only used to initialize camera matrix, not used when inInitialCameraMatrix present.
inFixPrincipalPoint
Type: System.Boolean
The principal point is not changed during the global optimization. It stays in the center of the image, or as in the initial camera matrix.
inFixAspectRatio
Type: System.Boolean
The functions considers only fy as a free parameter. The ratio fx/fy stays 1, or as in the initial camera matrix.
inZeroTangentDist
Type: System.Boolean
Tangential distortion coefficients (p_1, p_2) are assumed zero.
outCameraMatrix
Type: AvlNet.Matrix
outDistortion
Type: AvlNet.LensDistortion
outCameraPositions
Type: AvlNet.Position3D
outError
Type: System.Single

Remarks

See full override for more details.

See also