convertImageBytesToFloatBuffer static method
Implementation
static Future<Uint8List> convertImageBytesToFloatBuffer(
Uint8List bytes,
int width,
int height,
List<double> mean,
List<double> std,
) async {
await ImageUtilsIsolate.init();
return (await ImageUtilsIsolate.computer.compute(
_convertImageBytesToFloatBuffer,
param: [bytes, width, height, mean, std]) as TransferableTypedData)
.materialize()
.asUint8List();
}