I'm doing image processing on 8-bit gray color images.
This code loads the data into array:
self.im = Image.open("example.bmp")
self.image = zeros([self.im.size[0], self.im.size[1]], Int)
i = 0
while(i < self.im.size[0]):
j = 0
while(j < self.im.size[1]):
self.image[i,j] = self.im.getpixel((i, j))
j=j+1
i=i+1
Is there a faster way to do it? For example using getdata() method of Image class?
And later how I can convert above array into Image without using slow putpixel method?
Marcin
_______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig
