From: Francesc A. <fa...@ca...> - 2005-10-13 09:16:33
|
Hi Philippe, A Dimecres 12 Octubre 2005 15:13, phi...@ho... va escriure: > The Hdf5 library is able to store image (file with .png, .jpg extension > i guess). Well, HDF5 has a high level API for graphics: http://hdf.ncsa.uiuc.edu/HDF5/hdf5_hl/doc/RM_hdf5im.html But this is not meant for dealing with .png or .jpg formats, but rather with raw RGB image formats. In any case, this API is not supported yet on PyTables. > Is there some routines in pytables to do this easily? If you want to use PyTables to save images right now you have a couple of possibilities: 1.- If you want to save pure PNG or JPG or whatever format natively, use the FileNode module: http://pytables.sourceforge.net/html-doc/usersguide5.html Of course, your application will have to provide the machinery to decode this afterwards. 2.- If you want to use native RGB codifications, use an *Array container with several dimensions (one per color channel) in order to keep it. HTH, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |