1. About.com
  2. Computing & Technology
  3. Graphics Software
Removing the Background
Photoshop Combination of Tools, Page 1

Removing the Background > Adobe Photoshop

The qualities of this image are such that no single technique is going to be very effective. The background is so close in color to parts of the girl's blouse that it makes the background eraser difficult to work with. The bottom half of the image is simple enough that the pen tool would be ideal, but the girl's hair presents some problems. I decided to use a combination of techniques; first, expanding on the channels trick used in the fireworks example and using levels to refine the mask, and then using the pen tool to isolate the girl's arms and sleeves to further refine the mask for the lower portion of the image. The entire process took approximately twenty minutes.


This images presents a few challenges... we'll use a combination of techniques to remove the background.

I started out by drawing a loose selection around the girl's hair with the freehand lasso tool.

lasso a selection around the hair

look at the channels palette for the channel with the most contrastNext I looked at the individual color channels to find the one that had the most contrast. You can see from the thumbnails to the right that the red channel clearly has the most contrast. So initially we'll use a duplicate of the red channel to create our alpha channel mask.

In the channels palette, drag the red channel to the new channel button to create a duplicate.

duplicating the red channel

A duplicate channel is created and named Alpha 1. This is what we'll be working with as a selection mask.

the duplicate channle becomes alpha 1

The loose selection we made with the lasso tool should still be active and we want to be working only in the Alpha 1 channel.

working in the alpha channel

Go to Image > Adjust > Levels to bring up the levels adjustment dialog. Drag the left and right sliders under the histogram toward the center...

performing a levels edjustment to refine the mask

...just enough that you increase the contrast as much as possible without loosing the fine wisps of hair. When you start to loose the strands of hair, you'll need to back off some and stop there.

the results of the levels adjustment

Next you can make another selection and adjust the levels again to increase the contrast even more. You can select different areas and repeat this as needed to make the best possible selection.

another levels ajustment to further refine the mask

Once you've gone as far as you think you can with the levels adjustments, use the paintbrush to fill in the rest of the face and hair with white. Take care not to go to far out to the edge and paint away the fine strands of hair. I got a little too close here on the left side of the girl's head.

painting in the alpha channel to edit the mask

Once the face is filled in, we can switch to a larger brush and fill in the lower part of the girls dress and arms.

painting in the alpha channel to edit the mask

Continue on to the next page to see how the mask was completed for the bottom portion of the image.

... Continued on Page 2

Example 1 2 3 4 5

Removing the Background > Adobe Photoshop

More Photoshop Tutorials

Questions? Comments? Post to the Forum!

Some images from Nova Development's Art Explosion 600,000.

Discuss in my forum

©2012 About.com. All rights reserved. 

A part of The New York Times Company.