Removing objects

MarkBarbieri

Semi-retired
Joined
Aug 20, 2006
Ever want to remove an object from a picture? There are many ways to do it. Here are some that I've used along with their pros and cons.

Layering
If the thing you want to remove isn't staying in one place, you can do it by taking several pictures and combining them. Let's say that you want a picture of the Magic Kindgom's Main Street but with absolutely no people. Go when there aren't many people. Put your camera on a tripod. Take a picture every minute for 20 or 30 minutes. Then stack the images in Photoshop on different layers. Whenever there is someone in the picture you want to remove, use a mask to erase that part of the layer so that the layer below it shows through. This trick only works when the things you want move. If someone stays in the same place during all of your pictures, you won't have a layer that doesn't include them. This trick is also much harder when the light changes significantly between your pictures because the different layers will look different.

In the example below, I took 5 pictures with the camera on a tripod. One picture had no people in it. The I took one picture for each person doing a handstand along with two people standing beside them holding up their legs. I masked out the helpers to reveal the picture with nobody in it.
Clark Family Handstand.jpg

Cloning
If the thing you want to get rid of is over an area with very little detail, you can often "clone" over it. The clone tool, let's you pick an area in a picture and copy that over the object you want to remove. For example, let's say that there is an errant soccer ball on the field that you want removed, you can just clone similar parts of the field over it. When you don't have to worry about details, it's easy, When you have details to replicate, it can get very tedious or difficult. You can do this in Photoshop, Lightroom, or any decent image editing tool.

Content Aware Fill
Adobe has a tool called Content Aware Fill. It works like the cloning tool, but it does it automatically and somewhat intelligently. You tell it what parts of the photo to sample from and then it fills in the area to be removed with what it finds in those sample areas. Once again, it works well when there aren't any details. If the details are regular (like a pattern of bricks), it sometimes does a great job. If the details aren't regular, it occasionally works but usually botches it. But it can give you a starting point that you can clean up with some tedious cloning.

Remove Tool
The latest Photoshop tool is the Remove Tool. You draw over the object you want removed and then it uses artificial intelligence to figure out what should be there. From what I've seen so far, it works much better than Content Aware Fill.

Cropping
This is the simplest and often the best approach. If you can, just crop your image so that the unwanted object is no longer in the image.

This is a nice enough picture, but I don't like the trash cans on the bottom right. I could clone them out, but that would take me 20 minutes.
MB5_7233.jpg

Here is the same image using Content Aware Fill on both the text and the trashcans. You can see that it did a bad job with the details for both areas.
caf_MB5_7233.jpg

Here is the same image with the trashcans removed using the Remote Tool. Not perfect, but good enough for most purposes. I could clean it up a bit with clone tool (maybe 1 minute) and it would look good.
MB5_7233-Edit.jpg

Here's what I think is the best approach for this picture. Just crop out the trashcans. Problem solved.
MB5_7233-Edit-2.jpg

Here is a dance picture with some distracting heads in front of the subject.
Original.jpg

Here's what it looks like after the heads and microphone were removed using the Remove Tool. The heads and the microphone area gone. At first glance, it looks great. Then you notice that the cheerleaders where the heads were lost their feet!
Second.jpg

To bring back their feet, I copied similar booted feet from other dancers. If there weren't other dances to copy from in this picture, I could have gotten them from another picture, but the further removed you are, the harder it is to match the look. I used the Free Transform tool to size the new boots reasonably and then used the clone tool to blend the old lens into the new legs. It's not perfect, but it's good enough that it doesn't draw your eye to it (I hope).
Final.jpg

I do this "borrowing" technique on a lot of group pictures. In the most trivial case, I take 3 pictures of every group picture. If someone is blinking in picture 1, I copy their eyes from picture 2 or 3. In more complex cases, like family portraits with squirming kids, I've had to grab faces from several different photos to get one picture where everyone is looking at the camera and smiling. In some cases, it is as easy and copying and pasting. In other cases, it is a complex job of dealing with shifted limbs, moved hair, and other differences.
 
To remove or not to remove.
That is the question.



Your post was very timely. I've been grappling with an image and wondering if I should remove an object or not. This post pushed me into removing the object.....and then I will have the rest of the year to decide which one I share in the calendar.


Here's the processed image.

230424 Aurora-5219-2.jpg


That sign does stick out in the image; but it is part of the landscape.


I imported the image into PS.
Then used the lasso to select the sign.
Then I used Content-aware-fill to remove the sign.

230424 Aurora-5219-Edit-2.jpg


The sign is a pretty discrete standalone object; so I didn't do any blending or fixes after the removal.
Saved the image; and then I headed back to LR.

All in all, it took about 2-3 mins in PS.
 


Thanks for the interesting tutorial. I'm not a Photoshop user, but I do have a couple of other programs that allow me to make similar changes to photos. But I'm certainly not an expert at using them.
 

GET A DISNEY VACATION QUOTE

Dreams Unlimited Travel is committed to providing you with the very best vacation planning experience possible. Our Vacation Planners are experts and will share their honest advice to help you have a magical vacation.

Let us help you with your next Disney Vacation!











facebook twitter
Top