Hi Tan,
> which is more suitable software for Image Processing
> applications, Matlab or Python?
do you know OpenCV? It has a fairly useable Python wrapper and is one
of the most complete image processing libraries in the open source
world. Also, it's one of the fastest ...
http://sourcefor
If there's something you want to do and you know how to do it in matlab and
you only need to do it once you may be best off using matlab. It will take 1
min to program and 10 min to run.
If you can't get the right visualization and want the flexibility and power
of writing the tool yourself there
Python, of course! Just kidding, I don't know enough about Matlab to answer
that question well. Python's great for image processing though.
As far as your code, my guess is the output of split() when fed a gif isn't
in r g b format? Try running your code on a JPEG, works just fine. But with
a GIF
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
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
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