Trains the pattern.
Namespace: Cognex.VisionPro.SearchMaxAssembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 80.0.0.0
Syntax
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the pattern object is modified. The following state flags may be affected:
|
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this CogSearchMaxPattern object has already been disposed. |
| CogSecurityViolationException | Thrown if licensing for this operator cannot be confirmed. |
| CogOperatorNoTrainImageException | Thrown if there is no training image. |
| CogImageNoPixelsException | Thrown if TrainImage is not allocated. |
| CogImageBadTypeException | Thrown if TrainImage is not of type CogImage8Grey, CogImage16Grey, CogImage16Range or CogImage24PlanarColor. |
| CogOperatorInvalidRegionException | Thrown if TrainRegion falls completely outside of TrainImage. |
| InvalidOperationException | Thrown if an internal error occurs during training. |
| CogTimeoutExpiredException | Thrown if the pattern train took longer than the value specified by TrainTimeout. |
| CogSearchMaxImproperMaskException | Thrown if the TrainImageMask is not allocated or contains pixels that have values other than 0 and 255. |
| NotSupportedException | SearchMax does not support non-linear transforms. |
| CogSearchMaxRegionContainsNoFeaturesException | Thrown if the TrainRegion |
| CogSearchMaxImageTooSmallException | Thrown if the TrainImage |
Remarks
See Also