CogPMRedLinePattern Execute Method Cognex VisionPro 9.25 SR1
Searchs the given inputImage for instances of this pattern. The search is performed using the supplied runParams within the given region.

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

public CogPMRedLineResults Execute(
	ICogImage inputImage,
	ICogRegion region,
	CogPMRedLineRunParams runParams
)

Parameters

inputImage
Type: Cognex.VisionPro ICogImage
The image to be searched. Must be of type CogImage8Grey.
region
Type: Cognex.VisionPro ICogRegion
An optional region of interest. If you do not specify a region, the entire image is searched.
runParams
Type: Cognex.VisionPro.PMRedLine CogPMRedLineRunParams
The parameters that specify how to run this PMRedLine search.

Return Value

Type: CogPMRedLineResults
The PMRedLine results that were found. Results are sorted in order of decreasing score.
Exceptions

ExceptionCondition
ArgumentNullExceptioninputImage is null.
ArgumentNullExceptionrunParams is null.
CogSecurityViolationException Licensing for this operation cannot be confirmed. See Understanding VisionPro Security for more information.
CogImageNoPixelsExceptioninputImage has no allocated pixels.
CogImageBadTypeExceptioninputImage is not a CogImage8Grey.
CogOperatorNotTrainedException This pattern operator is not trained.
CogOperatorInvalidRegionExceptionregion falls completely outside of the inputImage. Or has an invalid SelectedSpaceName.
CogTimeoutExpiredException The pattern search took longer than the enabled Timeout value.
See Also