ModelOrgAutoCenter Property
Applies To
Vision Objects: Correlation, Geometric
Description
A model has a fixed reference point by which a location of the model in the image is indicated. This point is referred to as the model origin. The ModelOrgAutoCenter property sets the model origin at the center of the model window automatically.
Usage
VGet Sequence.Object.ModelOrgAutoCenter, var
VSet Sequence.Object.ModelOrgAutoCenter, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Boolean variable that will contain the value of the property
- value
- Boolean value or expression for the new value of the property.
Values
- 0 - False: Do not cause the model origin to be automatically positioned
- -1 - True: Automatically position the model origin at the center of the model window
Default: True
Remarks
The model origin can be set anywhere within the region defined by the model window. The origin's coordinates define the model origin relative to the model window's upper left corner, that is, relative to the location of element [0][0] of the model window that defines the model.
The ModelOrgAutoCenter property sets the model origin at the center of the model window whenever the model window is moved or resized.
If the ModelOrgAutoCenter property is set to “True”, then the ModelOrgX and ModelOrgY Properties cannot be used to reposition the model origin.
See Also
Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgX Property, ModelOrgY Property