from numpy import *
from PIL import Image
ar = ones((100,100),float32)
ar = ar * 100
for i in range(0,100):
- ar[i,:] = 100 + (i * 1.5)
im = Image.fromarray(ar,"F")
Many examples of numpy usage can be found at http://www.scipy.org/Numpy_Example_List
Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.
from numpy import *
from PIL import Image
ar = ones((100,100),float32)
ar = ar * 100
for i in range(0,100):
im = Image.fromarray(ar,"F")
Many examples of numpy usage can be found at http://www.scipy.org/Numpy_Example_List
numpy Examples (last edited 2009-09-17 11:38:05 by pool-71-191-70-199)