Threshold Property

NI Vision for Visual Basic

Threshold Property

Syntax

CWMVCountAndMeasureObjectsOptions.Threshold

Data Type

Single

Purpose

Grayscale intensity that is used as the threshold level. The default is 128.

Remarks

When a Bright Objects type is selected, the threshold range used includes Threshold to the maximum possible intensity, depending on the image type (255 for a 8-bit image). When a Dark Objects type is selected, the threshold range used includes the minimum possible intensity, depending on the image type (0 for a 8-bit image) up to Threshold.