SegmentOperator Execute Method Cognex VisionPro 9.22

Executes the segmenter on the supplied image and region.

Namespace: Cognex.Vision.ViDiEL
Assembly: Cognex.Vision.ViDiELSegment.Net (in Cognex.Vision.ViDiELSegment.Net.dll) Version: 9.22.2.0
Syntax

public SegmentResults Execute(
	IImage image,
	IRegion region
)

Parameters

image
Type: Cognex.Vision IImage
The input image to process. Must be a Image8Grey.
region
Type: Cognex.Vision IRegion
The region of image to process. Only the pixels which lie within this region will be considered. Supply null to process the entire image.

Return Value

Type: SegmentResults

A SegmentResult containing the results of the segmentation.

Implements

ISegment Execute(IImage, IRegion)
Exceptions

ExceptionCondition
ImageExceptionInvalid image.
InvalidOperationExceptionIn case of any other error.
Remarks

AffineTransform is the only supported technique used to apply the region to the inspection image.

See Also