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 assuming it is RGB mode: > >>>> r, g, b = im.split() > > What you really want is > > r, g, b = im.convert("RGB").split() > > > which is more suitable software for Image Processing > > applications, Matlab or Python? > > It depends what you are doing, what you are used to, and whether > you need to share it (Matlab is unavailable to many people). > And actually,a sbeyond PIL there is SciPY - a bundle of scientific modules for python which agregates most matlab functions and much more to pythojn, I hardle would see matlab as a better option in ay case. http://www.scipy.org/ -
js -><- > Douglas > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig