pub unsafe extern "C-unwind" fn VNImageRectForNormalizedRectUsingRegionOfInterest(
normalized_rect: CGRect,
image_width: usize,
image_height: usize,
roi: CGRect,
) -> 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 taking the region of interest (roi) into account.
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.
Parameter roi
: The region of interest on which the normalized point was based on.
Returns: the rectangle in pixel coordinates from a normalized rectangle that was reported in relation to a region of interest.