Hi, what’s the best way to save each frame of GENX320 event data uncompressed? I’m fine with it running in histogram mode, but I’d like to use something other than mjpeg to avoid compression (even at quality = 100). I assume we can use imageio, but given the default contrast of 16 we’re only actually using 4 bits per pixel, many of which should be 128 giving us a potentially spare frame. Are there any efficient ways of storing this data, or would rounding the output mjpeg to the nearest contrast value (e.g. 16) be the simplest solution?
Just use imageio with a grayscale image format. This will save the image uncompressed. 1 byte per pixels (320x320 = 102,400 bytes per image). You can also do to_binary() to go to 1-bit per pixel. Then it’s 12,800 bytes per image.
Also, event mode is coming soon. This will land maybe in a week or so. It’s going through review right now. Once this is available, you’ll have the raw event stream. So, much less data.
Brilliant, thank you! That’s exciting news.