252 The Art and Science of Digital Compositing
discuss this further in a moment. But if we simply want to view the images, it
may be easier to adjust the viewing device (the computer’s monitor) so that it is
darkened by a gamma of 0.45.
2
This adjustment will display the images at the
proper brightness without the need to preprocess every frame. As we mentioned
earlier, certain flipbook tools will make it even easier, allowing you to load a
specialized color table that modifies the way that images are displayed on the
system’s monitor.
For film images, a more complex nonlinear conversion is often used, which
takes into account various idiosyncrasies of how film stock responds to varying
exposure levels. The most common file format used to store film images is the
Cineon file format, which includes a specification for conversion into a nonlinear
‘‘logarithmic color space.’’ A logarithmic curve is again similar to the curve shown
in Figure 15.5. The Cineon file format is discussed in a bit more detail in Appendix
C, and an example image using Cineon encoding is shown in Plate 54.
Although you may have chosen to store images in a nonlinear format, you will
almost always want to convert these images back to linear space before working
with them because of the way in which color corrections will affect an image that
is stored in a nonlinear space. Consider the image shown in Plate 55, which is an
example of a simple color correction in which the red, green, and blue channels
have been multiplied by constant values of 1.2, 1.2, and 0.8, respectively. The left
side of the image was corrected in linear space, and comparing any pixel with
the original image will show a red value that has been reduced by 20%. The right
side of the image, however, was first encoded into a nonlinear color space (in this
example we used the Cineon specification), and then the same multiplication was
done. Once the color correction was applied, the image was restored to linear
space. As you can see, a fairly slight color correction in linear space has become
rather drastic when applied to a nonlinearly encoded image. In particular, notice
how the midtones have changed quite a bit more than the darker areas of the
image. This problem can be particularly vexing when working with bluescreen
elements—attempts to reduce blue spill may result in undesirable shifts in flesh
tones, for instance. Even the simplest image-combination tools can produce differ-
ent results when they are used on nonlinear images.
Although there are certainly operations that do not have this problem (geometric
transformations work equally well on images that are stored in any color space,
2
Although we state that you should ‘‘darken your monitor by a gamma of 0.45,’’ this does not
necessarily mean that you should explicitly set your monitor’s gamma at 0.45. Rather, you will need
to first determine what monitor settings are needed to give your monitor a linear response and then
add the adjustment on top of that setting. Different systems will have different (often poorly
documented) controls for adjusting the monitor to respond linearly to a video signal, and consequently
there is no way that we can tell you exactly what setting should be used.