Creating grayscale image of original picture

Converting an image to grayscale is really simple. You can create grayscale image by setting same value for Red, Green and Blue. It means RGB encoding supports 256 level of grays from (0,0,0), (1,1,1) throught (150,150,150) and finally (255,255,255). Tricky part to create grayscale image is to find replicated value or value level to form grayscale. For this we can find intensity of color by averaging color components. We all know there are three color components involved to form a color. (Red+Green+Blue)/3. Find the method below that produce fine results.

Original image is on right and grayscale image is on left

Original image is on right and grayscale image is on left

There is another technique to compute grayscale that considers luminance perceived by human eye. Human normally considers blue darker then red even if same amount of light reflected off. Here we weight blue lower and red more when computing average.

Original image is on right and grayscale image is on left

Original image is on right and grayscale image is on left

No Responses