90 The Art and Science of Digital Compositing
suggestions could easily cause more problems than they solve, depending on the
matte in question.
Remember that any changes you make to the matte channel must also be
reflected in the RGB channels if you are already dealing with a four-channel,
premultiplied image. Do not simply blur or dilate the matte channel of a four-
channel image, or you will most likely end up with a noticeable matte line when
you go to composite your element over a background. We will assume that you
are working with matte images that are separated from the RGB images and
consequently will not remind you of the matte/image relationship for every
situation in which it may be applicable.
Holes in the Matte
It is not uncommon to find that a particular matte pull has some undesirable
‘‘holes’’ in it. These holes are usually caused by grain or noise in the bluescreen
element—grain that contains enough variance so that certain particles have color-
ing identical to the backing. The ideal way to eliminate this sort of thing is with
the use of garbage mattes, but if this is not practical, you may be able to apply
something like a median filter, which will remove single-pixel anomalies.
Another technique for dealing with excessively grainy bluescreen elements is
to apply a very slight blur to the original bluescreen element, extract a matte from
this blurred element, and then use this extracted matte in conjunction with the
original bluescreen plate. By slightly blurring the bluescreen plate, the most egre-
gious grain or noise will be toned down, and a cleaner matte can then be pulled.
However, we don’t actually want to have a softened foreground element in our
scene, so we revert to the original, unblurred element for our image. This can be
combined with our clean matte to produce what one hopes is a better composite.
Incidentally, there may be situations in which a few small holes in the fore-
ground matte are not going to be noticeable. If the background is not significantly
brighter or darker than the foreground, the holes will reveal something that is
fairly neutral and innocuous. They will, at worst, appear to be a bit of grain on
the element.
Hard Edges
Attempts to create a solid matte for the subject while completely removing the
backing area will often involve a distinct threshold between the two areas. This
can, as a side effect, produce a fairly hard edge to the matte. This is usually
undesirable, since in the real world, even very sharp objects will have a slightly
soft edge when viewed from a distance. The simple solution is to apply a slight
blur to the matte channel, although by doing so you run the risk of introducing
a matte line, since a blur will typically spread both outward and inward. You
may end up doing some additional processing on the matte after the blur, to
alleviate such problems. If your matte was too hard only in certain areas, you