ToolboxPixel24ToPixelByte Method |
https://www.emgu.com
A native implementation to convert (24-bit) pixels values to float tensor values
Namespace:
Emgu.TF.Util
Assembly:
Emgu.TF.Lite.Netstandard (in Emgu.TF.Lite.Netstandard.dll) Version: 2.8.0.1418
Syntaxpublic static int Pixel24ToPixelByte(
IntPtr pixels,
int width,
int height,
float inputMean,
float scale,
bool flipUpsideDown,
bool swapBR,
IntPtr result
)
Public Shared Function Pixel24ToPixelByte (
pixels As IntPtr,
width As Integer,
height As Integer,
inputMean As Single,
scale As Single,
flipUpsideDown As Boolean,
swapBR As Boolean,
result As IntPtr
) As Integer
public:
static int Pixel24ToPixelByte(
IntPtr pixels,
int width,
int height,
float inputMean,
float scale,
bool flipUpsideDown,
bool swapBR,
IntPtr result
)
static member Pixel24ToPixelByte :
pixels : IntPtr *
width : int *
height : int *
inputMean : float32 *
scale : float32 *
flipUpsideDown : bool *
swapBR : bool *
result : IntPtr -> int
Parameters
- pixels
- Type: SystemIntPtr
The raw pixel data of the image. 24-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 byte array. Need to be initialized and big enough to hold all the byte data.
Return Value
Type:
Int32The number of bytes written
RemarksFor internal use only. Improper call to this function can result in application crashing.
See Also