Table Of Contents

Setup Learn Color Pattern (G Dataflow)

Last Modified: June 25, 2019

Sets parameters that are used during the color learning stage.

Run this node before using the Learn Color Pattern node.

connector_pane_image
datatype_icon

learn mode

Invariance mode to use when learning the template pattern.

Name Value Description
All 0

Extracts information for shift and rotation invariant matching.

Shift Information 1

(Default) Extracts information for shift invariant matching.

Rotation Information 2

Extracts information for rotation invariant matching.

datatype_icon

feature mode

Color feature mode to use when setting up a color learn pattern.

Name Value Description
Color and Shape 0

(Default) Extracts information for distinguishing color and shape features of the template in the matching phase.

Color 1

Extracts information for distinguishing color features of the template in the matching phase.

Shape 2

Extracts information for distinguishing shape features of the template in the matching phase.

datatype_icon

ignore black and white

Input that specifies if black or white colors are excluded from the color features of the template image.

Any color excluded during the learning process is also ignored from the template in the match phase.

Name Value Description
Disabled 0

(Default) Black and white pixels are included during the matching phase.

Ignore Back 1

Black pixels are ignored during the matching phase.

Ignore White 2

White pixels are ignored during the matching phase.

Ignore Black and White 3

Black and white pixels are ignored during the matching phase.

datatype_icon

saturation threshold

Threshold used to distinguish between two colors having the same hue values.

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

ignore color spectra

Array of color spectra providing a set of colors to exclude from the color features of the template image.

Each color to ignore is the dominant color of a color spectrum. Any color excluded during the learning phase is also ignored in the template during the matching phase. The dominant color chosen is based on the color sensitivity set in the Setup Match Color Pattern node. To make color spectra, use the Learn Color node and set color sensitivity to High.

datatype_icon

learn color pattern setup data

String that contains information about the setup parameters selected for the learning phase.

Connect this output to the Learn Color Pattern 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