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