Hi all - I'm playing with editing image data converted from PIL objects, and
running into a situation where numpy tells me that an 'array is not
writable'. Not sure I understand what that means, or how to get around it.
Here's a sample interactive session:

>>> import Image
>>> import numpy as np
>>> im = Image.open("rgb.0001.jpg")
>>> a = np.asarray(im)
>>> a.shape
(512, 512, 3)
>>> a.dtype
dtype('uint8')
>>> a[0,0,0]
254
>>> a[0,0,0] = 10
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: array is not writeable


Any help appreciated. Thanks,
Mark

PIL 1.1.6
numpy 1.2.1
Ubuntu 9.04

-- 
--
Mark Wendell
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to