I am trying to do some image processing work on python. I load the image using python imaging library. I want to do some morphological operations on the image. So, I used pymorph.
I couldn't apply the morphological operations using pymorph, on the images read using pil. I dont know why. Please help on this.
Next, I tried to read the image directly using pymorph.readgray() function. I am trying to read an RGB image. But, I got these error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/pymorph-0.90b-py2.5.egg/pymorph/mmorph.py", line 3571, in readgray
if numpy.alltrue(numpy.alltrue(y[0,:,:] == y[1,:,:] and
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Please help me on this too.
I would also like to know, what libraries are useful for doing image processing applications.
Thanks and regards