Now we will see how to represent an image digitally. We will start with grayscale images. A grayscale picture is one where shades of gray are the only colors in the image. The grayscale image is a simple form of the image, and so is easy to process with multiple applications. These are also known as black and white images. Let's look at an image of a car. This image is stored digitally in the form of pixels:
Each pixel has a number in it that ranges from 0 to 255. If a pixel's value is zero, that means the color is black. If its value is 255, it will be white. As this number increases, so does the pixel's brightness. In the following screenshot, we can see that the black pixels contain the number 0 and the white pixels contain the number 255. We can see pixels that are gray too, which occurs between the numbers 0 and 255. This is essentially how we represent the image in a decimal...