IMAQ Find Pattern 4 VI
- Updated2023-02-21
- 10 minute(s) read
Requires: NI Vision Development Module
Searches for a template image in a rectangular search area of the image.
Supported Image Types

![]() |
Template is a reference to the image to locate during the match process. The template image is the image obtained from the output of the IMAQ Learn Pattern 5 VI. If the template has not been learned, this VI first goes through the learning process. |
||||||||||||||||||||||||
![]() |
Image is a reference to the source image. |
||||||||||||||||||||||||
![]() |
Search Rect specifies a rectangular search area in an image. The Left, Top, Right, and Bottom coordinates describe a non-rotated rectangle. The Rotation specifies the rotation angle of the rectangle around its center.
|
||||||||||||||||||||||||
![]() |
Coordinate System specifies the coordinate system to which the Rectangle is linked. If the Coordinate System input is used (connected), the location of the intensity measurement is shifted and rotated by the difference between the reference position of the coordinate system and its new location.
|
||||||||||||||||||||||||
![]() |
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.
|
||||||||||||||||||||||||
![]() |
Settings is a cluster defining the parameters of the template location algorithm and the information that is overlaid on the result image.
|
||||||||||||||||||||||||
![]() |
Elapsed time (ms) returns the duration of the search, in milliseconds. |
||||||||||||||||||||||||
![]() |
Matches is an array of match clusters. Matches returns the following elements:
|
||||||||||||||||||||||||
![]() |
Image Out is a reference to the destination image. The search area and/or the result of the measurement may be overlaid on the image according to the settings. |
||||||||||||||||||||||||
![]() |
Number of Matches is the number of template matches found in the inspection image based on the input settings. |
||||||||||||||||||||||||
![]() |
Coordinate System (duplicate) is a reference to the coordinate system.
|
||||||||||||||||||||||||
![]() |
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.
|





















