Searchs the given inputImage for instances of this
pattern. The search is performed using the supplied
runParams within the given region.
Namespace: Cognex.VisionPro.PMRedLineAssembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 91.0.0.0
Syntax
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: CogPMRedLineResultsThe PMRedLine results that were found. Results are sorted in order of decreasing score.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | inputImage is null. |
| ArgumentNullException | runParams is null. |
| CogSecurityViolationException | Licensing for this operation cannot be confirmed. See Understanding VisionPro Security for more information. |
| CogImageNoPixelsException | inputImage has no allocated pixels. |
| CogImageBadTypeException | inputImage is not a CogImage8Grey. |
| CogOperatorNotTrainedException | This pattern operator is not trained. |
| CogOperatorInvalidRegionException | region falls completely outside of the inputImage. Or has an invalid SelectedSpaceName. |
| CogTimeoutExpiredException | The pattern search took longer than the enabled Timeout value. |
See Also