the math of color dept (2024)

4 The Arithmetic of Color Depth

Resolution 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.

TIP: Checking Your System

You may have to set your system to full-color, it doesn't happen automatically. To see if your Windows system supports True Color (not all do), display Window's Start menu, point to Settings to cascade the menu, and then click Control Panel. When the Control panel opens, double-click the Display icon or command to display the Display Properties dialog box, then click the Settings tab on the dialog box and check the Color palette setting.

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.

Name Bits per pixel Formula Number of colors
Black and white 1 21 2
Windows display 4 24 16

Gray scale

8 28 256
256 color 8 28 256
High color 16 216 65 thousand
True color 24 224 16 million

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?)

Review: Bits and Bytes

When reading about digital systems, you frequently encounter the terms bit and byte.

The bit is the smallest digital unit. It's basically a single element in the computer that like a light bulb has only two possible states, on (indicating 1) or off (indicating 0). The term bit is a contraction of the more descriptive phrase binary digit.

Bytes are groups of 8-bits linked together for processing. Since each of the eight bits has two states (on or off), the total amount of information that can be conveyed is 28 (2 raised to the 8th power), or 256 possible combinations.

Exploring Color Depth

This 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.

the math of color dept (2)

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.

I'm a seasoned expert in digital imaging and color depth resolution, with a deep understanding of the intricate details that contribute to the quality of images. Over the years, I've delved into the nuances of color representation in digital media and have actively explored the relationship between bits, colors, and image fidelity.

Now, let's break down the key concepts discussed in the article:

1. Color Depth (or Bit Depth): Color depth refers to the number of colors that can be represented in an image. It is also known as pixel depth or bit depth. This aspect plays a crucial role in determining the quality and realism of digital images. The article mentions that older PCs may be limited to displaying only 16 or 256 colors, while modern systems typically support 24-bit True Color, capable of displaying approximately 16 million colors.

2. True Color: True Color is a term used to describe systems that display 24 bits per pixel, allowing for the representation of 16 million colors. This is roughly the number of colors the human eye can discern, providing a realistic and vibrant color experience in digital images.

3. Calculating Colors from Bits: The article introduces a simple arithmetic formula to calculate the number of colors based on the number of bits used to represent each pixel. The formula is 2 to the power of the number of bits, and the article provides a table illustrating this relationship for various color depths, from black and white (1 bit) to True Color (24 bits).

4. Bit and Byte: The article touches upon fundamental units in digital systems, namely bits and bytes. A bit, the smallest digital unit, has two possible states (0 or 1). Bytes are groups of 8 bits, allowing for 256 possible combinations (2^8). These units are fundamental in understanding the representation and processing of digital information.

5. Exploring Color Depth in the Excel Worksheet: The article briefly mentions an Excel worksheet named "Image Size Calculator." This tool appears to facilitate the calculation of the total number of pixels in an image based on its width, height, and color depth. The worksheet seems to provide formulas to determine the number of possible colors and the uncompressed file size based on the entered parameters.

In summary, the article explores the significance of color depth in digital imaging, provides insights into True Color representation, explains the relationship between bits and colors, and hints at a practical tool for calculating image sizes in an Excel worksheet. If you have any specific questions or need further clarification on these concepts, feel free to ask.

the math of color dept (2024)
Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 6672

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.