IMAQ Compare Golden Template VI

LabView NI Vision

IMAQ Compare Golden Template VI

Owning Palette: InspectionInstalled With: NI Vision Development Module

Compares an image to a template image at a given alignment.

IMAQ Compare Golden Template

ccclst.gif

Alignment specifies the area within the image that is compared to the golden template.

cnclst.gif

Position is the location of the center of the golden template in the image under inspection.

csgl.gif

Angle is the rotation of the golden template in the image under inspection, in degrees.

csgl.gif

Scale is the percentage of the size of the area under inspection compared to the size of the golden template.

cgenclasstagrefflat.gif

Image is a reference to the image to compare to the golden template. If neither Bright (or Both) Defect Image Dst Out or Dark Defect Image Dst Out is connected, Image is used as the destination image for both bright and dark defects.

cgenclasstagrefflat.gif

Template Image is a reference to the golden template image to compare against the image.

ccclst.gif

Inspection Options is a cluster specifying the golden template comparison.

cu32.gif

Registration Method specifies whether the VI registers the golden template to the image.

cu32.gif

Normalization Method specifies how the VI normalizes the golden template to the image. The following values are valid:

None (0)

Specifies no normalization.

Histogram (1)

Specifies that the histogram of the image is normalized to match the histogram of the template image.

Average Matching (2)

Specifies that the mean pixel value of the image is normalized to match the mean pixel value of the template image.

ci32.gif

Edge Thickness to Ignore specifies desired thickness of edges to be ignored. A value of 0 specifies that the algorithm will not ignore edges.

csgl.gif

Bright Threshold specifies the threshold for regions where the image is brighter than the golden template. Pixels that exceed the specified threshold value are assigned a pixel value of 2 in the Bright (or Both) Defect Image Dst Out image.

csgl.gif

Dark Threshold specifies the threshold for regions where the image is darker than the golden template. Pixels that exceed the specified threshold value are assigned a pixel value of 1 in the Dark Defect Image Dst Out or Bright (or Both) Defect Image Dst Out image.

cbool.gif

Grayscale/ Binary? specifies how you want to return the result of the golden template comparison. Choose from the following values:

  • Grayscale—Returns the grayscale image that results from subtracting the golden template image from the inspection image. If you select to return a grayscale image, values specified for Bright Threshold and/or Dark Threshold are ignored.
  • Binary—Returns the binary image that results from subtracting the golden template image from the inspection image, then thresholding the image according to the values specified by Bright Threshold and Dark Threshold.
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.

cgenclasstagrefflat.gif

Bright (or Both) Defect Image Dst is a reference to the destination image for bright defects, or both kinds of defects if the same image is also connected to Dark Defect Image Dst.

cgenclasstagrefflat.gif

Dark Defect Image Dst is a reference to the destination image for dark defects.

igenclasstagrefflat.gif

Bright (or Both) Defect Image Dst Out is a reference to the destination image for bright defects, or both kinds of defects if the same image is also connected to Dark Defect Image Dst.

igenclasstagrefflat.gif

Dark Defect Image Dst Out is a reference to the destination image for dark defects.

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.