Sub topic 5
Selecting objects with the Object Selection tool
The Object Selection tool lets you mark a rough area around an object and have Photoshop find the object's edges inside it. This chapter covers how the tool works, its two modes, the options that change its results, and the errors you are most likely to hit.
This chapter assumes you know the Photoshop workspace (toolbar, Options bar, Layers panel), the difference between a layer and the Background, and how to use Shift and Alt/Option as modifier keys. It also assumes you have read the chapter on new, add, subtract, and intersect selection modes, because this tool relies on them.
What the tool does
The Object Selection tool is in the same toolbar group as the Quick Selection tool, the Magic Wand, and the Select Subject button. Its shortcut is W. Press W repeatedly, or Shift+W, to cycle through the tools in that group.
You give the tool a hint, either a rectangle or a loose loop around the object. Photoshop analyzes the pixels inside that hint, detects the object, and snaps the selection to its edge. You do not need to trace the edge yourself.
The tool works best on clearly defined objects such as a person, a car, a bottle, or a chair. It is less reliable on soft shapes with no clear boundary, such as fog, a shadow, or a patch of grass.
Compare it with the Quick Selection tool. Quick Selection grows a selection from the brush strokes you paint, and it follows color and texture edges. Object Selection starts from a region and asks Photoshop to decide what the object is. Object Selection is usually faster when a distinct object sits against a busy background.
The two modes
The Options bar has a Mode menu with two choices: Rectangle and Lasso. The mode decides how you draw the hint.
Rectangle mode
In Rectangle mode, you drag a box around the object. The box must fully contain the object but can include some background. Photoshop shrinks the result to the object's edge inside the box.
Use Rectangle mode when:
- The object is roughly compact and box-shaped.
- Other objects do not overlap the box.
- You want the fastest possible result.
Lasso mode
In Lasso mode, you draw a freehand loop around the object. The loop is only a hint, so it can be loose. The path does not need to hug the edge.
Use Lasso mode when:
- The object is irregular, such as a person with outstretched arms.
- A rectangle would also contain a neighboring object you do not want.
- You need to exclude a nearby area that a box would include.
A common mistake is to trace the edge carefully in Lasso mode. This wastes time. A loop drawn a few pixels outside the object works as well as a careful trace.
| Situation | Better mode |
|---|---|
| Single object, clear space around it | Rectangle |
| Object with irregular outline | Lasso |
| Two objects close together | Lasso |
| Long thin object at an angle | Lasso |
Making your first selection
Follow these steps with any photo that has a distinct object.
- Open the image and unlock the layer if it is a Background layer you plan to edit.
- Choose the Object Selection tool with W.
- In the Options bar, set Mode to Rectangle.
- Drag a box around the object. Start outside one corner and end outside the opposite corner.
- Release the mouse. Photoshop shows marching ants around the detected object.
If the result is wrong, press Ctrl+D (Windows) or Cmd+D (macOS) to deselect, then try again with a different hint. You can also fix the selection by adding to it or subtracting from it, covered below.
Object Finder and hover preview
Recent versions of Photoshop include Object Finder, a checkbox in the Options bar. When it is on, Photoshop analyzes the whole image as soon as you choose the tool. As you move the pointer over the image, it highlights the object under the pointer in a colored overlay. Click once to select the highlighted object.
Object Finder changes the workflow in two ways:
- You can select an object with a single click and skip drawing a hint.
- You can still drag a rectangle or loop. Photoshop then uses your hint as before.
Object Finder needs a moment to analyze the image, and the Object Finder label may show a short loading state. If you turn the option off, the tool falls back to the older behavior and waits for a drag. The exact options differ between Photoshop versions, so check your Options bar if a control is missing.
Options bar controls
The following controls appear in the Options bar when the Object Selection tool is active. Names and placement can differ slightly by version.
| Control | What it does |
|---|---|
| Selection mode buttons | New, Add, Subtract, Intersect |
| Mode | Rectangle or Lasso |
| Object Finder | Highlights objects on hover and selects with a click |
| Sample All Layers | Analyzes the visible composite, not only the active layer |
| Enhance Edge | Smooths the selection border and aligns it more closely to the edge |
| Subtract from Selection | Lets a drag remove part of the selection |
| Select and Mask | Opens the Select and Mask workspace |
Sample All Layers
When Sample All Layers is off, Photoshop analyzes only the pixels on the active layer. When it is on, Photoshop analyzes what you see on screen, combined from all visible layers.
This setting causes a frequent error. If you have a photo on one layer and a graphic on another, and the tool selects the wrong thing or finds nothing, check which layer is active and whether Sample All Layers matches your intent. An empty layer gives the tool nothing to analyze, and it will produce no useful selection.
Enhance Edge
Enhance Edge applies extra processing so the selection follows the object edge more closely and has a smoother outline. It is useful on objects with clean edges. On hair, fur, or foliage, the result can look too smooth and lose fine detail. For those subjects, leave it off and refine in Select and Mask instead.
Building a selection with modes
Object Selection works well with the add, subtract, and intersect modes, and the first result is often close but not exact. You can switch modes from the Options bar or use keys.
- Shift + drag adds to the selection.
- Alt/Option + drag subtracts from the selection.
- Shift + Alt/Option + drag intersects with the selection.
When you add or subtract, each new drag gets the same object analysis. For example, if Photoshop selected a person but missed a held umbrella, hold Shift and drag a rectangle around the umbrella. Photoshop finds the umbrella and merges it into the selection.
If Photoshop included too much, hold Alt/Option and drag a loose loop around the extra area in Lasso mode. Photoshop removes the object it finds inside the loop.
The most reliable pattern is:
- Make a first selection with a loose hint.
- Zoom in and look at the edges.
- Add missing objects with Shift.
- Remove extra areas with Alt/Option.
- Finish in Select and Mask if the edges still need work.
Choosing the right hint
The size and shape of your hint affect the result. These rules help you avoid most bad selections.
- Include the whole object. If your hint cuts through the object, Photoshop only sees part of it. The result may be a fragment.
- Keep the hint tight on busy backgrounds. A very large hint with many objects inside makes the tool pick whichever object it judges most prominent.
- Keep other objects outside the hint. In Lasso mode, route the loop around neighbors.
- Select one object at a time. To select two objects, select the first, then Shift + drag around the second.
If the tool selects the background instead of the object, the hint probably contained more background than object. Draw a tighter hint, or use Alt/Option to subtract the background.
Edge cases and common errors
The selection includes a shadow or reflection
The tool treats a shadow as part of the object when it is attached and dark. Subtract it with Alt/Option and a loop around the shadow. If the shadow blends into the object, use the Lasso tool in subtract mode for a precise cut.
The tool selects nothing
Check these causes in order:
- The active layer is empty or hidden, and Sample All Layers is off.
- The layer is locked or a smart object with transparent areas under your hint.
- The hint is too small to contain an identifiable object.
- The image is very low contrast, so Photoshop cannot separate the object.
Edges are jagged or too soft
A jagged edge shows a stair-step pattern when you zoom in. Turn on Enhance Edge, or use Select > Modify > Smooth. A soft edge that blurs into the background points to feathering, which is set elsewhere. Check Select > Modify > Feather if you applied it earlier, and see the chapter on edge properties.
Fine detail such as hair is lost
Object Selection makes a hard-edged selection. It does not model semi-transparent pixels, so hair strands, fur, and glass will not be captured well. Use the result as a starting point, open Select and Mask, and use Refine Hair or the Refine Edge Brush there.
The selection is slightly offset or has a halo
You might see a thin fringe of the old background around the selected object once it is moved to a new image. Reduce it by choosing Select > Modify > Contract by 1 or 2 pixels before you copy the object. Select and Mask also has a Decontaminate Colors option for this problem.
Object Selection versus its neighbors
Choosing among tools is covered in the final chapter of this tutorial. A short comparison helps for now.
| Tool | You provide | Photoshop decides | Strongest case |
|---|---|---|---|
| Object Selection | A box or loop | Where the object edge is | Distinct objects on busy backgrounds |
| Quick Selection | Brush strokes | How far each stroke grows | Large areas with consistent color or texture |
| Select Subject | Nothing | Which object is the main subject | A fast first pass on a single clear subject |
| Lasso tools | A traced path | Nothing, the path is the selection | Shapes where you need full control |
Select Subject uses similar detection but picks the main subject on its own. Object Selection gives you control over which object is chosen.
Practice workflow
Use this sequence on a photo with a person standing in front of a building.
- Select the Object Selection tool and set Mode to Lasso.
- Draw a loose loop around the person. Keep the loop outside the body but inside the building area.
- Zoom to 100% and inspect the outline. Look at the hands, feet, and any bags or accessories.
- Add missed items with Shift + drag. Subtract extra pieces with Alt/Option + drag.
- Click Select and Mask in the Options bar and clean up the hair.
- Output to a layer mask so the original image stays intact.
Exercise
You drew a rectangle around a dog and Photoshop selected the dog but also a fence post touching its back. Which action removes the post, and why does that action work?
Show answer
Switch to Lasso mode, hold Alt/Option, and drag a loose loop around the fence post. In subtract mode the tool runs its object detection on the area inside the loop and removes whatever object it finds there from the existing selection. The loop does not need to follow the post's edge because it is only a hint.
Exercise
The Object Selection tool selects nothing when you drag around a logo that sits on a separate layer above a photo. The active layer is the photo layer. Name the setting you would check first and the change you would make.
Show answer
Check Sample All Layers. With it off, the tool analyzes only the active photo layer and cannot see the logo. Turn it on so the tool analyzes the visible composite, or click the logo layer in the Layers panel to make it active.
Exercise
You selected a person with long, loose hair and the outline looks hard and cut out. Should you turn on Enhance Edge to fix it? What should you do instead?
Show answer
No. Enhance Edge smooths the outline and tends to remove fine detail, so it makes hair look worse. Open Select and Mask from the Options bar and use Refine Hair or the Refine Edge Brush, then output to a layer mask.