it19
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Selection Techniques

Go down

Selection Techniques Empty Selection Techniques

Post by Wingedge Sat Aug 09, 2008 11:13 pm

Isolate objects. Extract objects. Cut out an image. Remove a background. Call it what you will, each of these phrases describes the same objective: take a photo and isolate an object in it from the rest of the image, without the background.



Browse any major Web store and you'll see this kind of imagery used heavily within product catalogues. Go to any stock photo or image source, and you'll find "photo objects" of various household items set against a blank white background.



But, without guidance, trying to achieve this effect with your own toot can be time-consuming and frustrating. You might try to use the lasso tool to outline the edges of the object (and then have to start all over when your mouse slips), or use the eraser brush to painstakingly wipe away pixels from the edges of the object. But a few attempts with these techniques result in crossed eyes and the beginnings of a migraine headache. There must be a better solution!



In this article, we'll explore five different methods to isolate objects in Photoshop. As you follow this tutorial, you'll gain a how-to explanation for each technique. You'll also get the stats on how long each method takes, and my opinions as to when each method is most appropriate.



The methods I'll demonstrate include:


  • Using Photoshop's Magic Eraser tool
  • Using Photoshop's Background Eraser tool
  • Using the Extract command
  • Using Quick Mask mode to make a selection and layer mask
  • Using the Pen Tool to make a selection and layer mask





Here's the image I'll be working with (the actual document is 800x600 pixels):



Selection Techniques Isolate01



