LearnCalibrationGrid Method

NI Vision for Visual Basic

LearnCalibrationGrid Method

Syntax

CWIMAQVision.LearnCalibrationGrid ImageToCalibrate, CalibrationGridOptions, LearnCalibrationOptions, QualityScore [, Regions]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Learns a calibration from an image of a grid of circles.

Remarks

Use this method with U8 and I16 images.

Parameters

ImageToCalibrate As CWIMAQImage

The template used for calibrating your system.

CalibrationGridOptions As CWIMAQCalibrationGridOptions

Specifies information about the calibration grid image.

LearnCalibrationOptions As CWIMAQLearnCalibrationOptions

Contains the settings used to determine how the algorithm calibrates your imaging setup.

QualityScore As Single

Quality score of the learning process, with a range of 0-1000. A quality of 1000 means that the feature points were well-learned by the chosen algorithm. The score does not necessarily reflect the absolute accuracy of the estimated calibration mapping.

Regions As Variant

[Optional] Determines the region of the image you want to use in the learning process. All circles in the grid that are outside the defined region are not used when estimating the calibration transformation.

Example

Perspective Calibration Example
Nonlinear Calibration Example

See Also

CWIMAQVision.LearnCalibrationPoints

CWIMAQVision.SetSimpleCalibration