I'm trying to locate the 'x' positions of certain pixels. Here's and example image:
http://img404.imageshack.us/img404/3418/10x.png
if I run this code it gives me the 88 'odd' pixels that I'm looking for:
from PIL import Image
i = Image.open('10x.bmp') # I save it as a bmp
for pixel in i.getdata():
if pixel [2] > 0:
print pixel
Now that I have the pixels, I can't figure out how to locate the 'x' positions. How is this done?