Function VNImagePointForNormalizedPoint

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

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

Parameter normalizedPoint: The point 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 point in image coordinates.