ModelColorTol Property

Runtime Only

Applies To
Vision Objects: ColorMatch, ImageOp

Description
Gets / sets the color tolerance of a model.

Usage

VGet  Sequence.Object.ModelColorTol, var
VSet  Sequence.Object.ModelColorTol, value
Sequence
Name of a sequence or string variable containing a sequence name.
Object
Name of an object or string variable containing an object name
.
The object must exist in the specified sequence.
var
Long variable that will contain the value of the property.
value
Long expression that will contain the new value of the property.

Values
The color tolerance of the model. The value depends on the ColorMode setting.

If ColorMode = RGB, then the tolerance is a long value from 0–442. For RGB, the tolerance is the radius for a color circle where the red, green, and blue values of the ModelColor are at the center of the circle.

The default is 0 for ColorMatch and 10 for ImageOp ColorFilter.

If ColorMode = HSV, then the tolerance is in the format &Hhhssvv, where hh is the hue tolerance from 0–180, ss is the saturation tolerance from 0–255, and vv is the value tolerance from 0–255.

The default is 50 (0,0,50).

Remarks
The ModelColorTol property is used to set the color tolerance of a model at runtime.

See Also
ImageOp Object, ColorMatch Object, ModelColor Property