Click or drag to resize

NativeImageIOScaleLocation Method

https://www.emgu.com
Scales the location of a rectangle in an image.

Namespace:  Emgu.Models
Assembly:  Emgu.TF.Lite.Models (in Emgu.TF.Lite.Models.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntax
public static float[] ScaleLocation(
	float[] location,
	int imageWidth,
	int imageHeight
)

Parameters

location
Type: SystemSingle
An array of four float values representing the top left (x0, y0) and bottom right (x1, y1) corners of a rectangle. The values should be in the range of [0, 1].
imageWidth
Type: SystemInt32
The width of the image.
imageHeight
Type: SystemInt32
The height of the image.

Return Value

Type: Single
An array of four float values representing the scaled top left (x0, y0) and bottom right (x1, y1) corners of the rectangle in the image.
See Also