In order to convert the images to grayscale, we need to extract these color components and convert an image into grayscale by using the following formula
(red Intensity + green Intensity + blue Intensity )/3.0
Here is the result of a particular GrayScaled Image