CogSobelEdge MagnitudeScale Property Cognex VisionPro 9.8 SR1
Each magnitude image pixel value is set equal to the Sobel-computed grey value difference at the corresponding location multiplied by this scaling factor.

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

public double MagnitudeScale { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogSobelEdge Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The scale was less than 0.

Remarks

Each edge magnitude image pixel value is set equal to the Sobel-computed grey value difference at the corresponding location multiplied by this scaling factor.

A value of 0.89 guarantees no pixel value exceeds 255, the maximum grey value. Magnitude values greater than 255 are clipped. The valid range is 0.5 through 50.

Default Value: 1.0

See Also