134 The Art and Science of Digital Compositing
IMAGE VIEWERS
Certainly the most basic tool is one that can display a single image. It should
allow the user to view individual channels of the image, including the alpha and
Z-depth channels, and to zoom in and out of various areas of the image to see
more detail. If the image you are viewing is of a greater resolution than your
computer’s monitor, your viewer should allow you to see a portion of the image
at a true one-to-one pixel ratio and to resample the image so that you can see the
entire image on your screen.
As you make iterative changes to your images, you will often need to do a
detailed comparison between various trials. The best way is to be able to view
the two images either by rapidly flipping between them or by interactively wiping
or mixing back and forth between them.
If you are working with images that are stored in some sort of nonstandard
color space, you may also find it useful to be able to apply a compensating LUT
to the image when it is viewed. This LUT is strictly for display purposes: The
data in the image is not changed; rather, the color conversion happens only in
the viewing tool, for the benefit of the viewer. Chapter 15 discusses a couple of
different situations in which this sort of functionality will be useful.
FLIPBOOKS
Not only will you want to view a single image, but most of the time you will
also want to be able to look at a sequence of images, ideally at a fast enough rate
so that they appear as a moving sequence. This type of viewer is often known as
a ‘‘flipbook’’ tool, a term that goes back at least as far as the days of traditional
animation, when one would quickly flip through a stack of sequential images to
check the motion. The abilities of most flipbook tools are very tied to the hardware
that you are using. Many flipbooks are reliant on the amount of main memory
in the system for how many frames they can display as a moving sequence. Large
images will mean that the system can display a shorter sequence, and smaller
images will allow a longer sequence.
If you want to compute the amount of memory that will be needed for a
computer to display a given image, don’t assume that you can simply look at the
file size of the image as it is stored on disk. Flipbooks generally need to uncompress
an image before displaying it, and if your image file uses any compression then
this size will not give you an accurate estimate. What you can do, usually, is to
compute the amount of memory required by simply multiplying the width of the
image (in pixels) by the height of the image (in pixels) by the number of bits per
channel that your flipbook uses (which will generally never be more than eight,
since this is the maximum most monitors will support) by the number of channels
that the flipbook will display (usually three or four, depending on whether your