ModelWinHeight Property

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

Description
Defines the height of the model window.

Usage

VGet  Sequence.Object.ModelWinHeight, var
VSet  Sequence.Object.ModelWinHeight, 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
Integer variable that will contain the value of the property.
value
Integer value or expression for the new value of the property.

Values
Integer number in pixels from 10 to search window height

For OCR only: Integer number in pixels from 10 to 256

Remarks
The model window can be set in the Search Window.

The Correlation, Geometric, ImageOp, and OCR objects have rectangular model windows which define the position and size of the model to be taught. The ModelWinHeight property is set automatically when the user drags the upper or lower horizontal sides of the model window.

Keep in mind that a larger model window causes the taught model to be larger, which in turn can cause the execution time of the object to increase.

The ModelWinHeight property can be set by directly inputting the value from the property list of Vision Guide and by using the SPEL+ Language. Also, it can be set by clicking on the upper or lower horizontal sides of the model window and then dragging them vertically.

To set a value from the property list, click the ModelWinHeight property Value Field and simply enter in the value. Once you move the cursor off the value field, the ModelWinHeight will be adjusted for the associated vision object.

See Also
Anatomy of a Vision Object , Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgY Property, ModelOrgY Property, ModelWin Property, ModelWinLeft Property, ModelWinTop Property, ModelWinWidth Property, OCR Object