ThresholdColor Property
Applies To
Vision Objects: Blob, Contour, ImageOp
Description
Sets or returns the color of the pixels whose gray values fall between the ThresholdHigh and ThresholdLow properties.
Usage
VGet Sequence.Object.ThresholdColor, var
VSet Sequence.Object.ThresholdColor, 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
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
- 1 - Black
- Vision constant: VISION_THRESHCOLOR_BLACK
- Black
- 2 - White
- Vision constant: VISION_THRESHCOLOR_WHITE
- White
Default: 1 - Black
Remarks
The ThresholdColor property defines the color of the pixels whose gray values are between the ThresholdHigh and ThresholdLow properties during binarization. For example, when ThresholdColor = Black, ThresholdLow = 50 and ThresholdHigh = 100, then pixels whose gray values are between 50 and 100 will be set to black during binarization. All other pixels will be white.
See Also
Blob Object, Contour Object, ImageOp Object, Polarity Property, ThresholdHigh, ThresholdLow Property