module for assessing gray levels of gray level bitmap?
Fredrik Lundh
fredrik at pythonware.com
Wed Mar 20 14:08:09 EST 2002
Oliver Pust wrote:
> is there a module for assessing the gray levels of gray level bitmap? I
> am thinking of a module that allows to open a bmp-file and stores the
> gray levels of each pixel in form of a matrix e.g. gray_level[x,y].
http://www.pythonware.com/products/pil/index.htm
from PIL import Image
im = Image.open("myimage.bmp")
print im.getpixel((x, y))
</F>
More information about the Python-list
mailing list