[Image-SIG] Example Code for Displaying Pictures--I'm Stumped

Christopher Barker Chris.Barker at noaa.gov
Wed Nov 25 18:19:12 CET 2009

Wayne Watson wrote:
> David, I have many video files, but only want to process them one at a 
> time. The format is unique, but simple. Basically, 640x480 b/w bmp 
> images one right after the other.

In here:


Under "image sequences" there is enough info to tell you want to do if 
PIL understands your format.

What happens when you point PIL at the file? Does it find the first 
image? does it find more than one? If not, then you may need to break 
them apart yourself before feeding them to PIL.

Also if it's as simple as a binary dump of a standard data type, then 
you could probably use numpy's "fromfile" to read the data in, you could 
then covert to a PIL image for the histogram, or just use numpy's 
histogram functions to compute it.

You may want to post a (small) sample file here, and others can take a 
look if you're still confused.


Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the Image-SIG mailing list