Did you see...

Photoshop Image Extraction with Channels

If you’re creating image composites, and especially if you’re working with stock images, you’ll find yourself needing to extract image elements from a white background. This can be a straightforward task with Photoshop, and often you’ll get better results with some of the old school techniques.

For example, take this image from Shutterstock. Here we have a figure on a white background, and your first thought might be, “I can make short work of this with Quick Selection Tool.” (Or the magic wand).

ChannelMask 01

However, let’s try that out. We’ll drag quick select around the image, then go back and drag in the “holes” to pick up the extra white areas:

ChannelMask 02

Now, we need to invert the selection (Select > Inverse). With the figure selected, we can press Ctrl-J/Cmd-J or choose Layer > New > Layer via Copy (I’ve renamed this layer to “Quick Select” for easy identification):

ChannelMask 03

Now let’s insert a black layer under our new layer and inspect the results. Looking closely around the edges, we find this, which is typical of Quick Selection:

ChannelMask 04

We could go on trying to tweak the quick selection, but that’s too much work. Let’s discard this and try another approach. If we return to the original layer and open the Channels panel, we can click on the red, green and blue channels to see each one separately, and we’re looking for one with the highest contrast:

ChannelMask 05ChannelMask 06ChannelMask 07

It seems to be the blue channel. So, we can drag that channel down to the “Create New Channel” icon, and we have a new channel called “Blue Copy.” Now, we click on this channel to make it active:

ChannelMask 08

ChannelMask 09

We are making a mask, so we want pure black and white. Bring up Levels (Ctrl-L/Cmd-L) and drag the black point slider to the right until all the gray areas become black. On some images, you may need to go over stray spots with a black brush:

ChannelMask 10

Remember the rule for masking: Black conceals, and white reveals. We want the figure selected, so all we need to do is to invert the mask by pressing Ctrl-I/Cmd-I or choosing Image > Adjustments > Invert:

ChannelMask 11

Now our mask is completed. (1) Click on the RGB channel to get back to your image (this is important). Then, (2) Ctrl-Click (Windows) or Cmd-Click (Mac) on the “Blue Copy” channel thumbnail. We now have our selection.

ChannelMask 12

We can go back to the layers panel, and again copy the selection to a new layer with Ctrl-J/Cmd-J as we did above. Adding our black layer in and checking the details, we see a much better edge:

ChannelMask 13

The overall result is superior! While the time to explain it was long, the actual process was simple:

  1. Duplicate channel (usually blue or green)
  2. Levels adjustment to drive all gray to black
  3. Invert the channel
  4. Load the channel as a selection by Ctrl/Cmd-Clicking

This takes seconds, and is way easier than fussing with the quick select tool. You may have more work to do if you want to composite this image onto a dark background, but for lighter backgrounds, we’re there with a few clicks every time.

Use this technique when you have an image that you’re trying to extract from a white background. This works great for logos and type as well.

 

 

About Michael Hoffman (224 Articles)
Mike has been a photographer, artist, educator, and technophile for most of his life. Early in his career, he created technical illustrations and photographs for electronic equipment manufacturers, and taught classes in computer aided drafting and 3D modeling software. When digital cameras became widely available in the late 1990s, the move was a natural one, and has led to a happy combination of technology, software, photography and art. Mike is an Adobe Certified Expert in Photoshop and Acrobat, and is well versed in Lightroom and Photoshop Elements, as well as Illustrator and InDesign. He has also contributed his time and efforts to the excellent work being done by Operation Photo Rescue, in restoring photographs damaged by natural disasters. As an active member of the National Association of Photoshop Professionals, he continues his quest for excellence in art, excellence in design, and excellence in education.

1 Comment on Photoshop Image Extraction with Channels

  1. suruha // 03/09/2013 at 8:15 pm //

    Put into four steps, this is easier to remember with this technique. Every time I tried this, I made it a bigger deal than it actually was. With several things, in PS, I have found they are really easy. They just look scarey! LOL I’m getting there!
    Thank you!

1 Trackbacks & Pingbacks

  1. Tutorials CW | Pearltrees

Leave a comment

Your email address will not be published.


*