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:
http://www.pythonware.com/library/pil/handbook/introduction.htm
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.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
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.bar...@noaa.gov
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig