Contents

VNImagePointForNormalizedPoint(_:_:_:)

Projects a point in normalized coordinates into image coordinates.

Declaration

func VNImagePointForNormalizedPoint(_ normalizedPoint: CGPoint, _ imageWidth: Int, _ imageHeight: Int) -> CGPoint

Parameters

  • normalizedPoint:

    The input point in normalized coordinate space.

  • imageWidth:

    The width of the image into whose coordinate space you’re projecting the input point.

  • imageHeight:

    The height of the image into whose coordinate space you’re projecting the input point.

Mentioned in

Return Value

The input point projected into image coordinates.

Discussion

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

See Also

Coordinate conversion