Back to Adaptive Vision Library website
You are here: Start » Function Reference » Camera Calibration » GenerateCalibrationPoints
GenerateCalibrationPoints
Header: | AVL.h |
---|---|
Namespace: | avl |
Generates artificial points for camera calibration. Doesn't support distortion.
Syntax
C++
C#
void avl::GenerateCalibrationPoints ( int inPointsX, int inPointsY, float inWorldPointSpacing, const avl::Vector3D& inPlaneRotationAxis, float inPlaneRotationAngle, const avl::Vector3D& inPlaneTranslation, avl::CameraModelType::Type inCameraType, float inFocalLengthOrMagnificationX, atl::Optional<float> inFocalLengthOrMagnificationY, atl::Optional<avl::Point2D> inPrincipalPoint, const avl::Size& inImageSize, atl::Array<avl::AnnotatedPoint2D>& outImageGrid, atl::Array<avl::Point2D>& outWorldPoints )
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.0f | Distances between consecutive points on the calibration plane. | |
inPlaneRotationAxis | const Vector3D& | (DeltaX: 0.0, DeltaY: 0.0, DeltaZ: 1.0) | Calibration plane rotation axis. | |
inPlaneRotationAngle | float | 0.0f | Calibration plane rotation angle. | |
inPlaneTranslation | const Vector3D& | (DeltaX: 0.0, DeltaY: 0.0, DeltaZ: 10.0) | Calibration plane translation (applied after rotation). | |
inCameraType | CameraModelType::Type | PinholeCameraModel | Calibration camera model (pinhole or telecentric) | |
inFocalLengthOrMagnificationX | float | 100.0f | ||
inFocalLengthOrMagnificationY | Optional<float> | NIL | ||
inPrincipalPoint | Optional<Point2D> | NIL | By default is on the center of output image | |
inImageSize | const Size& | (Width: 640, Height: 480) | The size of image that artificial camera captures | |
outImageGrid | Array<AnnotatedPoint2D>& | |||
outWorldPoints | Array<Point2D>& |