You are here: Start » FIL.NET » Invoke.CalibrateCamera_LineScan

Invoke.CalibrateCamera_LineScan

Finds the line scan camera intrinsic parameters from calibration grid.

Namespace:Fil
Assembly:FilNet.dll

Syntax

C++
C#
 
public static void CalibrateCamera_LineScan
(
	List<Fil.AnnotatedPoint2D> inImageGrid,
	float inGridSpacing,
	int inImageWidth,
	Fil.LensDistortionModelType inDistortionType,
	float inImagePointsStandardDeviation,
	Optional<float> inFocalLength,
	Fil.LineScanCameraModel outCameraModel,
	out float outApproxScaleRatio,
	Optional<float> outRmsError,
	Optional<float> outMaxReprojectionError,
	Optional<List<Fil.Segment2D>> outReprojectionErrorSegments
)

Parameters

Name Type Range Default Description
inImageGridSystem.Collections.Generic.List<Fil.AnnotatedPoint2D>Annotated calibration grid.
inGridSpacingfloat<0.000001f, INF>Real-world distance between adjacent grid points.
inImageWidthint<1, INF>Image width, used for initial estimation of principal point.
inDistortionTypeFil.LensDistortionModelTypePolynomialLens distortion model. Default value: Polynomial.
inImagePointsStandardDeviationfloat<0.0f, INF>0.1fAssumed uncertainty of inImagePoints. Used for robust optimization. Default value: 0.1f.
inFocalLengthFtl.Optional<float>Specify a fixed focal length, 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: ftl::NIL.
outCameraModelFil.LineScanCameraModel
outApproxScaleRatiofloatApproximate scale ratio between Y and X. Useful for camera/encoder trigger rate configuration. When greater than 1, the image is stretched in Y dimension, when less than 1 it is compressed.
outRmsErrorFtl.Optional<float>Final reprojection RMS error, in pixels.
outMaxReprojectionErrorFtl.Optional<float>Maximum reprojection error among all points.
outReprojectionErrorSegmentsFtl.Optional<System.Collections.Generic.List<Fil.Segment2D>>Array of segments connecting input image points to grid reprojections.

See also