Re: [BangPypers] Convert to Black and White to an image

2011-01-11 Thread Noufal Ibrahim
On Tue, Jan 11 2011, Anand Balachandran Pillai wrote: [...] > Correction - "as moderator of this forum", still you can go and take a > hike. +1 and take the 25000+ hits on Google and the rest of the "credentials" with him. [...] -- ___ BangPypers

Re: [BangPypers] Convert to Black and White to an image

2011-01-11 Thread Venkatraman S
On Tue, Jan 11, 2011 at 1:59 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > > Correction - "as moderator of this forum", still you can go and take > a hike. > :) Anywayz, i was planning to post the following reply initially when this thread started, but opined that i will first u

Re: [BangPypers] Convert to Black and White to an image

2011-01-11 Thread Anand Balachandran Pillai
On Tue, Jan 11, 2011 at 1:58 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > > > On Mon, Jan 10, 2011 at 10:10 PM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > >> On Mon, Jan 10, 2011 at 9:38 PM, Venkatraman S >> wrote: >> >> > On Sat, Jan 8, 2011 at 10:34 AM, Narend

Re: [BangPypers] Convert to Black and White to an image

2011-01-11 Thread Anand Balachandran Pillai
On Mon, Jan 10, 2011 at 10:10 PM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > On Mon, Jan 10, 2011 at 9:38 PM, Venkatraman S wrote: > > > On Sat, Jan 8, 2011 at 10:34 AM, Narendra Sisodiya < > > naren...@narendrasisodiya.com> wrote: > > > > > Yes, I need black and white image, and

Re: [BangPypers] Convert to Black and White to an image

2011-01-10 Thread Narendra Sisodiya
On Mon, Jan 10, 2011 at 9:36 PM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > > > I am sorry but your code snippet was less efficient then what i posted > > initially. > > > > Are you sure? > > ofcourse !! you have said yo

Re: [BangPypers] Convert to Black and White to an image

2011-01-10 Thread Narendra Sisodiya
On Mon, Jan 10, 2011 at 9:38 PM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 10:34 AM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > > > Yes, I need black and white image, and I was having a grayscale image, I > > have posted initially this thing. > > you posted a RBG to black a

Re: [BangPypers] Convert to Black and White to an image

2011-01-10 Thread Venkatraman S
On Sat, Jan 8, 2011 at 10:34 AM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > Yes, I need black and white image, and I was having a grayscale image, I > have posted initially this thing. > you posted a RBG to black and white algorithm - even if somebody has RBG , > why one should us

Re: [BangPypers] Convert to Black and White to an image

2011-01-10 Thread Venkatraman S
On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > I am sorry but your code snippet was less efficient then what i posted > initially. > Are you sure? ___ BangPypers mailing list BangPypers@python.org http://mai

Re: [BangPypers] Convert to Black and White to an image

2011-01-08 Thread Narendra Sisodiya
On Sun, Jan 9, 2011 at 2:58 AM, Kenneth Gonsalves wrote: > On Sat, 2011-01-08 at 09:23 +0530, Narendra Sisodiya wrote: >> I wanted to know more appropriate mailing list where PIL developer sit >> and >> they can help. > > you asked for python in general - not for PIL I just read my mail. many tim

Re: [BangPypers] Convert to Black and White to an image

2011-01-08 Thread Kenneth Gonsalves
On Sat, 2011-01-08 at 09:23 +0530, Narendra Sisodiya wrote: > I wanted to know more appropriate mailing list where PIL developer sit > and > they can help. you asked for python in general - not for PIL -- regards Kenneth Gonsalves ___ BangPypers maili

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:22 AM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > > > > > I am sorry but your code snippet was less efficient then what i posted > > initially. moreover, I was having black and white image. > > >

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > > I am sorry but your code snippet was less efficient then what i posted > initially. moreover, I was having black and white image. > I thought you needed BW image. (I should read properly!!) Also, can yo

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:14 AM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya < > naren...@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 c

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya < naren...@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 sufficien

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 6:55 AM, Kenneth Gonsalves wrote: > On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: > > What is the general mailing list to ask question on python ? > > you are not satisfied with this list? > -- > regards > Kenneth Gonsalves > This is not a question of satisfa

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 23:07 +0530, Venkatraman S wrote: > > > What is the general mailing list to ask question on python ? > > > > > This is one. > > There is also: http://mail.python.org/mailman/listinfo/baypiggies > > And http://mail.python.org/mailman/listinfo/python-list > > > > > I dont think

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: > What is the general mailing list to ask question on python ? you are not satisfied with this list? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 11:00 PM, Roshan Mathews wrote: > > What is the general mailing list to ask question on python ? > > > This is one. > There is also: http://mail.python.org/mailman/listinfo/baypiggies > And http://mail.python.org/mailman/listinfo/python-list > > I dont think baypiggies is t

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Roshan Mathews
On Fri, Jan 7, 2011 at 22:04, Narendra Sisodiya wrote: > Can somebody give an easy way to convert a image into black and white using > a given threshold.. > > Currently I am doing like this > >    image=ImageOps.grayscale(image) >    for i in range(0,width): >        for j in range(0,height): >  

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 10:04 PM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > Currently I am doing like this > >image=ImageOps.grayscale(image) >for i in range(0,width): >for j in range(0,height): >if image.getpixel((i,j)) <= 200: >image.p

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 10:27 PM, kunal wrote: > On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: > >> Can somebody give an easy way to convert a image into black and white >> using >> a given threshold.. >> >> Currently I am doing like this >> >> image=ImageOps.grayscale(image) >> for i i

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread kunal
On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if i

[BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if image.getpixel((i,j)) <= 200: image.putp