Color Image
lets explore the image .
A color image contains 3 components rgb : red green and blue. In the above color image one pixel contains all the three values unlike grey image which contains one value in its one pixel. So a color image can be seen as combination of three grey image each corresponding to one color of rgb.
Similar to grey image , color image can also be considered as a 2d array and each element of array containing 3 values that corresponds to rgb and the pixels detail for above color image can be seen here.
It is very interesting to note that a grey image is average of all three component image.So to convert a color image into a grey image you just have to average the three components and the resulting value will correspond to a grey image.
three component image
=
=
+
+
+
+
avg=
avg=
color
red
green
blue
grey