Performs line finding on the supplied images. The inspection results are
stored in a
CogLineMaxResults
object.
Namespace: Cognex.VisionPro.LineMaxAssembly: Cognex.VisionPro.LineMax (in Cognex.VisionPro.LineMax.dll) Version: 91.0.0.0
Syntax
Parameters
- inputImages
- Type: System.Collections.Generic IEnumerable ICogImage
The images to process. Must contain one or more images and all images must be of type CogImage8Grey or CogImage16Grey, exclusive.
- regions
- Type: System.Collections.Generic IEnumerable ICogRegion
The regions of the inputImages to process. A null collection means all pixels of all images are processed. A null collection item means all pixels of the corresponding image are processed.
Return Value
Type: CogLineMaxResultsA CogLineMaxResults containing the found results.
Exceptions
| Exception | Condition |
|---|---|
| CogSecurityViolationException | Required LineMax license not found. Required LineMax and LineMaxMulti licenses not found when MaxNumLines is greater than 1. |
| CogOperatorNoInputImageException | inputImages is null, empty, or contains a null image. |
| CogImageBadTypeException | inputImages are not all CogImage8Grey or are not all CogImage16Grey. |
| CogImageNoPixelsException | inputImages contains an unallocated image. |
| CogOperatorInvalidRegionException | The selected space of a regions clip region is not a valid space of the corresponding inputImages image. |
| CogOperatorInvalidRegionException | One or more regions items are completely outside of the corresponding inputImages item. |
| CogSpaceTreeNameNotInTreeException | ExpectedLineNormal has a SelectedSpaceName that is not in one or more of the inputImages coordinate space trees. |
| CogSpaceTreeNameNotUniqueException | ExpectedLineNormal has a SelectedSpaceName that is not unique in one or more of the inputImages coordinate space trees. |
| CogSpaceTreeInvalidNameSyntaxException | ExpectedLineNormal has a SelectedSpaceName that is not a valid name format. |
| CogOperatorNoRunParamsException | EdgeDetectionParams is null. |
See Also