[BangPypers] Convert to Black and White to an image

Narendra Sisodiya narendra at narendrasisodiya.com
Sat Jan 8 05:49:46 CET 2011


On Sat, Jan 8, 2011 at 10:14 AM, Venkatraman S <venkat83 at gmail.com> wrote:

> 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.


I am sorry but your code snippet was less efficient then what i posted
initially. moreover, I was having black and white image.
However the problem got solved by point method as described in this thread.
http://mail.python.org/pipermail/image-sig/2011-January/006641.html



> 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