Removing Grey Areas in the Key
 
 
 

Once you have added softness, check to see if there are any grey areas in the key resulting from the setting. If so, there are several techniques to remove the grey areas:

In this section, two methods are shown: using Negative Sampling to refine the softness range, and using the Patch tool to create “selective keys” in the white areas of the matte. To learn other ways to remove unwanted grey areas, see Techniques for Adjusting Softness.

Negative Sampling

This is probably the simplest method of removing greys from the matte. You sample in the unwanted grey area to subtract those colour values from the softness range.

Try this method first to see if it solves the problem. However, if the colour values in the foreground subject are too similar to those at the edges, you may remove too much of the softness.

To perform negative sampling:

  1. Click CurResult (or press F4). Identify the unwanted grey areas in the matte.
  2. Select Sample Softness from the Sampling box.
  3. Press Alt and click a grey area. Gently drag the cursor over the area.

    If the negative sampling removed too much of the desired softness or brought back graininess, click Undo and try another method.

Adding a Patch

Patches are another type of sample you can take in the image window. Unlike tolerance and softness, you can specify the colour that a patch sample renders on the matte. Patch samples can be rendered as white, black, or any shade of grey on the matte. You can also set the opacity of a patch.

One use for patches is to remove unwanted grey areas from the matte. Use a patch to isolate a range of colours from those that have been included in the softness range, then set the colour you want the pixels to have on the matte. Sampling a patch to remove grey areas in the key is similar to creating a garbage mask by keying instead of drawing.

You can use up to three different patches in a key.

To sample a patch:

  1. From the View box, select CurResult (or press F4).
  2. Identify the unwanted grey areas in the matte.
  3. In the Sampling box, set the sample type to Patch1 (or press Shift+1).

    Show small imageShow large image

  4. In the Patches box, select Patch 1.

    Show small imageShow large image

    (a) Patches box  (b) Active button  (c) Patches Softness field  

  5. Enable Active.
  6. Specify the colour in which you want to render the patch. In this example, make the patch white by setting the P1(Patch 1) Colour to 100 (this is the default value). To render the sampled values as black, enter a value of 0. Use a value between 0 and 100 for any shade of grey.
  7. Sample the unwanted grey area by dragging the cursor over it.

    The grey areas of the matte corresponding to the colour values sampled are changed to white.

    All the colour values sampled are included in the patch. Notice the patch in the RGB viewer, represented by a white wireframe box. All colour values in the box will be rendered white on the matte.

    Show small imageShow large image

  8. If necessary, sample again to add to the patch. Watch the edges to make sure they are not affected by the sample.
    TipTo remove colour values from the sample, press Alt as you sample. To undo a sample, click Undo.
  9. If needed, soften the edges of the patch by dragging the cursor to the right or left in the Patches Softness field.

    A negative softness value softens the edges of the patch inwards from the edge. A positive value softens the edges outwards beyond the edge, adding softened pixel values to the patch.

    TipYou can view softness as a red wireframe box when the patch is displayed in Box mode. See Changing the Patches Display.
  10. If needed, adjust the opacity of the patch using the P1 Opacity field A value of 100% renders the patch as fully opaque. A value of 0% renders the patch as fully transparent.

    The RGB viewer now contains three key elements:

    • The tolerance sample (as an ellipsoid)
    • The softness sample (as an ellipsoid)
    • The patch (as a white wireframe box)

For instructions on completing the key using the basic keying technique, see the sections referred to in 3D Keying Workflow.