of static method
Implementation
static double? of(CameraImage image) {
if (image.planes.isEmpty) return null;
return switch (image.format.group) {
ImageFormatGroup.yuv420 => _meanByte(image.planes.first.bytes),
ImageFormatGroup.bgra8888 => _meanBgraLuma(image.planes.first.bytes),
_ => null,
};
}