ModelWin Property

Runtime only

Applies To
Vision Objects: Correlation, Geometric, ImageOp, OCR

Description
Defines the position and size of the model window.

Usage

VGet  Sequence.Object.ModelWin, LeftVar, TopVar, WidthVar, HeightVar
VSet  Sequence.Object.ModelWin, Left, Top, Width, Height
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.
LeftVar
Integer variable representing the leftmost position of the model window (in Pixels).
TopVar
Integer variable representing the uppermost position of the model window (in Pixels).
WidthVar
Integer variable representing the width of the model window (in Pixels).
HeightVar
Integer variable representing the height of the model window (in Pixels).
Left
Integer expression for a new leftmost position of the model window (in Pixels).
Top
Integer expression for a new uppermost position of the model window (in Pixels).
Width
Integer expression for a new width of the model window (in Pixels).
Height
Integer expression for a new height of the model window (in Pixels).

Values
All Values are in Pixels. See the ModelWinTop, ModelWinLeft, ModelWinWidth, and ModelWinHeight Properties for exact value data.

Remarks
The ModelWin property was added to provide easy access to the ModelWinTop, ModelWinLeft, ModelWinWidth and ModelWinHeight Properties from the SPEL+ Language. The ModelWin property allows the setting of all 4 Properties. There are cases where the user may want to define the position and size of the model window dynamically and for that reason the ModelWin property was created.

The ModelWin property can be applied to the Correlation, Geometric, ImageOp, and OCR objects. Each of these object types have rectangular model windows used to define the position and size of the model.

For ImageOp, the Operation property must first be set to ColorFilter.

See Also
Correlation Object, Geometric Object, ImageOp Object, ModelWinHeight Property, ModelWinLeft Property, ModelWinTop Property, ModelWinWidth Property, OCR Object