Contents

VNNormalizedPointForImagePoint(_:_:_:)

Projects a point from image coordinates into normalized coordinates.

Declaration

func VNNormalizedPointForImagePoint(_ imagePoint: CGPoint, _ imageWidth: Int, _ imageHeight: Int) -> CGPoint

Parameters

  • imagePoint:

    The input point in image coordinate space.

  • imageWidth:

    The image width.

  • imageHeight:

    The image height.

Return Value

The input point projected into normalized coordinates.

Discussion

The resulting point in image coordinate space may have nonintegral (floating-point) coordinates.

See Also

Coordinate conversion