Page 318 - AI Ver 3.0 class 10_Flipbook
P. 318

Grayscale Images

              Grayscale images are images made up of different shades of gray, ranging from black to white, but without any
              colour or hue. It only contains brightness information, meaning they don’t have any colour data (like red, green, or
              blue). Each pixel just represents a certain level of brightness or gray, so you don’t see vibrant colours, but you can
              still see details in different light or dark areas of the image. The darkest shade is black, representing the complete
              absence of colour with a pixel value of 0. The lightest shade is white, indicating the full presence of colour with a
              pixel value of 255.
              In Grayscale images, each pixel is made up of 1 byte (which is 8 bits). This byte stores the pixel’s brightness level,
              with values from 0 (black) to 255 (white). A pixel’s value determines how dark or light it appears on the image.
              The pixels in a grayscale image are arranged in a 2D grid (a flat array of rows and columns). The image's height
              (number of rows) and width (number of columns) define the size of the image. For example, a grayscale image
              with a height of 100 pixels and a width of 200 pixels would have 20,000 pixels in total.
              Grayscale images are simpler to process and take up less memory compared to coloured images. This makes them
              useful in situations where colour isn’t necessary, like certain types of scans, medical images, or old black-and-white
              photos. The value of pixels is within the range of 0-255 for an image.
              The images we see, computer stores them in the form of numbers.




















              RGB Images

              All coloured images around us are made up of 3 primary colours of Red, Green and
              Blue. All the colours are made by mixing these primary colours in varying intensity.     R         B
              Every coloured image when split is stored in the form of 3 different channels, R
              Channel, G Channel and B Channel. Each channel has a pixel value varying from
              0-255. For example, if we see the turquoise colour RGB band would look like [64,
              224, 208]. In a coloured image a single pixel contains red, green and blue values in       G
              triplets.



                             Task                                                          21 st  Century   #Creativity
                                                                                               Skills
                                                                                                   #Technology Literacy

                  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?




                    316     Touchpad Artificial Intelligence (Ver. 3.0)-X
   313   314   315   316   317   318   319   320   321   322   323