Video analysis with numpy...

Fredrik Lundh fredrik at pythonware.com
Mon Dec 6 07:28:40 EST 1999


Travis Oliphant <olipt at mayo.edu> wrote:
> > Does anyone have any general advice on using python/numpy (or some
> > other module) for this purpose?
> 
> I have a module called signaltools that may be of interest to you.  It is
> at http://oliphant.netpedia.net
> 
> Packaged with that module is another tool that I use frequently called
> numpyio.  It reads arbitrary binary data directly into numpy arrays. 
> 
> You didn't mention what format your files are in.  I have used the PIL to
> read and write various image data formats before.  It would be really nice
> if the PIL interoperated even more smoothly with NumPy arrays

an interesting exercise would be to write an image
loader that used PIL's "tile descriptor" mechanism
together with numpyio to read data directly into a
numpy array.

see
http://www.pythonware.com/library/pil/handbook/decoder.htm
for more info on tile descriptors.

> but you can
> always go back and forth between the two using the fromstring() functions
> and the tostring() methods of the two packages.

it would be *very* nice if the multiarray module was
added to the python core...  (any volunteers?)

</F>





More information about the Python-list mailing list