CogBlobSegmentationParams SetSegmentationHardDynamicThreshold Method Cognex VisionPro 9.8 SR1
Sets the segmentation Mode to HardDynamicThreshold and sets the TailLow, TailHigh, and Polarity properties to the values supplied.

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

public void SetSegmentationHardDynamicThreshold(
	int tailLow,
	int tailHigh,
	CogBlobSegmentationPolarityConstants polarity
)

Parameters

tailLow
Type: System Int32
The percentage of low tail pixels to discard before computing the hard relative threshold.
tailHigh
Type: System Int32
The percentage of high tail pixels to discard before computing the hard relative threshold.
polarity
Type: Cognex.VisionPro.Blob CogBlobSegmentationPolarityConstants
Specify DarkBlobs for dark blobs on a light background or LightBlobs for light blobs on a dark background.
Exceptions

ExceptionCondition
ArgumentExceptiontailLow or tailHigh is less than 0 or greater than 100.
ArgumentExceptiontailLow plus tailHigh is greater than 100.
ArgumentExceptionpolarity is neither DarkBlobs nor LightBlobs.
Remarks

Sets the segmentation Mode to HardDynamicThreshold and sets TailLow, TailHigh, HardRelativeThreshold and Polarity to the values supplied.

This function suspends event delivery, then sets the public properties of CogBlobSegmentationParams with the supplied values. A single event that includes all of the affected functional area is typically generated.

See Also