Function VNImageRectForNormalizedRect

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

Returns a rectangle in (possibly non-integral) image coordinates that is projected from a rectangle in a normalized coordinate space.

Parameter normalizedRect: The rectangle in the normalized coordinate space of [0..1].

Parameter imageWidth: The pixel width of the image.

Parameter imageHeight: The pixel height of the image.

Returns: the rectangle in pixel coordinates.