CogBlobSegmentationParams Polarity Property Cognex VisionPro
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.Blob
Assembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 65.1.0.0
Syntax

public CogBlobSegmentationPolarityConstants Polarity { get; set; }

Property Value

Type: CogBlobSegmentationPolarityConstants
The default is DarkBlobs.
Events

Event TypeReason
[Cognex.VisionPro.ICogChangedEvent.Changed]

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
[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