You are here: Start » AVL.NET » Invoke.CalibrateCamera_Pinhole

Invoke.CalibrateCamera_Pinhole

Finds the camera intrinsic parameters from calibration grids. Uses pinhole camera model (perspective camera).

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void CalibrateCamera_Pinhole
(
	List<List<Avl.AnnotatedPoint2D>> inImageGrids,
	int inImageWidth,
	int inImageHeight,
	Avl.LensDistortionModelType inDistortionType,
	float inImagePointsStandardDeviation,
	Optional<float> inFocalLength,
	Avl.PinholeCameraModel outCameraModel,
	Optional<Avl.PinholeCameraModel> outCameraModelStdDev,
	Optional<float> outRmsError,
	Optional<List<float>> outMaxReprojectionErrors,
	Optional<List<List<Avl.Segment2D>>> outReprojectionErrorSegments
)

Parameters

Name Type Range Default Description
inImageGridsSystem.Collections.Generic.List<System.Collections.Generic.List<Avl.AnnotatedPoint2D>>For each view, the annotated calibration grid.
inImageWidthint<1, INF>Image width, used for initial estimation of principal point.
inImageHeightint<1, INF>Image height, used for initial estimation of principal point.
inDistortionTypeAvl.LensDistortionModelTypePolynomialLens distortion model. Default value: Polynomial.
inImagePointsStandardDeviationfloat<0.0f, INF>0.1fAssumed uncertainty of inImagePoints. Used for robust optimization and outCameraModelStdDev estimation. Default value: 0.1f.
inFocalLengthAtl.Optional<float>Specify a fixed focal length (do not estimate), in pixels. In order to calculate the inFocalLength from camera parameters one needs to divide the lens focal length [mm] by sensor pitch [mm/pix]. Default value: atl::NIL.
outCameraModelAvl.PinholeCameraModel
outCameraModelStdDevAtl.Optional<Avl.PinholeCameraModel>Standard deviations of all model parameters, assuming that inImagePoints positions have a standard deviation equal to inImagePointsStandardDeviation.
outRmsErrorAtl.Optional<float>Final reprojection RMS error, in pixels.
outMaxReprojectionErrorsAtl.Optional<System.Collections.Generic.List<float>>For each view: the maximum reprojection error among all points.
outReprojectionErrorSegmentsAtl.Optional<System.Collections.Generic.List<System.Collections.Generic.List<Avl.Segment2D>>>For each view: array of segments connecting input image points to grid reprojections.

See also