Function VNImagePointForNormalizedPointUsingRegionOfInterest

Source
pub unsafe extern "C-unwind" fn VNImagePointForNormalizedPointUsingRegionOfInterest(
    normalized_point: CGPoint,
    image_width: usize,
    image_height: usize,
    roi: CGRect,
) -> 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 taking the region of interest (roi) into account.

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.

Parameter roi: The region of interest on which the normalized point was based on.

Returns: the point in image coordinates from a normalized point that was reported in relation to a region of interest.