VNImagePointForNormalizedPoint(_:_:_:)
Projects a point in normalized coordinates into image coordinates.
Declaration
func VNImagePointForNormalizedPoint(_ normalizedPoint: CGPoint, _ imageWidth: Int, _ imageHeight: Int) -> CGPointParameters
- normalizedPoint:
The input point in normalized coordinate space.
- imageWidth:
The width of the image into whose coordinate space you’re projecting the input point.
- imageHeight:
The height of the image into whose coordinate space you’re projecting the input point.
Mentioned in
Return Value
The input point projected into image coordinates.
Discussion
The resulting point in image coordinate space may have nonintegral (floating-point) coordinates.
See Also
Coordinate conversion
VNNormalizedPointForImagePoint(_:_:_:)VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)VNImageRectForNormalizedRect(_:_:_:)VNNormalizedRectForImageRect(_:_:_:)VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)VNNormalizedIdentityRectVNNormalizedRectIsIdentityRect(_:)VNImagePointForFaceLandmarkPoint(_:_:_:_:)VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)