Contents

VNImageRectForNormalizedRect(_:_:_:)

Projects a rectangle from normalized coordinates into image coordinates.

Declaration

func VNImageRectForNormalizedRect(_ normalizedRect: CGRect, _ imageWidth: Int, _ imageHeight: Int) -> CGRect

Parameters

  • normalizedRect:

    The input rectangle in normalized coordinate space.

  • imageWidth:

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

  • imageHeight:

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

Mentioned in

Return Value

The input rect projected into image (pixel) coordinates.

See Also

Coordinate conversion