VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)
Projects a rectangle from a region of interest within the image coordinates space into normalized coordinates.
Declaration
func VNNormalizedRectForImageRectUsingRegionOfInterest(_ imageRect: CGRect, _ imageWidth: Int, _ imageHeight: Int, _ roi: CGRect) -> CGRectParameters
- imageRect:
The rectangle in image coordinates.
- imageWidth:
The width of the image.
- imageHeight:
The height of the image.
- roi:
The region of interest within the image-coordinate space.
Return Value
A rectangle in the normalized-coordinate space.
See Also
Coordinate conversion
VNImagePointForNormalizedPoint(_:_:_:)VNNormalizedPointForImagePoint(_:_:_:)VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)VNImageRectForNormalizedRect(_:_:_:)VNNormalizedRectForImageRect(_:_:_:)VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedIdentityRectVNNormalizedRectIsIdentityRect(_:)VNImagePointForFaceLandmarkPoint(_:_:_:_:)VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)