问题
I'm using Python 3 to process a file produced by microscope, which is essentially a collection of thousands of Jpeg XR compressed images. I need to read all of them into memory. Now I'm reading data in binary mode, saving them in .jxr file and call JxrDecApp.exe to convert it to tiff and read it back to memory. This apparently is a major bottleneck to performance because it involves a lot of file read and write.
From what I gather, ImageMagick also delegates this task to JxrDecApp.exe. So using wand wouldn't help, either. Am I right?
Then I'm wondering if there is any way to decode Jpeg XR in memory using Python?
Thanks !
回答1:
imageio?
It supports JPEG XR, and can read from can read from filenames, file objects, http, zipfiles, bytes, webcams.
来源:https://stackoverflow.com/questions/32038280/how-to-decode-jpeg-xr-files-in-memory-using-python