The input to our network when we are doing image recognition is an image.
Now that image can be either black and white which is also known as grayscale image or it can be colored
in a grayscale image.
Each pixel contains only one information and the information is how wide is that pixel.
So usually it is seen on a scale of 0 to 255 255 means completely white.
Zero means completely black and any value in between 0 and 255 is a shade of gray.
But in a coloured image each pixel has three values instead of one.
These three are R G and B that is red green and blue.
It turns out that receptors in human eye perceive color as the combination of these three colors only
these are called primary colors.
If you mix these three in different quantities you will get different colors
so each pixel has three values value for each of these primary color varies from 0 to 255 and depending
on what combination of these three values do we have.
We can see the corresponding color in the pixel.
So if all three values are 255 we get light color.
If red and green are 255 and blue is 0 we get yellow
hair in this animation.
You can see that when all three colors overlap we get white color when red and green overlap we get
yellow when blue and green overlap.
We get to see on and on here.
I have also mentioned one example.
If you want to create but particular here are the values of our G and B setting these values will give
you by particular.
So if each pixel has three values we can say that the entire image is made up of three layers one layer
made up of red color values called the red channel.
One layer made above green color values called green channel and one layer made up of blue color values
called the Blue channel.
So you need to remember that whenever we work with a grayscale dataset such as fashion amnesty you have
only one channel.
But whenever we work on color image we need to take into account the three color channels.
Also
to demonstrate to you a color image is made up of three channels.
I have created pixels using cells of Excel worksheet
contended that this pixel is a bundle of these three cells.
So the first pixel is bundle of three cells one cell to take rate value one where a green and one will
take Blue value and the way that they make one pixel the value in these cells correspond to R G and
B values and we have used conditional formatting to color these cells depending on their value
so if you look at this cell this cell has value to thirty one so it is giving us a bright green color
the cell to the right of this has only forty seven value which is why it is dark so if it is zero it
will be completely black.
If it is 255 it will be bright green and anything in between is a grayscale of green color it similarly
walks with red and blue general also.
Now if we are looking at individual pixels we cannot make out the image but when we start zooming out
you start seeing the image.
Do you see a normal colored image of the model
isn't this somewhat magical.
We were able to create a colored image using only three colors.
You can see on the borders other than the model you can see white color although there were only red
green and blue colors.
This is because our eyes perceive a combination of these three colors as white.
This is our computer and mobile phone screens also look for each point or pixel on the screen.
There are three small light bulbs one for each red green and blue color.
And with these three channels only we see so many beautifully colored images on our screens.
I would like to mention here.
This website which I used for creating this Excel image thing.
Matt Dore Gold or UK you can just upload any image here and it creates this are G.B. pixilated excel
file for it.
It is an amazing and fun tool.
Do check it out.