CogSobelEdge RegionMode Property Cognex VisionPro 9.5
How the Region is applied to the InputImage.

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

public CogRegionModeConstants RegionMode { get; set; }

Property Value

Type: CogRegionModeConstants
Events

Event TypeReason
CogSobelEdge Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The region mode is not AffineTransform or PixelAlignedBoundingBox.

Remarks

Specifies how Execute(CogImage8Grey, ICogRegion)'s Region parameter is interpreted.

If the region is not specified (is Nothing), then the entire image is processed regardless of this property.

If this property is AffineTransform and the region is an CogRectangleAffine, then the region is mapped into a pixel aligned rectangle and the result of that mapping is processed. Attempting to use this property value with any other shape region generates an error.

If this property is PixelAlignedBoundingBox, then any shape region may be used.

Default Value: PixelAlignedBoundingBox

See Also