CogBlobSegmentationParams Softness Property Cognex VisionPro
The maximum number of fractional weights between background pixels (whose weight is 0.0) and full-weight blob pixels (whose weight is 1.0). The fractional weights are represented in the segmentation image by pixel values between 1 and softness.

Namespace: Cognex.VisionPro.Blob
Assembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 65.1.0.0
Syntax

public int Softness { get; set; }

Property Value

Type: Int32
The default is 254.
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 less than 0 or greater than 254.
Remarks

The number of intermediate weights separating blobs(1) and background(0). Pixel values between the low and high threshold are assigned to a blob weight between 0.0 and 1.0, exclusive.
See Also