Function

VNImageRectForNormalizedRect

Projects a rectangle from normalized coordinate space into image coordinates.

Declaration

CGRect VNImageRectForNormalizedRect(CGRect normalizedRect, size_t imageWidth, size_t imageHeight);

Parameters

normalizedRect

The input rect, 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.

Return Value

The input rect projected into image (pixel) coordinates.

See Also

Coordinate Conversion

VNImagePointForNormalizedPoint

Projects a point 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.