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
Syntaxpublic static float[] ScaleLocation(
float[] location,
int imageWidth,
int imageHeight
)
Public Shared Function ScaleLocation (
location As Single(),
imageWidth As Integer,
imageHeight As Integer
) As Single()
public:
static array<float>^ ScaleLocation(
array<float>^ location,
int imageWidth,
int imageHeight
)
static member ScaleLocation :
location : float32[] *
imageWidth : int *
imageHeight : int -> float32[]
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:
SingleAn 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