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