PixelY2 Result

Applies To
Vision Objects: BoxFinder, Line, LineFinder

Description

  • Line, LineFinder: Returns the pixel Y coordinate of the end point of a Line object.
  • BoxFinder: Returns the Y (Y2) coordinate position for corner points of rectangles detected in a pixel coordinate system.

Usage

VGet  Sequence.Object.PixelY2[(result)], var
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
Real variable that will contain the value of the result.
result
Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Values
Min: 0

Max: ImageSize height - 1

Remarks
For Line, LineFinder

Every line has a starting point and ending point. The PixelY1 and PixelY2 results represent the Y coordinate position starting (Y1) and endpoints (Y2) of the specified Line object. Since Line object starting and endpoints can be assigned to other vision objects, the (PixelX1, PixelY1) and (PixelX2, PixelY2) coordinate pairs can actually be pixel coordinate positions which match the PixelX and PixelY results for other vision objects. (In other words if a Line object's endpoint is defined by a Correlation object, then the (PixelX, PixelY) results from the Correlation object will match the (PixelX2, PixelY2) results for the Line object.)

For BoxFinder

The pixel coordinates for the four corners of a rectangle can be retrieved as Pixel X1, 2, 3, 4 results and Pixel Y1, 2, 3, 4 results. PixelY2 is used to retrieve the Y coordinate for the Corner2 point shown in the diagram below.

See Also
Angle Result, Line Object, PixelX Result, PixelX1 Result, PixelX2 Result, PixelX3 Result, PixelY3 Result, PixelX4 Result, PixelY4 Result, PixelY Result, PixelY1 Result, RobotXYU Result, RobotY Result, X1 Property, X2 Property, Y1 Property, Y2 Property, BoxFinder Object