You are here: Start » FIL.NET » FIS.CalibrateCamera_Pinhole Method
FIS.CalibrateCamera_Pinhole Method
Finds the camera intrinsic parameters from calibration grids. Uses pinhole camera model (perspective camera).
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void CalibrateCamera_Pinhole ( IList<IList<FilNet.AnnotatedPoint2D>> inImageGrids, int inImageWidth, int inImageHeight, FilNet.LensDistortionModelType inDistortionType, float inImagePointsStandardDeviation, float? inFocalLength, FilNet.PinholeCameraModel outCameraModel, NullableRef<FilNet.PinholeCameraModel> outCameraModelStdDev, NullableValue<float> outRmsError, NullableRef<List<float>> outMaxReprojectionErrors, NullableRef<List<List<FilNet.Segment2D>>> outReprojectionErrorSegments )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImageGrids | System.Collections.Generic.IList<System.Collections.Generic.IList<FilNet.AnnotatedPoint2D>> | For each view, the annotated calibration grid. | ||
![]() | inImageWidth | int | <1, INF> | Image width, used for initial estimation of principal point. | |
![]() | inImageHeight | int | <1, INF> | Image height, used for initial estimation of principal point. | |
![]() | inDistortionType | FilNet.LensDistortionModelType | Polynomial | Lens distortion model. Default value: Polynomial. | |
![]() | inImagePointsStandardDeviation | float | <0.0f, INF> | 0.1f | Assumed uncertainty of inImagePoints. Used for robust optimization and outCameraModelStdDev estimation. Default value: 0.1f. |
![]() | inFocalLength | 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: ftl::NIL. | ||
![]() | outCameraModel | FilNet.PinholeCameraModel | |||
![]() | outCameraModelStdDev | FilNet.NullableRef<FilNet.PinholeCameraModel> | Standard deviations of all model parameters, assuming that inImagePoints positions have a standard deviation equal to inImagePointsStandardDeviation. Can be null to skip this parameter calculation. | ||
![]() | outRmsError | FilNet.NullableValue<float> | Final reprojection RMS error, in pixels. Can be null to skip this parameter calculation. | ||
![]() | outMaxReprojectionErrors | FilNet.NullableRef<System.Collections.Generic.List<float>> | For each view: the maximum reprojection error among all points. Can be null to skip this parameter calculation. | ||
![]() | outReprojectionErrorSegments | FilNet.NullableRef<System.Collections.Generic.List<System.Collections.Generic.List<FilNet.Segment2D>>> | For each view: array of segments connecting input image points to grid reprojections. Can be null to skip this parameter calculation. |
Function Overrides
- CalibrateCamera_Pinhole(IList<IList<AnnotatedPoint2D>>, Int32, Int32, LensDistortionModelType, Single, PinholeCameraModel)
- CalibrateCamera_Pinhole(IList<IList<AnnotatedPoint2D>>, Int32, Int32, LensDistortionModelType, Single, Nullable<Single>, PinholeCameraModel)
- CalibrateCamera_Pinhole(IList<IList<AnnotatedPoint2D>>, Int32, Int32, LensDistortionModelType, Single, Nullable<Single>, PinholeCameraModel, PinholeCameraModel, Single, IList<Single>, IList<List<Segment2D>>)