Point2D

Represents pixel coordinates on image. Top left corner of an image has (x: 0, y: 0) coordinate.

This coordinate system is used to represent the position of an object relative to the frame. The origin is the left top corner of the frame. The position of an object is expressed as x, y.

  • x

    Horizontal distance in pixels from the origin to the object

  • y

    Vertical distance in pixels from the origin to the object

  • CGPoint representation of pixel coordinates