IMAQ Match Multiple Geometric Patterns VI
- Updated2023-02-21
- 10 minute(s) read
Requires: NI Vision Development Module
Matches the templates specified in the Multiple Template control to the target image.
Supported Image Types

![]() |
ROI Descriptor is the descriptor of the region of interest specifying the location of the sample in the image. The ROI must be one rectangle or one rotated rectangle. If ROI Descriptor is empty or not connected, the entire image is considered to be the region of interest.
|
||||||||||||||||||||||||
![]() |
Image is a reference to the source image. |
||||||||||||||||||||||||
![]() |
Multiple Template is the reference to the multiple geometric template on which this VI operates. |
||||||||||||||||||||||||
![]() |
Match Options is an array of match options used to override the Default Match Options set using the IMAQ Learn Multiple Geometric Patterns. This array is used with Labels For Match Options to override match options corresponding to one or more templates specified in Multiple Template. This VI uses the following rules to determine which match options are overridden:
|
||||||||||||||||||||||||
![]() |
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.
|
||||||||||||||||||||||||
![]() |
Labels For Match Options is an array of labels that identify the templates for which you want to override the default match options. Refer to the values specified for Match Options to determine which options are overridden. |
||||||||||||||||||||||||
![]() |
Matches (pixel) contains information about a match found in the image.
|
||||||||||||||||||||||||
![]() |
Matched Labels is an array that specifies the template label for corresponding matches in Matches. |
||||||||||||||||||||||||
![]() |
Matches (real-world) contains information about a match found in the image.
|
||||||||||||||||||||||||
![]() |
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.
|
Details
Use one of the following methods to configure multiple geometric templates for use with this VI.
- Use the IMAQ Read Multiple Geometric Template VI to load a multiple geometric template saved using the IMAQ Write Multiple Geometric Template VI.
- Use the IMAQ Learn Multiple Geometric Patterns VI to learn the multiple geometric template.
Examples
Refer to the following for an example that uses this VI.
- LabVIEW\examples\Vision\Geometric Matching\Match Multiple Geometric Patterns.vi






















