Remove Tourists From Photos In Photoshop – Stack Mode Tutorial

Remove Tourists From Photos In Photoshop – Stack Mode Tutorial

Welcome back to another very exciting tutorialhere at the PhotoshopTrainingChannel.


My name is Jesus Ramirez, and you can findme on Instagram @JRfromPTC.

In this tutorial, I'm going to show you howto use Photoshop's Stack Modes to help you remove tourists from your vacation photos.

This technique does require you to take multipleimages and a bit of planning, but it is all worth it in the end because the results areamazing.

The Image Stack Mode will take a statisticalaverage of the content found in all the photos.

It will keep identical areas and remove everythingthat changes between the different shots.

It is very likely that cars and people wouldmove and change locations, thus they will be removed in the algorithm supplied leavingonly the background.

When you're out taking the photos, make surethat your camera is on a tripod so that the image is lined up better during the blend.

If you do not have a tripod, hold your cameraas steady as possible when shooting your images.

Wait about 20 seconds or so in-between eachshot.

You want to give people and cars time to move.

In most cases, you will only need between8 to 20 photos.

In this tutorial, we're going to use 9 photosthat I shot with my cell phone without a tripod.

For this video, I wanted to use photos thatwere not shot under the perfect conditions, so that you could see the power of this technique.

And by the way, if you enjoyed this tutorial,don't forget to click on that subscribe button and share it with your friends.

Okay, let's get started.

The first thing that we're going to do isbring in our files into one single document.

Each of the files is going to be a layer insideof that document.

And we can use a script to accomplish thistask.

I'm going to go into File, Scripts, and selectLoad Files into Stack.

Then we can select either Files or Foldersto bring into Photoshop as a single document, so I'm going to select Folder, and I'm goingto click on the Browse, then find the folder that contains my files.

For me, that folder is here, and it's calledStacking.

You can download this stacking folder frommy website.

If you want to follow along, my website isPhotoshopTrainingChannel.


There's a link to it right below this video.

So select the stacking folder and press OK.

Photoshop is going to load 9 different filesonto this list.

Make sure that nothing else is selected, thenclick OK.

So Photoshop creates a new document and eachfile gets placed in the Layers panel as a separate layer, so we have 9 different layers,and the layer name is the file name of the original files.

As you can see, there are 9 different imagesof the Tribune Building in Oakland, California, and as you saw when I disabled the images,I was not using a tripod; I was simply standing there holding my cell phone, and I shot 9photos about 20 seconds apart, which gave enough time for people and cars to move.

What I'm going to do now is align these images.

If the images are not aligned properly, thisis not going to work.

Since we didn't use a tripod, I'm going touse Photoshop to align the images.

The first step is to select all the images.

You can select the images by clicking on thelayer on top, and then, holding Shift and clicking on the layer on the bottom or youcan use the keyboard shortcut Ctrl Alt A, that's Command Option A on the Mac, to selectall the layers.

When all the layers are selected, you cango into Edit, Auto Align Layers and Photoshop will automatically try to align these layers.

Simply click on Auto, and then, OK.

Notice that Photoshop align the images.

If I disable them, they all pretty much align.

It's not going to be a 100% perfect alignmentbecause I was moving around and there is also a slight change in angle and perspective,so it won't be a 100% match.

And you can actually see that if I zoom in,there's going to be areas that don't quite match up, but that's okay.

We're going to crop that out later.

So with all the layers selected, they're stillselected, if they're not for you, once again, Ctrl Alt A, Command Option A to select themall.

With all the layers selected, I can rightclick to the side of any layer and select Convert to a Smart Object.

This is going to put all those layers insideof the smart object.

If I double click on it, you can see thatit opens up in a new tab and all my layers are still there.

I'm going to close it for now.

A smart object simply allows us to apply filtersand transformations non-destructively.

And one of the things that we're going toapply is a Stack Mode, so with the smart object selected, I'm going to go into Layer, SmartObjects, Stack Mode, and the stack mode that we're going to use is Median.

This Stack Mode is going to look at all thepixels on all the images, and the pixels that are constant throughout all or most imagesare going to stay, and the pixels that are not constant are going to disappear.

Obviously, the background will not move, butthe people and cars will, so the pixels will be different.

That means that those pixels will disappear.

So watch what happens as soon as I selectMedian.

All the people and the cars in the backgrounddisappear.

If I zoom in, there's still a car there.

That car is parked.

Obviously, it didn't move throughout the differentshots, but the cars driving by and the people did.

And as I mentioned earlier, this wasn't a100% perfect alignment, so we're going to have some issues, but we're going to fix thosetowards the end of this tutorial.

And there's actually a faster way to get tothis point and the reason I went the long way was that you saw each of the individualsteps to get here, but there's a command in Photoshop that does all of this automatically,and I want to show that to you now.

I'm going to go into File, Scripts, Statistics.

Then under Use, select Folder, click on Browseand find the same folder once againóthe stacking folder.

Select it, press OK and this is going to lookvery familiar.

