Hello Everybody

I am trying to do image processing in sage but unable to do so. I started 
with following code and got an error while reading an image.


sage: pylab.imshow(misc.lena())
<matplotlib.image.AxesImage object at 0x7fba3f201ad0>
sage: from numpy import *
sage: import scipy.ndimage
sage: import matplotlib.image
sage: import matplotlib.pyplot
sage: img = matplotlib.image.imread('/home/avi/Desktop/cat.jpg')
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-14-afa818854042> in <module>()
----> 1 img = matplotlib.image.imread('/home/avi/Desktop/cat.jpg')

/opt/sageL/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/image.pyc
 
in imread(fname, format)
   1240 
   1241     if ext not in handlers.iterkeys():
-> 1242         im = pilread(fname)
   1243         if im is None:
   1244             raise ValueError('Only know how to handle extensions: 
%s; '


-- Avi kaur

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to