Performs line finding on the supplied image. The inspection results are stored in a LineMaxResults object.
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.21.1.1
Syntax
Parameters
- inputImages
- Type: Cognex.Vision IImageCollection
The input images to process. Must be an IImageCollection of Image8Grey or a Image16Grey images.
- regions
- Type: Cognex.Vision IRegionCollection
The regions of inputImages to process. Only the pixels which lie within this region (subject to the value of RegionMode ) will be considered. Supply null to process the entire image.
Return Value
Type: LineMaxResultsA LineMaxResults containing the found results.
Exceptions
| Exception | Condition |
|---|---|
| SecurityViolationException | Required LineMax license not found. Required LineMax and LineMaxMulti licenses not found when MaxNumLines is greater than 1. |
| OperatorNoInputImageException | inputImages is null. |
| ImageException | inputImages is not an IImageCollection of Image8Grey or Image16Grey images. |
| ImageException | inputImage is an unallocated image. |
| OperatorInvalidRegionException | The selected space of region is not a valid space in inputImage. |
| OperatorInvalidRegionException | region is completely outside of inputImage. |
| SpaceTreeException | ExpectedLineNormal has a SelectedSpaceName that is not in the inputImage coordinate space tree. |
| SpaceTreeException | ExpectedLineNormal has a SelectedSpaceName that is not unique in the inputImage coordinate space tree. |
| SpaceTreeException | ExpectedLineNormal has a SelectedSpaceName that is not a valid name format. |
| OperatorNoRunParamsException | EdgeDetectionParams is null. |
See Also