I found a slightly wrinkled piece of white silky cloth and placed a stuffed animal on it. If you have control over the toot, a good rule of thumb is to try to provide a solid-colored background that contrasts with your object. (If I had a white object, I'd probably use a darker piece of cloth.) Of course, sometimes you just have to work with what you have. Don't worry, though: some of the techniques we'll discuss will work for any kind of toot!



Do you have a toot ready,and Photoshop open? Then, let's get started with the Magic Eraser technique…

Technique 1: The Magic Eraser Technique





Selection Techniques Isolate02



The Magic Eraser tool (hold down the Eraser icon in the toolbar to access it) allows you to erase pixels that are all the same color (or are a similar color). If you used the Magic Eraser tool at its strictest setting, and clicked on a part of the picture that was orange, every other pixel in the picture of that exact shade of orange would be erased. We'll use the Magic Eraser tool to erase the whites and greys in this photo.



First, we'll change a few of the tool settings. By increasing the Tolerance, the Magic Eraser tool will erase "similar" colors as well (whites/greys). By checking the "Contiguous" box, the Eraser tool will only grab pixels of similar colors that are next to each other -- that way, I won't accidentally erase the whites of the bee's eyes.



Selection Techniques Isolate03



My first pass is set to a Tolerance of 72. I click outside of the bee, in the "white" area. After only one click, Photoshop erases most of the background in the picture – not bad! If the Tolerance is too high, you might inadvertently grab some bits of the object as well. If that's the case, just Undo and try a slightly lower Tolerance level.



Selection Techniques Isolate04



For my next few passes, I set the Tolerance to 32, and use the Magic Eraser tool a few more times in the grey "shadow" areas. In the diagram below, the left image shows the shadow before I used the Magic Eraser. The right image shows how a bit more of the shadow is erased with a single click of the Magic Eraser!



Selection Techniques Isolate05



Unfortunately parts of the shadows are so dark that trying to use the Magic Eraser would end up erasing some of the black parts of the bee as well. So I stop using the Magic Eraser at about this point:



Selection Techniques Isolate06



From this point on, I switch to the "normal" Eraser tool and set it to Brush mode. I zoom in and erase the shadow portions by hand. I also create a new layer underneath this one, and fill it with red (or any other contrasting color) so that I can see the "smudges" that were missed by the Magic Eraser. Then, I use the Eraser tool to wipe those out as well.



Selection Techniques Isolate07



For the final touch, I add a drop shadow just to make the bee "pop out."



Selection Techniques Isolate08



Here's the summary:



Magic Eraser Technique:


  1. First pass using Magic Eraser Tool: 72 tolerance, contiguous, anti-aliased.
  2. Second pass using Magic Eraser Tool: 32 tolerance, other settings same.
  3. Used Eraser tool (brush mode) to clean up edges, stray pixels, and shadow area.





Total time: 4:08 minutes



My take: This technique makes it easy to isolate objects that are on solid-colored backgrounds, although you may need to spend some time with touch-up. Beware of stray pixels and forget about using this technique if you have a multi-colored background!

Technique 2: The Background Eraser Technique




Selection Techniques Isolate09



The Background Eraser Tool (again, hold down the Eraser tool to access this option) is meant to be used along the edges of an object. The center of the brush determines which similar colors to erase. The Background Eraser Tool will also change the edges of an object slightly so that you don't get a "color halo." We'll use the Background Eraser Tool to isolate and define the edges of the object, then erase the other pixels on the "outside."



Before you progress very far with this procedure, open the History Palette and, in the left column, click on the state to which you'd want to revert if you needed to "clean up" later on. If you're starting from scratch, this might be the only stage in the History Palette. In my case, I clicked on the state immediately before I started to use the Background Eraser (I got a little ahead of myself). We'll refer to the state you choose as the "source" for the History Brush.



Selection Techniques Isolate09a



The next step is to select the Background Eraser tool and choose a brush size that isn't too big, but will comfortably allow you to outline the image.



Selection Techniques Isolate10



You'll see a round cursor with a crosshair in the center. The important thing is to keep the crosshair from touching the actual object (if it does, the object will be erased). So, as you draw along the outside of the object, keep the crosshair just outside the object. You'll see that the outside's "similar colors" start to be erased.



Selection Techniques Isolate11



Continue around the entire object. You may notice that parts of the image get "eaten away." Don't worry – we'll use the History Brush later to bring those parts back.



Selection Techniques Isolate12



Here's the bee after I outlined it completely with the Background Eraser Tool:



Selection Techniques Isolate13



Now, let's get rid of the rest of the background. Select the Magic Wand tool, set the Tolerance to 100, check the Contiguous box, and then click on the background.



Selection Techniques Isolate14



Most of the background should be selected:



Selection Techniques Isolate15



Go ahead and hit the Backspace key to delete the background. Use the Eraser tool to clean up any obvious stray pixels.



Selection Techniques Isolate16



Now, select the History Brush tool. The History Brush allows you to paint over the image and "restore" the parts you paint to the "original state" that you selected in the History Palette.



Selection Techniques Isolate17



Adjust the brush size of the History Brush as necessary for detail work. Then, start to clean up the inside edges of the object, being careful not to go outside those edges.



Selection Techniques Isolate18



Finally, I use my red background trick again to catch some of the stray background pixels, then use the Eraser tool to get rid of them.



Selection Techniques Isolate19



My final image, with drop shadow applied, looks like this:



Selection Techniques Isolate21



Here's the summary:



Background Eraser Technique:


  1. Set source for the History Brush in the History Palette.
  2. Used Background Eraser Tool to outline the edge (2 minutes).
  3. Used the History Brush Tool to touch up parts of the object that had been erased (1:30 minutes).
  4. Used the Eraser Tool to clean up the stray background pixels (2:23 minutes).






Total time: 5:53 minutes



My take: This is my least favorite of the techniques because I had to zoom in a lot and use the History Brush Tool and Eraser Tool extensively. This technique would have worked better with an object that had solid edges (as opposed to the fuzziness of a plush animal), as well as a more-solid background color. A situation in which this technique might work well would be one in which you had a photo object that was already "isolated" on a white background, and you wanted to use it as a floating object in a layered composition.



Technique 3: The Extract Technique





As with the Background Eraser technique, it's a smart idea to set the source for the History Brush early in the procedure, in case you need to do some touch-up later on.



Selection Techniques Isolate22



Now, let's run the Filter > Extract command. (In earlier versions of Photoshop, this was located under the Image menu.)



Selection Techniques Isolate23



The Extract dialog box will appear. With the Brush tool selected, draw an outline around the object you wish to extract. The outline should overlap both the object and the background. Use a Brush size that is big enough for you to outline comfortably, but small enough to outline any details of the picture. (You may switch Brush sizes while you're outlining.) The outline will be highlighted in the window.



Selection Techniques Isolate24



If you need to zoom in while you're outlining, hold down the Space Bar to change the cursor temporarily to the "hand" icon. You can then click and drag to move around in the picture. Let go of the Space Bar when you're ready to go back to drawing.



When you've completed the outline, change to the Paint Bucket tool.



Selection Techniques Isolate25



Fill the areas that you wish to "keep" with the paint bucket tool.



Selection Techniques Isolate26



Click the Preview button to see how the object appears when extracted.



Selection Techniques Isolate27



Here's what my preview looks like. It's good enough for my purposes, so I click "OK" to apply the Filter.



Selection Techniques Isolate28



Again, I use the History Brush to restore parts of the object that were erased or partially erased.



Selection Techniques Isolate29



And again, I use the Eraser Tool to get rid of stray pixels around the edges.



Selection Techniques Isolate30



Here's the final picture (with drop-shadow applied):



Selection Techniques Isolate31



Extract Filter Technique:



  1. Set source for the History Brush in the History Palette.
  2. Use Filter > Extract command to outline, fill, and Extract object (1:45 minutes).
  3. Use the History Brush to restore parts of object (1:45 minutes).
  4. Use the Eraser Tool to clean up the edges (1:30 minutes).





Total time: 5 minutes



My take: This method, while a little faster, didn't seem much different from the Background Eraser technique. However, I have found that the Extract Filter works quite nicely when you have objects with a lot of fine details (like hair blowing in the wind, tree branches, etc.) that would be a pain to try to isolate. The Extract Filter works best with objects on solid-colored backgrounds.

Technique 4: The Quick Mask Technique





If you've never used Quick Mask mode in Photoshop, you're missing out on a huge time-saver! Quick Mask mode lets you use brush, pencil, paint bucket, etc. tools to paint an "inverse selection" using shades of grey and black. (Black identifies parts that won't be selected; grey identifies parts that, when selected, will have some level of transparency.) When you switch back to Normal mode, the "clear" parts of your Quick Mask are selected so that you can apply changes. We'll use Quick Mask mode to paint the background of the image, then apply a Layer Mask to hide the background.



Click the Quick Mask icon in the tool palette to switch to Quick Mask mode.



Selection Techniques Isolate32



Using a fairly large brush, with the foreground color set to black, I'll start to block out the background. You'll notice that the masked areas in which you paint will turn pink.



Selection Techniques Isolate33



The large brush size allows me to color in the main areas of the background fairly quickly.



Selection Techniques Isolate34



I can then use smaller brushes to fill in the details around the edges.



Selection Techniques Isolate35



Eventually, I have the entire background colored in pink:



Selection Techniques Isolate36



Tip: You may change the foreground color to white if you want to "paint back" parts of the object.



Switch back to Normal Mode, and you'll see the selection. Because everything that's painted in is not selected, the final result is that the bee is selected.



Selection Techniques Isolate37



At this point, I click the Layer Mask icon at the bottom of the Layers Palette to create a layer mask, which essentially isolates the bee from the background.



Selection Techniques Isolate38



So, here's the final picture:



Selection Techniques Isolate39



And in summary:
Wingedge
Wingedge
Admin

Male
Number of posts : 53
Age : 40
Name : Sir Francis
Year : Instructor
Registration date : 2008-06-17

https://it19.forumotion.com

Back to top Go down

Selection Techniques Empty Re: Selection Techniques

Post by Wingedge Sat Aug 09, 2008 11:14 pm

Quick Mask Technique:



  1. Switch to Quick Mask mode and paint everything you want to get rid of.

  2. Switch back to normal mode and use the resultant selection to make a Layer Mask.





Total time: 6 minutes



My take: A great method, because it gives you precision-control over what gets selected. This method works well for any picture -- solid background color or not. The only unfortunate aspect of this method is that, for some objects, you may see a "color halo" where the edges have picked up on some of the background color. (One way to get around this is to take a little more time and paint around the edges with a grey airbrush to make the edges a little transparent.)



Note: This same type of effect can be achieved by creating a Layer Mask, then painting on the layer mask with black paint to hide the background. The two techniques are virtually identical -- I just chose to write about Quick Mask because I've already covered the concept of Layer Masks in another article!

Pen Tool Technique





My final technique will be to use the Pen Tool to create a path that outlines the object, then use the path to create a selection for a Layer Mask.



Choose the Pen Tool. In the horizontal options bar, make sure that "Paths," not "Shape layer," is selected. Then, start using the Pen Tool to create a path around the object. I find that it's helpful to zoom in for greater detail.



Selection Techniques Isolate40



Here's my completely outlined bee. You can see all the different points that I created using the Pen Tool, as well as the resultant path.



Selection Techniques Isolate41



Open the Paths palette and Ctrl-click (Command-click for Mac) on the path layer. This creates a selection from the path. In the diagram, you can see the dotted line that shows the selection.



Selection Techniques Isolate42



If you have a pretty solid-shaped object, you can skip the next step. Because I have a fuzzy, plush object, I'm going to feather my selection slightly so that the edges will be a little blurred. I choose Select > Feather and make a Feather Radius of 1 pixel.



Selection Techniques Isolate43



Finally, I click the Layer Mask icon in the Layers palette to create a layer mask from my selection. This hides the background and isolates the bee.



Selection Techniques Isolate44



Here's the final picture:



Selection Techniques Isolate45



In summary:



Pen Tool Technique:





  1. Use the Pen Tool (set to "Paths," not "Shape Layer") to create an outline of the object.

  2. Ctrl-click (Command-click for Mac) the path layer to make a selection.

  3. Use the selection to create a layer mask.






Total time: 3 minutes



My take: This method works for any object, regardless of the background, and is also quite precise. It's reasonably fast if you're comfortable with using the Pen Tool; otherwise, this method might take a long time! This method is probably better for objects that have crisp, hard edges, and, similar to Quick Mask mode, you may have a slight color halo if the object has picked up some of the background colors.



Goodbye, Tension Headaches!



So, there you have it: five different ways to isolate an object from a background! Here's a quick summary of the different methods and when I think they're best used.






  1. The Magic Eraser Technique
    Great for erasing backgrounds that are mostly all the same color that contrast with the object (set a high tolerance and use one click!), but may involve a bit of touch-up work at the end. No good for objects that are on multi-colored backgrounds.




  2. The Background Eraser Technique
    This technique would be great on a photo object that is already "isolated" but has a solid, contrasting background color. Even still, I might pass up this technique for the next method, as they're essentially the same and I think the Extract method goes a little faster.




  3. The Extract Filter Technique

    Works best for erasing mostly solid-colored, contrasting backgrounds. Photoshop also does a nice job of getting rid of the color halo problem – but you may have to do some additional touch-up work at the end.




  4. The Quick Mask Technique
    Almost the ideal solution: relatively quick, pixel-perfect control over edges, and works with any kind of background. Plus, by using a layer mask, you don't actually delete any part of the background. The only complaint I have with this method is that you may get a color halo.




  5. The Pen Tool Technique
    Fantastic technique for objects with hard edges, and it works with any kind of background. You can be as detailed as you want to get a perfect outline, and you can always go back and modify the path if you need to. Plus, you get lots of practice using the Pen Tool.
Wingedge
Wingedge
Admin

Male
Number of posts : 53
Age : 40
Name : Sir Francis
Year : Instructor
Registration date : 2008-06-17

https://it19.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum