CogIPOneImageGaussSampler MagnitudeShift Property Cognex VisionPro 9.23
Bitwise shifts the pixel values of the result. Valid shift values are from -7 to 7. Negative values will darken the result by dividing the pixel value results by 2 for each bit specified. Similarly, positive values will brighten by multiplying by 2.

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

public int MagnitudeShift { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogIPOneImageGaussSampler Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The magnitude shift value is < -7 or > +7.

Remarks

Shifts the pixel values of the resulting image using a bitwise shift. Valid values are from -7 to 7. Negative values effectively divide pixel values by two, darkening the resulting image. Positive values effectively multiply pixel values by two, lightening the resulting image. Note that a MagnitudeShift value greater than zero, when combined with SampleX or SampleY values greater than one, may result in output pixel value overflow.
See Also