Function VNNormalizedRectForImageRect

Source
pub unsafe extern "C-unwind" fn VNNormalizedRectForImageRect(
    image_rect: CGRect,
    image_width: usize,
    image_height: usize,
) -> CGRect
Available on crate features VNUtils and objc2-core-foundation only.
Expand description

Returns an image rectangle in normalized coordinates.

Parameter imageRect: The rectangle in image coordinate space.

Parameter imageWidth: The pixel width of the image.

Parameter imageHeight: The pixel height of the image.

Returns: the normalized rectangle.