CogBeadInspectPattern SetCoarseContour Method Cognex VisionPro 9.23
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.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 91.0.0.0
Syntax

public void SetCoarseContour(
	CogGeneralContour path
)

Parameters

path
Type: Cognex.VisionPro CogGeneralContour
The coarse contour which will be used at train time.
Exceptions

ExceptionCondition
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.
ArgumentNullExceptionpath is null.
ArgumentExceptionpath has arc segments.
ArgumentExceptionpath 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