CogLineMax Execute Method (IEnumerable ICogImage , IEnumerable ICogRegion )Cognex VisionPro 9.8
Performs line finding on the supplied images. The inspection results are stored in a CogLineMaxResults object.

Namespace: Cognex.VisionPro.LineMax
Assembly: Cognex.VisionPro.LineMax (in Cognex.VisionPro.LineMax.dll) Version: 75.1.0.0
Syntax

public CogLineMaxResults Execute(
	IEnumerable<ICogImage> inputImages,
	IEnumerable<ICogRegion> regions
)

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: CogLineMaxResults
A CogLineMaxResults containing the found results.
Exceptions

ExceptionCondition
CogSecurityViolationException Required LineMax license not found. Required LineMax and LineMaxMulti licenses not found when MaxNumLines is greater than 1.
CogOperatorNoInputImageExceptioninputImages is null, empty, or contains a null image.
CogImageBadTypeExceptioninputImages are not all CogImage8Grey or are not all CogImage16Grey.
CogImageNoPixelsExceptioninputImages 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.
CogSpaceTreeNameNotInTreeExceptionExpectedLineNormal has a SelectedSpaceName that is not in one or more of the inputImages coordinate space trees.
CogSpaceTreeNameNotUniqueExceptionExpectedLineNormal has a SelectedSpaceName that is not unique in one or more of the inputImages coordinate space trees.
CogSpaceTreeInvalidNameSyntaxExceptionExpectedLineNormal has a SelectedSpaceName that is not a valid name format.
CogOperatorNoRunParamsExceptionEdgeDetectionParams is null.
See Also