AddColorInformation Method

NI Vision for Visual Basic

AddColorInformation Method

Syntax

CWIMAQIgnoreColorSpectra.AddColorInformation ColorInformation

Purpose

Adds color information learned using CWIMAQVision.LearnColor.

Remarks

The dominant color from the color spectrum is ignored while learning the color template image.

Parameters

ColorInformation As CWIMAQColorInformation

The color information to add.

Example

Dim LearnOptions As New CWIMAQLearnColorPatternOptions
Dim ColorInformation As New CWIMAQColorInformation

'Obtain the ColorInformation by using CWIMAQVision.LearnColor here

'The color learned by LearnColor is ignored by LearnColorPattern and MatchColorPattern
LearnOptions.IgnoreColorSpectra.AddColorInformation ColorInformation

See Also

CWIMAQVision.LearnColor

Empty