Re: how i can convert the color image into gray image using
Simple solution is ....
From color image you get the R G B values for a pixel
Take average R+G+B/3 and assign this to R G B do this for all the pixels
and you will get Grayscaled image
Re: how i can convert the color image into gray image using
Actually, just taking the average like that may not necessarily produce the desired result since the human eye is more sensitive to certain colors.
So what most people do is weight each of the RGB values differently according to how the human eye perceives thing. Example: