[Image-SIG] Convert to Black and White to an image

Narendra Sisodiya narendra at narendrasisodiya.com
Fri Jan 7 18:04:11 CET 2011

Can somebody give an easy way to convert a image into black and white using
a given threshold..

Currently I am doing like this

    for i in range(0,width):
        for j in range(0,height):
            if image.getpixel((i,j)) <= 200:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110107/e9e9d686/attachment.html>

More information about the Image-SIG mailing list