Updates the internal bead find result data using the provided coarse contour path.
Calling this method will untrain the tool if the coarse path modified is the path used
at train time.
Namespace: Cognex.VisionPro.EdgeInspectAssembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 79.0.0.0
Syntax
Parameters
- path
- Type: Cognex.VisionPro CogGeneralContour
The coarse contour which will be used at train time.
Exceptions
| Exception | Condition |
|---|---|
| CogOperatorFindNotRunException | The FindResults property is null or empty; the Find method has not been called, it was called and no paths were located, or the pattern has since become unfound. |
| ArgumentOutOfRangeException | The CurrentFindResultIndex or FindResultIndexUsedInTrain properties are outside the valid index range for the current FindResults property. The index must be between 0 and (FindResults.Count - 1), inclusive. |
| ArgumentNullException | path is null. |
| ArgumentException | path has arc segments. |
| ArgumentException | path if the contour is too short. |
| CogSecurityViolationException | Licensing for this operation cannot be confirmed. See Understanding VisionPro Security for more information. |
| CogImageNoPixelsException | if the train image has no allocated pixels. |
| CogImageBadTypeException | if the train image is not a CogImage8Grey. |
Remarks
This method utilizes the CurrentFindResultIndex property to specify which path to modify. Additionally, it uses the FindResultIndexUsedInTrain property in order to determine if the pattern must be untrained due to modification of the coarse path used for training.
See Also