The Extract filter provides a sophisticated way to isolate a foreground object and erase its background on a layer. Even objects with wispy, intricate, or undefinable edges may be clipped from their backgrounds with a minimum of manual work. You use tools in the Extract dialog box to specify which part of the image to extract.
When you extract the object, Photoshop erases its background to transparency. Pixels on the edge of the object lose the color components derived from the background, so they can blend with a new background without producing a color halo.

You can add back opacity to the background and
create other effects using the Edit > Fade command after
an extraction.
To
avoid losing the original image information, duplicate the layer
or make a snapshot of the original image state.
. You
also use the Brush Size option to specify the width of the Eraser,
Cleanup, and Edge Touchup tools.
, and
draw to define the edge of the object you want to extract. Drag
so that the highlight slightly overlaps both the foreground object
and its background. Use a large brush to cover wispy, intricate edges
where the foreground blends into the background, as with hair or
trees.
Use either the Zoom tool or the Hand tool
to adjust the view as needed.If you need to erase the
highlight, select the Eraser tool
, and
drag it over the highlight. To erase the entire highlight, press
Alt+Backspace (Windows) or Option+Delete (Mac OS).
If the object has a well-defined interior, make sure the highlight forms a complete enclosure. You do not need to highlight areas where the object touches the image boundaries. If the object lacks a clear interior, highlight the entire object.
If
the object has a well-defined interior, select the Fill tool
. Click
inside the object to fill its interior. Clicking a filled area again
with the Fill tool removes the fill.
If you’ve selected Force Foreground, select the
Eyedropper tool
, and
click inside the object to sample the foreground color, or click
in the Color text box and use a color picker to select the foreground
color. This technique works best with objects that contain tones
of a single color.
Choose new Highlight and Fill options and draw again with the Edge Highlighter tool. Define the foreground area once more, and then preview the extracted object.
Specify new Extraction settings (Smooth, Force Foreground, or Color) and then preview the extracted object.
When you are satisfied with the extraction, you can do the final touchups.
To erase background traces in the extracted
area, use the Cleanup tool
. The
tool subtracts opacity and has a cumulative effect. You can also
use the Cleanup tool to fill gaps in the extracted object. Hold
down Alt (Windows) or Option (Mac OS) while dragging to
add back opacity.
To edit the edge of the extracted object, use the
Edge Touchup tool
. The tool
sharpens edges and has a cumulative effect. If there is no clear
edge, the Edge Touchup tool adds opacity to the object or subtracts
opacity from the background.
You can also clean up the image after an
extraction by using the Background Eraser and History Brush tools
in the toolbox.