Re: [Image-SIG] matlab vs Python for Image Processing applications

2008-02-11 Thread Joao S. O. Bueno
On Monday 11 February 2008, Douglas Bagnall wrote: > TAN TH wrote: > import Image > im = Image.open("D:/test.gif") > print im.format, im.size, im.mode > > > > GIF (409, 460) P > > The "P" is telling you that the image is in palette mode (as all > gifs > > are), but here you are assum

Re: [Image-SIG] matlab vs Python for Image Processing applications

2008-02-11 Thread Douglas Bagnall
TAN TH wrote: import Image im = Image.open("D:/test.gif") print im.format, im.size, im.mode > GIF (409, 460) P The "P" is telling you that the image is in palette mode (as all gifs are), but here you are assuming it is RGB mode: r, g, b = im.split() What you really want is

[Image-SIG] matlab vs Python for Image Processing applications

2008-02-11 Thread TAN TH
which is more suitable software for Image Processing applications, Matlab or Python? I have tried something very simple in Python, which is from the pdf, http://www.pythonware.com/media/data/pil-handbook.pdf however, it gives error. anyone able to help? >>> import Image >>> im = Image.open("D:/t