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

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

public CogLineMaxResults Execute(
	ICogImage inputImage,
	ICogRegion region
)

Parameters

inputImage
Type: Cognex.VisionPro ICogImage
The input image to process. Must be a CogImage8Grey or a CogImage16Grey.
region
Type: Cognex.VisionPro ICogRegion
The region of inputImage 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: 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.
CogOperatorNoInputImageExceptioninputImage is null.
CogImageBadTypeExceptioninputImage is not a CogImage8Grey or a CogImage16Grey.
CogImageNoPixelsExceptioninputImage is an unallocated image.
CogOperatorInvalidRegionException The selected space of region is not a valid space in inputImage.
CogOperatorInvalidRegionExceptionregion is completely outside of inputImage.
CogSpaceTreeNameNotInTreeExceptionExpectedLineNormal has a SelectedSpaceName that is not in the inputImage coordinate space tree.
CogSpaceTreeNameNotUniqueExceptionExpectedLineNormal has a SelectedSpaceName that is not unique in the inputImage coordinate space tree.
CogSpaceTreeInvalidNameSyntaxExceptionExpectedLineNormal has a SelectedSpaceName that is not a valid name format.
CogOperatorNoRunParamsExceptionEdgeDetectionParams is null.
See Also