Function

VNImagePointForNormalizedPoint

Projects a point from normalized coordinate space into image coordinates.

Declaration

CGPoint VNImagePointForNormalizedPoint(CGPoint normalizedPoint, size_t imageWidth, size_t imageHeight);

Parameters

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.

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

VNImageRectForNormalizedRect

Projects a rectangle from normalized coordinate space into image coordinates.

VNNormalizedRectForImageRect

Normalizes a rectangle from image coordinates.

VNNormalizedIdentityRect

The normalized identity rectangle with origin (0,0) and unit length and width.

VNNormalizedRectIsIdentityRect

Returns YES if the rectangle has origin (0,0) and unit length and width.

VNImagePointForFaceLandmarkPoint

Returns the image coordinates of a given face landmark point.

VNNormalizedFaceBoundingBoxPointForLandmarkPoint

Returns the coordinates of a given face landmark point, in bounding box coordinates.