[BangPypers] Convert to Black and White to an image

Venkatraman S venkat83 at gmail.com
Sat Jan 8 05:44:08 CET 2011


On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya <
narendra at narendrasisodiya.com> wrote:

> http://mail.python.org/pipermail/image-sig/2011-January/006639.html
>
>
So i tried my code snippet and it worked. The above thread asks you to
convert to greyscale and then do a pixel check.
For a sufficiently big picture(given most of the pictures today are >2-5MB,
this is expensive operation.
My code snippet, essentially iterates through the pixels in one go and based
on the threshhold of each of the RGB values, suitably converts it to B or W.


More information about the BangPypers mailing list