IMAQ Setup Learn Color Pattern VI

LabView NI Vision

IMAQ Setup Learn Color Pattern VI

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

Sets parameters that are used during the color learning stage. Run this VI before using the IMAQ Learn Color Pattern VI.

Examples

IMAQ Setup Learn Color Pattern

c2ddbl.gif

Ignore Color Spectra is an 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.

Note  The dominant color chosen is based on the Color Sensitivity set in the IMAQ Setup Match Color Pattern VI.
Note  To make color spectra, use the IMAQ ColorLearn VI and set Color Sensitivity to High.
cu32.gif

Learn Mode specifies the invariance mode to use when learning the template pattern. Choose from the following values:

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.

cu32.gif

Feature Mode specifies the color feature mode to use when setting up a color learn pattern. Choose from the following values:

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.

cu32.gif

Ignore Black and White specifies whether 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. Choose from the following values:

Disabled (0)

(Default) Specifies that black and white pixels are not ignored during the matching phase.

Ignore Black (1)

Specifies that black pixels are ignored during the matching phase.

Ignore White (2)

Specifies that white pixels are ignored during the matching phase.

Ignore Black and White (3)

Specifies that black and white pixels are ignored during the matching phase.

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.

ci32.gif

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

istr.gif

Learn Color Pattern Setup Data is a string that contains information about the setup parameters selected for the learning phase. Connect this output to the IMAQ Learn Color Pattern VI.

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.

Examples

Refer to the following for an example that uses this VI.

  • LabVIEW\examples\Vision\2. Functions\Color Pattern Matching\Color Pattern Matching Example.llb