Gets or sets the region of interest indicating portion of the
TrainImage
that will be used to train the pattern. A NULL
TrainRegion indicates that the entire TrainImage will be used to train the
CogSearchMaxPattern.
Namespace: Cognex.VisionPro.SearchMaxAssembly: Cognex.VisionPro.SearchMax (in Cognex.VisionPro.SearchMax.dll) Version: 87.1.0.0
Syntax
Property Value
Type: ICogRegionThe region of interest indicating portion of the TrainImage. The default value is a default contstucted CogRectangleAffine that has been made interactive and has all DOFs enabled.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this property changes. The following state flags may be affected:
|
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if this CogSearchMaxPattern object has already been disposed. |
Remarks
Note Changing this property causes this CogSearchMaxPattern to become untrained.
Note This CogSearchMaxPattern will sink changed events for the region that you supply. Whenever the region changes, this CogSearchMaxPattern will become untrained.
See Also