Re: show image in python

2010-03-12 Thread News123
Philip Semanchuk wrote: > > On Mar 10, 2010, at 5:03 PM, mohamed issolah wrote: > >> Hey, This is my program >> >> 18 def Creeimg(): >> 19 """transforme matrice en image""" >> 20 img = Image.new ("L",(8,8)) >> 21 matrix = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] >> 22 im

Re: show image in python

2010-03-11 Thread mohamed issolah
hey #!/usr/bin/python 2 import PIL 3 import numpy 4 import Image import ImageOps import sys def Matimg(path): """transforme image en matrice""" Img = Image.open(str(path)) Img1 = ImageOps.grayscale(Img) largeur,hauteur = Img1.size i

Re: show image in python

2010-03-11 Thread Philip Semanchuk
On Mar 10, 2010, at 5:03 PM, mohamed issolah wrote: Hey, This is my program 1 #!/usr/bin/python 2 import PIL 3 import numpy 4 import Image 5 import ImageOps 6 import sys 7 8 def Matimg(path): 9 """transforme image en matrice""" 10 Img = Image.open(str(path)) 11