ThresholdLevel Property

Applies To
Vision Objects: Blob, Contour, ImageOp

Description
Sets or reurns the level at which a pixel is set to black in percentage from the mean surrounding pixel intensities.

Usage

VGet  Sequence.Object.ThresholdLevel, var
VSet  Sequence.Object.ThresholdLevel, 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
0 to 30%

Default: 15%

Remarks
ThresholdLevel is a percentage of the neighborhood mean intensity.

The size of the neighborhood is set by the ThresholdBlockSize property. A pixel is set to “0” if its intensity is below its neighborhood mean intensity by this percentage, and set to “255” if its intensity is above its neighborhood mean intensity by this percentage.

This parameter can be adjust between 0 to 30%. When the difference of intensity between the object and neighboring pixels is large, increase the value of the ThresholdLevel property to binarize the object image properly.

See Also
Blob Object, Contour Object, ImageOp Object, ThresholdBlockSize Property