[SciPy-user] Pickling Large (Image) Arrays
Tue Sep 23 17:28:56 CDT 2008
I'm doing some image processing on some rather large images (2000x2000 pixels and each pixel has 16 bits) so the file comes in at 7-8 MB. During the image processing I convert the image to a 64-bit float numpy array and do a bunch of operations on the image.
In certain cases (where tests fail), I'd like to save all the data to a file to take a look at later and debug. I need to keep the size of this file as small as possible.
I'm thinking of writing some code that will round pixel values to an 8-bit unsigned integer and then pickle the data to a file. Is this the a good approach? Can anyone suggest a better approach? Will this actually succeed in reducing the file size, or will I just be wasting my time?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user