Key


The Key toolset is where you control the green screen removal process. With some green screen photographs you may not need to make any adjustments, but if you need to fine tune the results this is where to do it.

There are numerous filters in the Key toolset. You can use as many or as few as you want by turning them on and off.

Simply click in the title bar of a filter to activate it.

UV blur

Some digital images lack the detail required for high quality keying, which can result in jagged edges to a key. The UV blur can help to enhance the digital information and avoid this problem.

If you notice 'stepping' at the edges of your foreground layer, like a pixellated staircase, then the UV blur should be turned on.

For high quality images the UV blur is not needed.

Type

A variety of different blur types are available. Which looks best will depend upon the image itself and the type of camera used. The gaussian blur is high quality and should suffice for most uses.

Blur

Adjust the amount of UV blur with this slider according to your own personal tastes.

Auto color difference

There are two methods for removing the green screen from your photos. The auto color difference is the simpler and less powerful option. See the auto chroma key section below for the more sophisticated alternative.

Color

When set to automatic, PhotoKey will attempt to automatically detect whether you are using a green screen or a blue screen.

If your screen is not being removed at all, try specifying your backdrop color manually.

Removal

By default, PhotoKey attempts to remove as much of the green screen as possible. With reflective materials this can sometimes cause parts of your subject to disappear as well.

If parts of your foreground are disappearing try lowering the Removal setting.

Detail

The detail slider is useful if PhotoKey is not removing all of your green screen. This can be particularly noticeable if the green screen is not lit properly.

Ideally you want the detail set to 100%, which is designed for optimal green screens with correct lighting and high quality images.

Lowering the detail will help to remove more of an unevenly lit green screen but may also reduce edge detail on the subject.

Softness

The softness adjusts the edge of the removed area, as set by the detail slider.

A high softness setting will create a soft, subtle feathering around the edge.

A low softness will create a hard, solid line.

The softness setting only takes affect if the Removal setting is below 100%.

Auto chroma key

New to PhotoKey 5, the auto chroma key is an advanced green screen removal tool that can handle a wider range of scenarios than the simpler auto color difference.

Auto chroma key gives you much finer control over your foreground image. Although it has more settings and is more complex it will often produce higher quality results.

View

The auto chroma key has three view modes in addition to the standard views available on the canvas.

Status view

The status view shows your foreground image as three colors.

Black = transparent.
White = opaque.
Grey = semi-transparent.

Here's an example of the status view:

statusview

In the above example you can see that the key is good around the couple's and shoulders, but the dress has become very transparent.

The status view is particularly useful because any pixel that is not solid or opaque is shown as grey, making it very easy to identify areas that need work.

Matte view

The matte view is similar to the status view, except the full range of greys are used to represent semi-transparency.

Here's the exact same image as shown above, instead using the matte view:

matteview

In this version you can see that the transparency is shown more subtly, with darker areas being more transparent and lighter areas being more opaque.

The matte view is useful for seeing exactly what the auto chroma key is doing to your foreground, but it can also be difficult to spot problem areas if they are very close to black or very close to white.

It's usually best to check your image using both the matte and status views.

Result

The result view shows the actual composited version of the foreground.

Here's the same shot as used above:

resultview

This shows why the status and matte view modes are very useful, as it's not easy to see the transparent areas in the result view.

Switching to the other view modes makes it much easier to identify areas which need fixing.

Color

The auto chroma key can remove any color from an image. It is optimized to work with green screen and blue screen, so you will always get better results using a professional green screen than you will using another generic color.

By default the filter is set to Auto mode. This analyzes the image and picks the optimum color for achieving good results.

If you want to pick your own color you can click the color box, or click and hold on the pipette icon to select any color on the screen.

Clicking the Auto button at any time will revert back to the Auto mode.

Gain

Gain is the base sensitivity of the chroma key.

This is best used for the initial background removal. It should be adjusted until the subject is isolated, though you don't want to push the gain too far as you will start to lose edge detail.

Here's an example of the effects of gain. With the default setting of 100 this image looks like this when in status view mode:

statusview

The background has been successfully removed, while keeping detail in the foreground.

With a lower gain of 36, the status view is very different:

gain2

In this example the background has not been removed successfully, though it has turned semi-transparent.

Raising the gain to 60, the result is halfway between:

gain3

In this case some of the background has been removed, but the area at the top is still visible.

Increasing the gain to 500 causes full background removal, but detail is also lost around the edges:

gain4

Gain should therefore be adjusted to remove the background but should not be pushed any further than is needed.

Balance & hue balance

These two settings adjust the emphasis of the chroma key, affecting the range of colors that are affected.

In practical use, it is usually best to try them at the minimum and maximum values to see which best suits your image.

Clip background

Crushes the black point of the matte, so that more parts of the image are removed. If parts of your green screen are still visible this should be used to remove them.

Clip foreground

Boosts the white point of the matte, returning detail to the foreground. If parts of your subject are semi-transparent, you should reduce the clip foreground to make them fully opaque.

This is the main setting to change if your foreground is losing detail.

Clip rollback

After adjusting the clip foreground you may want to return some of the semi-transparency to the outer edges of your foreground. This helps to create a softer edge, although increasing this setting too much will cause an undesirable band of semi-transparency around the edge.

Gamma

Adjusts the strength of the key. This can be useful for adjusting the fine detail at the edges of the key, particularly around hair and semi-transparent areas.

Erode/Expand

This works in a similar way to the standalone Erode filter and can be used to expand or erode the alpha matte. If you need to add or remove pixels from the edge of the key this can be very useful.

