Image Representation
In this lesson, you will learn how images are represented in a computer system.
Types of images
The following are the common types of images used in digital computers.
A black and white image
These images require representation of just two colors per pixel. Each pixel with the value 0 represents the color black, while each pixel with the value 1 represents the color white. The total number of pixels in an image can be found by multiplying the number of horizontal pixels with the number of vertical pixels.
Answer this question before moving forward.
What is the total number of pixels in the above figure?
A grayscale image
A grayscale image is one in which the value of each pixel is a single sample representing only an amount of light. In other words, it carries only intensity information. Each pixel in a grayscale image typically contains a number between 0 and 255. Therefore, each pixel requires 8 bits at most ...