Blob polarity used for image segmentation with either
soft or hard thresholding. Indicates either dark blobs on a light
background or light blobs on a dark background.
Namespace: Cognex.VisionPro.BlobAssembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 65.1.0.0
Syntax
Property Value
Type: CogBlobSegmentationPolarityConstantsThe default is DarkBlobs.
Events
| Event Type | Reason |
|---|---|
| [Cognex.VisionPro.ICogChangedEvent.Changed] | Fires when the value of this property changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| [System.ArgumentException] | The supplied value is not a member of CogBlobSegmentationPolarityConstants |
Remarks
Blob polarity used for image segmentation with either soft or hard thresholding. Specify DarkBlobs for dark blobs on a light background or LightBlobs for light blobs on a dark background.
This parameter is only used for the following segmentation modes: HardDynamicThreshold, HardFixedThreshold, HardRelativeThreshold, SoftFixedThreshold, or SoftRelativeThreshold.
See Also