pub unsafe extern "C-unwind" fn VNNormalizedPointForImagePointUsingRegionOfInterest(
image_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 normalized coordinate space within a spedified regioin of interest (roi) that is projected from a point in a image coordinates
Parameter imagePoint
: The point in image coordinate space.
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 will based on.
Returns: the point in normalized coordinates in relation to the region of interest.