ColorScoreWeight Property

NI Vision for Visual Basic

ColorScoreWeight Property

Syntax

CWIMAQMatchColorPatternOptions.ColorScoreWeight

Data Type

Single

Purpose

Percent contribution of the color score to the final color pattern matching score.

Remarks

The control uses the color score weight for the final match ranking. For example, if you use a weight of 1000, the algorithm finds each match by using both color and shape information and then ranks the matches based on their color scores. If the weight is 0, the matches are ranked based on their shape scores. The default is 500, indicating that the match score uses an equal combination of the color and shape scores.