SmartLineSegmentOperator Execute Method Cognex VisionPro 9.25 SR1

Executes the segmenter on the supplied image and region.

Namespace: Cognex.Vision.SmartLine
Assembly: Cognex.Vision.SmartLine.Net (in Cognex.Vision.SmartLine.Net.dll) Version: 9.25.1.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 SegmentResults containing the results of the segmentation.

Implements

ISegment Execute(IImage, IRegion)
Exceptions

ExceptionCondition
OperatorInvalidRegionExceptionThe ROI is not a RectangleAffine or a Rectangle.
OperatorInvalidRegionExceptionInvalid ROI.
ImageExceptionInvalid image.
InvalidOperationExceptionIn case of any other error.
See Also