fromRawRgb

expect fun fromRawRgb(data: ByteArray, width: Int, height: Int): LiteRtImage

Creates a LiteRtImage from raw RGB pixel data.

Return

A LiteRtImage.

Parameters

data

The raw RGB pixel data (3 bytes per pixel).

width

The image width.

height

The image height.