Page 204 - Ai_C10_Flipbook
P. 204
Task 21 st Century #Creativity
#Technology Literacy
Skills
Visit: https://www.w3schools.com/colors/colors_rgb.asp. On the basis of this online tool, try and
answer the following questions.
1. What is the output colour when you put values of R, G, B as 255 respectively?
2. What is the output colour when you put values of R, G, B as 0 respectively?
3. How does the colour vary when you put either of the three colours as 0 and then keep on varying the other two?
4. How does the output colour change when all the three colours are varied in same proportion?
5. What is the RGB value of your favourite colour from the colour palette?
How does a Computer See Images?
Every coloured image that is stored can be split into 3 different channels, i.e., Red (R), Green (G) and Blue (B), with
different intensities. The computer identifies the value related to each pixel and determines the size and colour of
the image.
Each channel is like a layer or plane of the image, focusing on one colour component (red, green, or blue). Every
channel contains a grid of pixels, and each pixel has a value between 0 and 255. where,
• 0 means no intensity for that colour.
• 255 means full intensity for that colour.
For example:
• A pixel value of [255, 0, 0] means maximum red intensity with no green or blue, so the colour is bright red.
• A pixel value of [0, 255, 0] means maximum green intensity with no red or blue, so the colour is bright green.
• A pixel value of [255, 255, 255] means full intensity for all three channels, resulting in white.
When the computer combines the values from the red, green, and blue channels for each pixel, it creates the final
colour of that pixel in the image. The three channels together define the colour image. It is the standard format
used in most digital screens, cameras, and editing software.
For example, in the given, if we split the image into
three different channels, namely Red (R), Green R
{G) and Blue (B), the individual layers will have the
following intensity of colours of the individual pixels.
These individual layers when stored in the memory
looks like the image on the extreme right i.e. grayscale G
image because each pixel has a value intensity of 0 to
255 and as studied earlier, 0 is considered as black or
no presence of colour and 255 means white or full
presence of colour. These three individual RGB values B
when combined form the colour of each pixel.
Additionally, understanding these individual layers
is critical for various image processing tasks, such as colour correction, filtering, or transformations, where
manipulating the intensity values of specific channels can significantly alter the overall appearance of the image.
Each pixel in an RGB image, therefore, is not a single value but a combination of three values that together define
its complete colour.
202 Artificial Intelligence Play (Ver 1.0)-X

