Click or drag to resize

NativeImageIOPixelToJpeg Method

https://www.emgu.com
Converting raw pixel data to jpeg stream

Namespace:  Emgu.Models
Assembly:  Emgu.TF.Lite.Models (in Emgu.TF.Lite.Models.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntax
public static byte[] PixelToJpeg(
	byte[] rawPixel,
	int width,
	int height,
	int channels
)

Parameters

rawPixel
Type: SystemByte
The raw pixel data
width
Type: SystemInt32
The width of the image
height
Type: SystemInt32
The height of the image
channels
Type: SystemInt32
The number of channels

Return Value

Type: Byte
The jpeg stream
See Also