Subtract

Increasing the subtract setting removes the background color (for example, green if you're using a green screen) from the semi-transparent areas of the image. This can be very effective for reclaiming the correct color in semi-transparent areas, such as glass.

Recover

In some green screen photos you may see a thin, dark edge. This can be caused by lighting or compression methods in digital cameras and is most often seen on white clothing or along the edges of pale skin.

The recover setting can counter this problem by adjusting the colors of the outer pixels. Rather than using their actual color, instead they will take on the color of the pixels further inside the foreground.

Although this can be use to remove dark edging, if set to high you will see noticeable color banding around the edge of the key.

Erode

Some cameras record to compressed formats which can introduce edge problems under some conditions. Often the easiest way to fix this is to erode the keyed image, removing a layer of pixels around the outer edge of the keyed subject matter.

Erode should be used sparingly and only when absolutely necessary.

If you are using the auto chroma key you can use the integrated Erode/Expand setting instead.

Alpha levels

Adjusting the contrast levels of the alpha channel allows you to fine tune your key. This can be particularly useful with hair or lace and provides an additional level of control over the key.

Alpha blur

If you want a softer edge to your key you can add some alpha blur. This can also be useful if you are working with low quality photographs and need to disguise a problematic edge.

Crop

The left, right, top and bottom sliders can be used to crop the edges of the foreground image. This can be useful if your green screen did not fill the entire frame.

 

Spill suppression

Even a perfectly composited image can still suffer from color spill. This is when the green or blue of the screen is reflected on the subject. While this is often difficult to see in the original image, once it has been composited it becomes extremely obvious, resulting in unwanted color fringing around edges.

In this original photo the green spill is not immediately obvious to the naked eye:

spill1

Once the green screen is removed by PhotoKey, it is evident that there is green spill on the dress, particularly in the darker areas:

spill2

With PhotoKey's spill suppression turned on, the green tint to the darker areas is gone:

spill3

The amount of spill will vary depending on the subject and your green screen setup. White clothing as in the examples above tends to reflect green more obviously than other colors.

Apply

Spill suppression can be applied before or after masks.

If applied before, any masks that are set to retain will include the original coloring from the photo. This is useful if you are using masks to fix problems such as a disappearing green clothing, for example.

If applied after, the entire image will be spill suppressed, including any masked areas set to retain. This is useful if you are using masks to fix problems such as highly reflective materials or crystal.

Spill method

There are four types of spill suppression: standard, extended, advanced and spill simulation.

In most cases spill simulation will provide the best results, although standard and extended can also provide good results and are simpler to use.

Spill simulation

The spill simulation method gives you fine control over the spill suppression, ensuring high quality results.

View

You can switch to the despill view mode when using the spill simulation method. This shows exactly which parts of the image will be spill suppressed.

White = suppressed area.
Grey = partially suppressed area.
Black = not suppressed area.

You can use the despill view to make sure that only the areas that need spill suppressing are affected. This can be very useful for avoiding discoloration of your subject.

Amount

Varies the strength of the spill suppression.

Hue range, balance & hue balance

These three sliders area used to adjust how much of the foreground image is affected by the spill suppression. They are best adjusted when in the despill view.

Luminance

The spill replacement color can be used to replace the original green screen spill with a new color. If your background has a dominant color this can be extremely effective for creating a realistic composite.

Luminance determines how much the spill replacement color affects the brightness of the foreground.

Color

You can choose a new spill replacement color using the pipette or by clicking on the color box.

The default is a neutral grey R128 G128 B128.

Here is an example of spill replacement at work. First we have the keyed photo without any spill suppression, with green spill clearly visible:

spillreplace1

Here is the same foreground with extended spill suppression applied:

spillreplace2

It is clearly an improvement, with the green spill removed and changed to a neutral grey. However, the lighting on the bride does not match the bright pink background.

Here's a final example using spill replacement with the color set to pink:

spillreplace3

In this final example you can see that the dress and the edges of the lady's hair are now tinted pink, matching the background, without the skin tones being affected at all. The lighting on the bride now looks more appropriate for the background. Essentially the spilled light from the green screen has been realistically replaced with spilled light from our composited pink background. Note that the bride's skin is unaffected.

You can see how this works by looking at the despill view for this particular image:

despill

The black areas of the foreground remain unaffected - specifically the front of the dress and the lady's skin. The grey areas around the back of the dress and her hair are spill replaced with the pink color, creating the final image.

Used appropriately, spill replacement can massively improve the realism of an image without generic discoloring.

Standard and Extended

Strength

Standard and Extended both have a simple Strength setting that adjusts the amount of suppression.

Advanced

The advanced method is included to support legacy PhotoKey projects. For best results we recommend using the spill simulation method.

The Advanced method gives you more control over the spill suppression.

At its most basic, it can be used to replicate the standard spill technique. For a green screen image, lowering the green slider to -1 will produce the same results as using the Standard spill suppression, for example.

The Advanced mode gives you other options, however. Rather than simply subtracting all of the green channel from the image, you can instead reduce the green only slightly and instead add additional red and blue to counteract the effects of the green spill.

The Strength slider can then be used to adjust the intensity of the suppression.

Light wrap

This effect simulates the appearance of light from the background interacting with the foreground, as would happen with the normal photographic process.

Size

Alters the intensity of the light wrap. Adjust this to match the lighting in the foreground and background images.

Blend mode

There are several different light spill methods. 'Lighten' tends to be the most realistic but others are provided as well.

RECAP The Key toolset gives you full control over the green screen removal process.