CogBlobSegmentationParams SoftFixedThresholdHigh Property Cognex VisionPro
Pixel values above(>=) the high threshold are background (weight 0) or full-weight blob (weight 1) depending on the Polarity. Values between the low and high thresholds are considered fractional blob (weight between 0 and 1, exclusive). See Softness.

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

public int SoftFixedThresholdHigh { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
[Cognex.VisionPro.ICogChangedEvent.Changed]

Fires when the value of this property changes.

The following state flag may be affected:

[Cognex.VisionPro.ICogChangedEvent.Changed]

Fires when the both the low and high thresholds are changed.

The following state flags may be affected:

Exceptions

ExceptionCondition
[System.ArgumentException] The supplied value is less than 1 or greater than 65535.
Remarks

When Polarity indicates light blobs, pixel values that are greater than the high threshold are assigned a blob weight equal to 1. The range of pixel values between the low and high threshold is divided into Softness equally sized ranges. Pixels with values in each of these ranges are assigned values between 1 and Softness. A segmentation value of Softness+1 corresponds to a blob weight of one while all other segmentation values are interpreted on a linear scale relative to Softness+1.

Pixel values that are greater than the high threshold are assigned a blob weight of 0 when Polarity indicates dark blobs.

The low threshold must be less than the high threshold. If a value is supplied such that this requirement is not met, the other threshold is adjusted.

See Also