IMAQ Learn Multiple Geometric Patterns VI

LabView NI Vision

IMAQ Learn Multiple Geometric Patterns VI

Owning Palette: Searching and MatchingInstalled With: NI Vision Development Module

Combines the descriptions of the patterns you want to search for during the matching phase into a multiple geometric template. Use the multiple geometric template to search for these template images in the target image.

Details

IMAQ Learn Multiple Geometric Patterns

c1dgenclasstagrefflat.gif

Template Images is an array of template images you want to search for in the target image.

c1dstr.gif

Template Labels is an array of labels that identify the template images specified in Template Images. Each label in the array identifies the template at the corresponding index in the Template Images array.

c1dcclst.gif

Default Match Options are the match options that are used to search for the template images in the target image during the match phase. The options get associated with the templates in the following manner.

  • If you pass an empty array, the algorithm uses an empty string for the Match Setup Data, 1 for Number of Templates, and 800 for the Minimum Match Score.
  • If you pass an array of one element, the algorithm uses the value of this element to match all the templates.
  • If you pass as many elements in this array as there are geometric templates, then the algorithm makes a one to one correspondence between the elements of the array and the geometric templates.
  • Passing any other number of elements in the array results in an error.
Note  You can override the match options specified in this VI during the match phase by passing new values to the Match Options control on the IMAQ Match Multiple Geometric Patterns VI.
cstr.gif

Match Setup Data is a string that contains information from the IMAQ Setup Match Geometric Pattern VI or the IMAQ Advanced Setup Match Geometric Pattern VI. Set this value to an empty string if you want to use default parameters for all options.

ci32.gif

Number of Matches is the number of valid matches expected.

csgl.gif

Minimum Match Score is the smallest score a match can have to be considered valid. The data range for a match is between 0 and 1000.

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.

irn.gif

Multiple Template (out) is a reference to the new multiple geometric template.

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.

Details

Use one of the following methods to configure the template image for use with this VI.

  • Use the IMAQ Read Image And Vision Info VI to load a template image that was created previously using the NI Vision Template Editor.
    Note  You can access the NI Vision Template Editor from Start»All Programs»National Instruments»Vision»Template Editor.
  • Use the IMAQ Learn Geometric Pattern VI to learn the template image.