NI Vision for LabVIEW

IMAQ Get Camera Parameters VI

  • Updated2023-02-21
  • 5 minute(s) read
Owning Palette: Calibration
Requires: NI Vision Development Module

Returns the internal and external paramters of the learned camera model.

Supported Image Types

8-bit unsigned grayscale 16-bit unsigned grayscale 32-bit RGB 16-bit signed grayscale floating point grayscale 32-bit HSL

IMAQ Get Camera Parameters

cgenclasstagrefflat.gif

Calibration Template Image is a reference to the image containing calibration information.

cerrcodeclst.gif

error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

i2ddbl.gif

Projection Matrix indicates the projection matrix, also known as the homography matrix, of the working plane. Refer to the NI Vision Concepts Help for more information about the homography matrix.

igenclasstagrefflat.gif

Calibration Template Image (duplicate) is the reference to the output image.

icclst.gif

Distortion Model Coefficients indicates the learned coefficients of the polynomial model.

ii32.gif

Distortion Model indicates the type of distortion model learned.

None (-1)

No distortion model was learned.

Polynomial (0)

A polynomial distortion model was learned.

Division (1)

A division distortion model was learned.

icclst.gif

Polynomial Coefficients indicates the learned coefficients of the polynomial model.

inclst.gif

Radial Coefficients indicates the learned radial coefficients of the polynomial model.

inclst.gif

Tangential Coefficients indicates the learned tangential coefficients of the polynomial model.

isgl.gif

Division Model kappa indicates the learned kappa coefficient of the division model.

icclst.gif

Internal Parameters indicates the learned focal length and optical center of the camera model.

ibool.gif

Insufficient Data returns TRUE if any of the following conditions are met: the number of different projection planes is fewer than 5, the angle difference of the projection planes is less than 20 degrees, or the lens in use is a telecentric lens.

inclst.gif

Focal Length (pixel) indicates the focal length in pixel units.

Note  Use the following equation to obtain the focal length in real-world units: focal length in millimeters = focal length in pixels x pixel size in millimeters. Refer to your camera documentation to obtain the pixel size.
isgl.gif

fx indicates focal length in x direction.

isgl.gif

fy indicates focal length in y direction.

inclst.gif

Optical Center (pixel) indicates optical center in image.

isgl.gif

cx indicates the x resolution of the optical center.

isgl.gif

cy indicates the y resolution of the optical center.

ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

Log in to get a better experience