Module 12
Image and Text Data
,How computer understand images
● The smallest element of an image is called a pixel, or a picture element.
● It’s basically a dot in the picture
● An image contains multiple pixels arranged in rows and columns.
● In color images, pixels are often represented in the RGB color model.
● RGB stands for Red Green Blue. Each pixel is a mix of those three colors.
● Since a computer only understand numbers, every pixel is represented by three
numbers, corresponding to the amounts of red, green, and blue present in that pixel.
● In grayscale (black and white) images, each pixel is a single number, representing the
amount of light, or intensity, it carries. In many applications, the range of intensities is
from 0 (black) to 255 (white).
● An image is represented by its dimensions (height and width) based on the number of
pixels. For example, if the dimensions of an image are 500 x 400 (width x height), the
total number of pixels in the image is 200000.
, ● Grayscale - A pixel is an integer with a value between 0 to 255 (0 is completely
black and 255 is completely white).
● RGB - A pixel is made up of 3 integers between 0 to 255 (the integers represent
the intensity of red, green, and blue).
● RGBA - It is an extension of RGB with an added alpha field, which represents the
opacity of the image.
Image and Text Data
,How computer understand images
● The smallest element of an image is called a pixel, or a picture element.
● It’s basically a dot in the picture
● An image contains multiple pixels arranged in rows and columns.
● In color images, pixels are often represented in the RGB color model.
● RGB stands for Red Green Blue. Each pixel is a mix of those three colors.
● Since a computer only understand numbers, every pixel is represented by three
numbers, corresponding to the amounts of red, green, and blue present in that pixel.
● In grayscale (black and white) images, each pixel is a single number, representing the
amount of light, or intensity, it carries. In many applications, the range of intensities is
from 0 (black) to 255 (white).
● An image is represented by its dimensions (height and width) based on the number of
pixels. For example, if the dimensions of an image are 500 x 400 (width x height), the
total number of pixels in the image is 200000.
, ● Grayscale - A pixel is an integer with a value between 0 to 255 (0 is completely
black and 255 is completely white).
● RGB - A pixel is made up of 3 integers between 0 to 255 (the integers represent
the intensity of red, green, and blue).
● RGBA - It is an extension of RGB with an added alpha field, which represents the
opacity of the image.