Click or drag to resize

ToolboxPixel32ToPixelFloat Method

https://www.emgu.com/wiki/index.php/Emgu_TF
A native implementation to convert (32-bit) pixels values to float tensor values

Namespace:  Emgu.TF.Util
Assembly:  Emgu.TF.Netstandard (in Emgu.TF.Netstandard.dll) Version: 2.6.0.1294
Syntax
public static int Pixel32ToPixelFloat(
	IntPtr pixels,
	int width,
	int height,
	float inputMean,
	float scale,
	bool flipUpsideDown,
	bool swapBR,
	IntPtr result
)

Parameters

pixels
Type: SystemIntPtr
The raw pixel data of the image. 32-bit per pixel
width
Type: SystemInt32
The width of the image.
height
Type: SystemInt32
The height of the image.
inputMean
Type: SystemSingle
The input mean to be subtracted
scale
Type: SystemSingle
The scale to be multiplied
flipUpsideDown
Type: SystemBoolean
If true, the pixels will be flipped upside down
swapBR
Type: SystemBoolean
If true, the first and third output channels will be swapped.
result
Type: SystemIntPtr
The resulting pointer to the float array. Need to be initialized and big enough to hold all the float data.

Return Value

Type: Int32
The number of bytes written
Remarks
For internal use only. Improper call to this function can result in application crashing.
See Also