Table Of Contents

Set Preset Match Options (G Dataflow)

Last Modified: August 13, 2019

Sets preset options to Template In.

Predefined match parameters are stored in Template Image and used when the Match Pattern and Match Geometric Pattern nodes are called. Preset Match Options provide high level options to simplify the pattern match algorithm. This node overrides any previously stored parameters in Template In. Note that these parameters are overridden if any Preset-Parameters are set to Template In directly through Match Pattern or Setup Advanced Match Geometric Pattern.

connector_pane_image
datatype_icon

template in

Reference to the template image in which you want to store advanced match options.

datatype_icon

function

The function to be performed.

Name Value Description
Default 0

Clears any Custom and Preset match parameters.

Preset 1

Stores the Preset options selected in Match Preset Options.

datatype_icon

preset match options

Sets a variety of predefined match parameters to Template In. The stored match parameters will be used when Match Pattern and Match Geometric Pattern are called.

datatype_icon

use case

The Match requirements.

Name Value Description
Overlapping 0 Uses Advanced Options appropriate for match image that contain overlapping objects.
Low Contrast 1 Uses Advanced Options appropriate for match image which have low contrast.
Large Template 2 Uses Advanced Options appropriate for templates with large dimensions.
Screenshot 3 Uses advanced options appropriate for screenshots or screen captures that are pixel accurate in resolution (they are not captured via a camera) and usually have templates with small dimensions. The match algorithm used should be Grayscale Value Pyramid or Low Discrepancy Sampling when the Screenshot Preset is selected.
datatype_icon

Priority

The relative priority of Match Accuracy and Match Speed.

  • 0 - Accurate. Uses Advanced Options that give a higher priority to Match Accuracy than Match Speed.
  • 1 - Fast. Uses Advanced Options that gives equal priority to Match Accuracy and Match Speed.
  • 2 - Very Fast. Uses Advanced Options that gives a higher priority to Match Speed than Match Accuracy.
datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

template out

Reference to the template. This template image contains the advanced match options set by the node.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics