CogBlobSegmentationParams HardRelativeThreshold Property Cognex VisionPro
A fixed threshold is computed by determining the pixel value which lies at the specified percentage of the distance between the low tail pixel value and the high tail pixel value. This computed threshold is then used to perform Hard-Fixed segmentation.

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

public int HardRelativeThreshold { get; set; }

Property Value

Type: Int32
The default is 50.
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 100.
Remarks

A hard fixed threshold is computed by determining the pixel value which lies at the specified percentage of the distance between the low tail pixel value and the high tail pixel value. This computed threshold is then used to perform Hard-Fixed segmentation.

If Polarity specifies light blobs, then pixels values that are greater than or equal to this computed threshold are part of the blob(s); pixel values that are less than this threshold are part of the background. If Polarity specifies dark blobs, then the ranges are inverted.

See Also