You're going to see the 9 files there, butthis time, select "Attempt to Automatically Align Source Images.

" And under Stack Mode, select Median and pressOK.

So Photoshop will automatically open up allthose images into one document as layers, align those layers, and apply the Stack Mode,all with that one single command.

So as you can see, the difference betweenthe two images is nothing really.

And, actually, let me fit this image to screenand then switch between both images so that you can see they're exactly the same.

So that is the shorter, faster way of doingit.

And, again, I wanted to show you the longway so that you knew what the steps were in case that the short version gave you someproblems, you know how to backtrack and try to figure it out, but, anyway, this is thefinal result.

At this point, you can work with either file.

I'm just going to close the new file but bothfiles are the same.

So we're working now with one document.

What I want to do now is fix some errors.

This is a fantastic script, but the problemis it doesn't work great with background elements that are constantly moving, background elementssuch as water or flags.

If you zoom into the top of the image, you'llsee this American flag and it doesn't look very good because it was waving, so when thestacking mode was applied, it sort of shopped that up as you can see there.

There is also a smaller flag here on the bottomleft.

So let me show you how you would fix an issuelike this.

I'm going to zoom out and I'm just going topan a little bit.

Then, I'm going to double-click on the smartobject.

You can tell this is a smart object by lookingat the bottom right of the thumbnail.

Double click on that.

It opens up a new tab and inside of this newtab, you'll see the 9 different files that created that image, and if I disable them,I can go through all of them and see which one has the best-looking American flag.

I like the flag in the 02.

Jpg layer.

I think it's the best one in this image, soI'm going to zoom in, click on the Lasso Tool, and then click and drag around the flag tomake a selection.

With Layer no.

2 selected, press Ctrl C, that'sCommand C on the Mac, then go back into the working document and press Ctrl Shift V, that'sCommand Shift V on the Mac, to paste in place, and there's the flag; so this is before andafter.

And you can, of course, do the same thingfor the smaller flag.

I'm not going to do that to save a littlebit of time, but it's exactly the same process.

What I'm going to do now is just look at theentire image just so we can see what we have.

And, obviously, we still need to crop it,but what I'm going to do before I crop it is adjust the colors found on the image andI want to apply non-destructive effects, and maybe even fix some of the distortion problems.

The distortion problems are not very big,but we could benefit from fixing them.

So what I'm going to do is select all thelayers.

In this case, we only have two layers, I'mgoing to press Ctrl Alt A, Command Option A on the Mac, to select the layers, I'm goingto right-click to the side of those layers and convert these two layersóthe regularlayer and the smart objectóinto another smart object, so Convert to Smart Object.

Now I can apply the Camera Raw Filter non-destructively,so Camera Raw Filter, and I'm going to use the tonal sliders to adjust this image.

I'm going to click on Highlights and makethe highlight darker, then click on Shadows and make those brighter.

I'm sort of faking an HDR effect here.

Then I'm going to click on Clarity and dragit to the right.

This is going to add contrast in the midtones.

Then I'm going to click on Vibrance and dragthat to the right as well.

This is going to add saturation to the colorsfound in the image that don't have a lot of saturation.

It's sort of a smart way of saturating images.

Saturation applies a global saturation nomatter what the current saturation of the colors are, but vibrance protects the saturatedcolor and only brings out the color and colors that are desaturated.

Also, when you're working on portraits, vibranceprotects skin tones, so it's one of my favorite sliders to use to add saturation to images.

Now we're going to fix some of those distortionproblems that I was talking about so you can click on this icon here, which is the TransformTool.

You can also press Shift T, and under Upright,you can click on the A button to apply an Auto balanced perspective correction; so youcan see the before and the after.

It's a slight correction, but I think it works.

Usually, distortions like these are more noticeablewhen you're working with straight lines and, obviously, in this image, we have a lot ofstraight lines.

I'm going to press OK, and these are the smartfilters here.

You can see the Camera Raw Filter that weapplied.

You can click on this eye icon to disablethe effect and click on the empty space again to enable it.

The final step is to crop the image, so I'mgoing to click on the Crop Tool.

You can also press C on the keyboard and makesure that "Delete Cropped Pixels" is unchecked.

Usually, I don't like leaving this check boxon just because I like to work non-destructively, so I'm going to click and drag on these handlesto better crop the image and hide some of the errors here where the image wasn't aligningproperly.

And I think something like this will workso I'm just going to press Enter on the keyboard, and that's our final image.

That's it for this tutorial.

I hope that you enjoyed it and that you learnedsomething new.

Make sure that you leave all your commentsor questions down below.

If you create an image using this tutorialor any other of my tutorials, feel free to share it on Instagram with the hashtag #ptcvids.

I often do a search for this hashtag to seewhat you're all up to.

If I find your image, I will leave you a comment.

Also, don't forget to subscribe and clickon that Like button.

If you have a friend who you think will enjoythis tutorial, please share this link with them now.

Thank you for watching, and I'll talk to youagain soon.

Source: Youtube