4 The Arithmetic of Color DepthResolution isn't the only factor governing the quality of your images. Equally important is the number of colors in the image. When you view a natural scene, or a well done photographic color print, you are able to differentiate millions of colors. Digital images can approximate this color realism, but whether they do so on your system depends on its capabilities and its settings. How many colors there are in an image, or how many a system can display is referred to as color depth, pixel-depth, or bit depth. Older PCs are stuck with displays that show only 16 or 256 colors. However, almost all newer systems include a video card and a monitor that can display what's called 24-bit True Color. It's called true color because these systems display 16 million colors, about the number the human eye can discern.
How do bits and colors relate to one another? It's simple arithmetic. To calculate how many different colors can be captured or displayed, simply raise the number 2 to the power of the number of bits used to record or display the image. For example, 8-bits gives you 256 colors because 28=256. Here's a table to show you some other possibilities.
Black and white images require only 2-bits to indicate which pixels are white and which are black. Gray scale images need 8 bits to display 256 different shades of gray. Color images are displayed using 4 bits (16 colors), 8 bits (256 colors), 16 bits (65 thousand colors) called high color, and 24 bits (16 million colors) called true color. Some cameras and scanners will use 30 or 36 bits per pixel. These extra bits are used to improve the color in the image as it is processed down to its 24-bit final form. (Ed note: Are there any 30/36 bit monitors or printers?)
Exploring Color DepthThis figure and Part 4 on the Excel worksheet "Image Size Calculator" calculate the total number of pixels in an image when you enter the images width and height in pixels. 1. Enter any bits per pixel from the table of color depths (on line 7 and following) on this line. 2. A formula on this line calculates the number of possible colors by raising the number 2 to number of bits per pixel. 3. Enter the width of the digital image in pixels on this line. 4. Enter the height of the digital image in pixels on this line. 5. A formula on this line calculates the total number of pixels in the image by multiplying the image’s width by its height. 6. A formula on this line calculates the size of the uncompressed file that would be needed to store the image of the size and color depth you’ve entered. File sizes are shown in bytes, kilobytes, and megabytes. |
||||||||||||||||||||||||||||||