LineDirection Property

Applies To
Vision Object: Contour

Description
Sets the direction of contour lines output with the Contour object.

Usage

VGet  Sequence.Object.LineDirection, var
VSet  Sequence.Object.LineDirection, 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

  • 1 - LeftToRight
    • Vision constant: VISION_LINEDIRECTION_LEFTTORIGHT
    • Outputs the contour from left to right in the search window.
  • 2 - RightToLeft
    • Vision constant: VISION_LINEDIRECTION_RIGHTTOLEFT
    • Outputs the contour from right to left in the search window.

Default: 1

Remarks
LineDirection sets the direction of contour lines output with the Contour object.

If LineDirection is set to LeftToRight, contour points will be output starting from the left edge when the edge search line is pointing vertically downwards.

If LineDirection is set to RightToLeft, contour points will be output starting from the right edge when the edge search line is pointing vertically downwards.

This property only applies when the ContourMode is set to Line.

See Also
Contour Object