Executes the segmenter on the supplied image and region.
Assembly: Cognex.Vision.SmartLine.Net (in Cognex.Vision.SmartLine.Net.dll) Version: 9.21.1.1
Syntax
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: SegmentResultsA SegmentResults containing the results of the segmentation.
Implements
ISegment Execute(IImage, IRegion)Exceptions
| Exception | Condition |
|---|---|
| OperatorInvalidRegionException | The ROI is not a RectangleAffine or a Rectangle. |
| OperatorInvalidRegionException | Invalid ROI. |
| ImageException | Invalid image. |
| InvalidOperationException | In case of any other error. |
See Also