[SciPy-user] Pickling Large (Image) Arrays

Keith Suda-Cederquist kdsudac@yahoo....
Tue Sep 23 17:28:56 CDT 2008


Hi All,

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?

Thanks,
Keith



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080923/58ee7833/attachment.html 


More information about the SciPy-user mailing list