CWMVCountAndMeasureObjectsOptions

NI Vision for Visual Basic

CWMVCountAndMeasureObjectsOptions

CWMVCountAndMeasureObjectsOptions contains optional parameters used by the CWMachineVision.CountAndMeasureObjects method. These optional parameters include parameters to the algorithm as well as properties that indicate what overlays to add to the image.

Properties

FillHolesBoolean that specifies if the holes in the binary objects are ignored. The default is False.
IgnoreBorderObjectsBoolean that specifies if the binary objects touching the borders of the search area are ignored. The default is False.
MaxObjectSizeLargest objects to consider. The default is 100.
MinObjectSizeSmallest objects to consider. The default is 3.
ObjectsType of objects to be detected. The default is cwmvBrightObjects.
ShowBoundingBoxBoolean that determines if the bounding rectangles of the objects found are overlaid on the image. The default is True.
ShowCenterBoolean that determines if the locations of the objects found are overlaid on the image. The default is True.
ShowSearchAreaBoolean that determines if the search area is overlaid on the image. The default is False.
ThresholdGrayscale intensity that is used as the threshold level. The default is 128.
UseMaxObjectSizeBoolean that specifies if the detected objects larger than MaxObjectSize are ignored. The default is False.
UseMinObjectSizeBoolean that specifies if the detected objects smaller than MinObjectSize are ignored. The default is False.

See Also

CWMachineVision.CountAndMeasureObjects