IMAQ Set Simple Calibration VI

LabView NI Vision

IMAQ Set Simple Calibration VI

Owning Palette: CalibrationInstalled With: NI Vision Development Module

Sets a simple calibration for an image or resets the real-world coordinate system in a calibrated image. When used to reset a coordinate system, if the correction table is still required, the table must be relearned. When Angle Relative to Horizontal is set to 0, you do not need to make a correction.

IMAQ Set Simple Calibration

cu32.gif

Corrected Image Scaling defines the scaling to be used in the corrected image. If the image has been calibrated previously, using the IMAQ Learn Calibration Template VI, this input is ignored and the previously defined scaling is used. This is an optional input.

Scale to Preserve Area (0)

The corrected image is scaled such that the features in the image have the same size as the input image.

Scale to Fit (1)

The corrected image is scaled to be the same size as the input image.

cgenclasstagrefflat.gif

Image is a reference to the uncalibrated image.

cnclst.gif

Grid Descriptor contains information about a grid image that is used to learn the calibration. If the image has been calibrated previously, using the IMAQ Learn Calibration Template VI, this input is ignored and the previously defined grid descriptor is used. This is an optional input. This input contains the following information:

csgl.gif

X Step is the width of a pixel in real-world units.

csgl.gif

Y Step is the height of a pixel in real-world units.

cenum.gif

Unit is the unit for X Step and Y Step. The following options are valid:

Undefined (0)

Units are undefined.

Angstrom (1)

Units are measured in angstroms.

Micrometer (2)

Units are measured in micrometers.

Millimeter (3)

Units are measured in millimeters.

Centimeter (4)

Units are measured in centimeters.

Meter (5)

Units are measured in meters.

Kilometer (6)

Units are measured in kilometers.

Microinch (7)

Units are measured in microinches.

Inch (8)

Units are measured in inches.

Feet (9)

Units are measured in feet.

Nautical miles (10)

Units are measured in nautical miles.

Standard miles (11)

Units are measured in standard miles.

Steps (12)

Units are measured in steps.

ccclst.gif

Calibration Axis Info defines a Reference Coordinate System for the real-world coordinates. For an image that has already been calibrated, this axis information overrides the old axis information.

cnclst.gif

Origin Pixel is the origin of the reference coordinate system, expressed in pixel units.

csgl.gif

Angle Relative to Horizontal (deg) is the angle of the x-axis of the real-world coordinate system, in relation to the horizontal. The horizontal is expressed by a row of circle centers.

cu32.gif

Axis Reference is defined as Direct or Indirect. Refer to Axis Type for more 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.

cbool.gif

Learn Correction Table? is a Boolean input. If TRUE, the correction table is processed and stored. The correction table accelerates the process of correcting an image. It is useful if several images are going to be corrected. If the current operation is resetting the real-world coordinate system, or if the correction table is still required, the correction table will be relearned.

igenclasstagrefflat.gif

Calibrated Image is the reference to the output image. This image contains the learned calibration information. Use this image to propagate the calibration information through your application.

The calibration information is associated with the image until the image is resized or disposed of. Use the IMAQ Write Image And Vision Info VI to save the calibration information to disk with the image. You can use the IMAQ Read Image And Vision InfoVI to retrieve the calibration information.

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.