You are here: Start » FIL.NET » 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 | |
---|---|---|---|---|---|
![]() | inImageGrid | System.Collections.Generic.List<Fil.AnnotatedPoint2D> | Annotated calibration grid. | ||
![]() | inGridSpacing | float | <0.000001f, INF> | Real-world distance between adjacent grid points. | |
![]() | inImageWidth | int | <1, INF> | Image width, used for initial estimation of principal point. | |
![]() | inDistortionType | Fil.LensDistortionModelType | Polynomial | Lens distortion model. Default value: Polynomial. | |
![]() | inImagePointsStandardDeviation | float | <0.0f, INF> | 0.1f | Assumed uncertainty of inImagePoints. Used for robust optimization. Default value: 0.1f. |
![]() | inFocalLength | Ftl.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. | ||
![]() | outCameraModel | Fil.LineScanCameraModel | |||
![]() | outApproxScaleRatio | float | Approximate 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. | ||
![]() | outRmsError | Ftl.Optional<float> | Final reprojection RMS error, in pixels. | ||
![]() | outMaxReprojectionError | Ftl.Optional<float> | Maximum reprojection error among all points. | ||
![]() | outReprojectionErrorSegments | Ftl.Optional<System.Collections.Generic.List<Fil.Segment2D>> | Array of segments connecting input image points to grid reprojections. |