I have started studying image processing and I am stuck here, please help me.
A gray scale image is represented by M by N matrix where the value of each element of the matrix is [0,255] which represents intensity.
example:
row 1 : 2,120
row 2 : 190, 40
This is 2 by 2 matrix which is a gray image.
Now I am getting confused and not able to get how to represent a RGB image where each pixel value or intensity is a mix of three values.
The definition says that,
An RGB image is represented with an M-by-N-by3 array where each 3-vector corresponds to the red, green, and blue intensities of each pixel.
But I am not able to understand the above sentence. Please help me to get the meaning.
Thank You in advance.