QUANTIZATION ERROR
Figure 1: Curve to Lighten Image
Figure 2: Highlight Tonal Values Before and After Editing
Quantization error is due to the digital nature of digital images. When image editing is performed, Photoshop runs the digital numbers (e.g., tones) through formulas to determine the new numbers. However, the new numbers have to be rounded off to the nearest digital number (e.g., a new tone of 157.43 would be rounded to 157). Consequently, two or more tones can be rounded off to the same tonal number. The information that is rounded off is thrown away forever. Thus, information is lost in the rounding process and quantization error occurs.
Figure 3: Histogram before Image Editing
Figure 4: Histogram after Image Editing Showing Quantization Error
Figure 5: Curve to Darken Image
The use of fourteen bit images does not stop quantization error. However, it does make it less noticeable. Since there are many more tones in a fourteen bit image than in a twelve bit image, the loss of the tones due to quantization error will be less noticeable in the higher bit image.
BLACK AND WHITE
A twelve bit color image has three color channels. Each channel has 4,096 shades. Since the interpolation uses all three channels when calculating the color, a twelve bit color image has 4,0963 = 68,719,476,736 possible colors. However, if a twelve bit image is converted to black and white, the image will have only 4,096 shades of gray. This is because different colors have the same gray value. This is shown in Figures 6 and 7. Figure 6 shows two colors. The first color has the RGB values of 200, 100, 100. The second color has the values of 100, 100, 200. These are clearly distinct colors. However, Figure 7 shows what happens when the colors are converted to grayscale. They have the same tonal values.Since a fourteen bit file has four times as many gray tones as a twelve bit file, the fourteen bit file has an advantage when editing black and white images (i.e., the fourteen bit file will have less problems with posterization and quantization error).
Figure 6: Two Colors
Figure 7: Gray Values of the Two Colors
COLOR SPACES
Bit depth also plays a role in color space selection. The bits of a digital file must be spread across the entire color space that is used with an image. When wide color spaces are used, the bits must be spread farther apart to cover all of the colors. This increases the possibility of posterization (especially in the shadows). Since a fourteen bit file places the colors closer together, due to the increased number of tones, a photographer can use a larger color space with less risk of posterization.BITS AND DYNAMIC RANGE -- A FALLACY
Sometimes, people try to equate bit depth (e.g., eight bit, twelve bit, or fourteen bit files) with dynamic range. I have heard comments that JPEG files have a smaller dynamic range than raw files because the JPEG files are only eight bit while the raw files are usually twelve or fourteen bit. This is an incorrect statement. While it is true that some JPEG files have less dynamic range than files that were converted from raw, it has nothing to do with bit depth. Rather, the dynamic range of a camera is determined primarily by the characteristics of the sensor (e.g., the size of the sensor and the microlens).What the bit depth does determine is tonal range. Tonal range is the number of tones from the darkest to the lightest tones. A twelve bit file has a tonal range of 4,096 tones, and a fourteen bit file has a tonal range of 16,384 tones. In other words, as covered previously, the larger bit depth files have the tones more closely spaced than lower bit files.
The reason that cameras with large dynamic ranges often have large bit depths has to do with posterization. As the dynamic range becomes larger, the tones become spaced farther apart. When the image is edited, the tones will likely become spread even farther apart. If the tones become spread too far apart, posterization occurs. To reduce the possibility of posterization, large dynamic range cameras usually have large bit depths so that the tones are spaced closely together. This produces smooth tonal transitions.