VNImageRectForNormalizedRect(_:_:_:)
Projects a rectangle from normalized coordinates into image coordinates.
Declaration
func VNImageRectForNormalizedRect(_ normalizedRect: CGRect, _ imageWidth: Int, _ imageHeight: Int) -> CGRectParameters
- normalizedRect:
The input rectangle in normalized coordinate space.
- imageWidth:
The width of the image into whose coordinate space you’re projecting the input rect.
- imageHeight:
The height of the image into whose coordinate space you’re projecting the input rect.
Mentioned in
Return Value
The input rect projected into image (pixel) coordinates.
See Also
Coordinate conversion
VNImagePointForNormalizedPoint(_:_:_:)VNNormalizedPointForImagePoint(_:_:_:)VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)VNNormalizedRectForImageRect(_:_:_:)VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedIdentityRectVNNormalizedRectIsIdentityRect(_:)VNImagePointForFaceLandmarkPoint(_:_:_:_:)VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)