GenerateCalibrationPoints
Generates artificial points for camera calibration. Doesn't support distortion.
Applications:Calibration testing.
Syntax
C++
C#
Python
def GenerateCalibrationPoints( inImageSize: Size, /, *, inPointsX: int = 10, inPointsY: int = 10, inWorldPointSpacing: float = 1.0, inPlaneRotationAxis: Vector3D = Vector3D(0.0, 0.0, 1.0), inPlaneRotationAngle: float = 0.0, inPlaneTranslation: Vector3D = Vector3D(0.0, 0.0, 10.0), inCameraType: CameraModelType = CameraModelType.PinholeCameraModel, inFocalLengthOrMagnificationX: float = 100.0, inFocalLengthOrMagnificationY: float | None = None, inPrincipalPoint: Point2D | None = None ) -> ( outImageGrid: list[AnnotatedPoint2D], outWorldPoints: list[Point2D] )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPointsX | int | 10 | Number of points in X direction on the calibration plane. |
![]() |
inPointsY | int | 10 | Number of points in Y direction on the calibration plane. |
![]() |
inWorldPointSpacing | float | 1.0 | Distances between consecutive points on the calibration plane. |
![]() |
inPlaneRotationAxis | Vector3D | Vector3D(0.0, 0.0, 1.0) | Calibration plane rotation axis. |
![]() |
inPlaneRotationAngle | float | 0.0 | Calibration plane rotation angle. |
![]() |
inPlaneTranslation | Vector3D | Vector3D(0.0, 0.0, 10.0) | Calibration plane translation (applied after rotation). |
![]() |
inCameraType | CameraModelType | CameraModelType.PinholeCameraModel | Calibration camera model (pinhole, telecentric or line scan) |
![]() |
inFocalLengthOrMagnificationX | float | 100.0 | |
![]() |
inFocalLengthOrMagnificationY | float | None | None | |
![]() |
inPrincipalPoint | Point2D | None | None | By default is on the center of output image |
![]() |
inImageSize | Size | The size of image that artificial camera captures | |
![]() |
outImageGrid | list[AnnotatedPoint2D] | ||
![]() |
outWorldPoints | list[Point2D] |


