CogSobelEdge PeakDetectThreshold Property Cognex VisionPro 9.7
If PostProcessMode is cogSobelEdgePostProcessModePeakDetect, then whole-pixel peak detection will be run on the Sobel angle and magnitude images using this as the minimum Sobel magnitude. Edges with magnitude less than this will be discarded.

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 73.0.0.0
Syntax

public int PeakDetectThreshold { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogSobelEdge Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The threshold was less than 0 or greater than 255.

Remarks

If PostProcessMode is PeakDetect, then whole-pixel peak detection will be run on the Sobel angle and magnitude images using this as the minimum Sobel magnitude. Magnitude values less than this value will be discarded.

Default Value: 20

See Also