Extract Tool/Change Backgrounds
rutt
Registered Users Posts: 6,511 Major grins
This is one of my most common problems. I get a good shot but there is something ugly or just distracting in the background. It happens all the time with portraits, macro, sports, you name it. Here is an example form yesterday. I wanted a shot sort of like this:
But notice that the buds are not all in focus. So I stopped down and by the time all the buds were in focus, I got this:
I want to get the depth of field of the second shot on the branch and buds, but the depth of field of the first shot for the background.
Use my images if you like, or use your own. My images are linked to their full sized originals, so if you do use my images, you might as well work with the full sized images.
[There! I hope that's more on target for the majority of people.]
But notice that the buds are not all in focus. So I stopped down and by the time all the buds were in focus, I got this:
I want to get the depth of field of the second shot on the branch and buds, but the depth of field of the first shot for the background.
Use my images if you like, or use your own. My images are linked to their full sized originals, so if you do use my images, you might as well work with the full sized images.
[There! I hope that's more on target for the majority of people.]
If not now, when?
0
Comments
I thought this would be very popular. Am I the only one who ends up with ugly stuff in the background and has trouble getting DOF right? I thought this would be a universal problem.
Here's one from last weekend that I like. The kart came out the way I wanted, but the background sucks.
Here's my attempt to fix it.....
I'm not sure if that is better or just as bad in a different way!
Hutch
Need some blue sky background? Just clone that right in...
moderator of: The Flea Market [ guidelines ]
Moderator of the Technique Forum and Finishing School on Dgrin
Hutch
Moderator of the Technique Forum and Finishing School on Dgrin
What gets me just a little is when it is something as obvious as this little trick and I did not think of it myself. I wonder if I can blame it on 1/2 timers?
Hutch
I tried attacking my first image of the branch with buds and the all-too-infocus background.
Here is as far as I got:
(Image is a link to original.)
This always happens to me with this sort of image manipulation (selective as opposed to global.) When it gets to be time to work near the edges of things, it just becomes too hard to paint accurately enough. The only exception to this is when there is a strong enough color difference to make the magic wand or Select->Color Range work.
I think I had sort of a good idea:
- Make a duplicate layer
- Select background layer
- Clone some extra blue sky all around the image (neatness doesn't matter)
- Filter -> Blur -> Gaussian Blur (maximum)
- Now we have a nice blurred background and because of 3, not too dark
- Select duplicate layer and add a white layer mask (thanks, Pathfinder)
- Now I can paint out the infocus background (with black) allowing the blurred background through.
- As per Pathfinder, I used a soft brush near the edges. I can paint in wite to unde places where I blurr something I don't want to.
So, Is this just incredibly painstaking work and I just didn't have the patience to do what had to be done? Or am I missing some trick that everyone else knows?moderator of: The Flea Market [ guidelines ]
It allows more precision on intricate shapes.?
I know my editing software (corel) has it, yours might be named differently. In a nutshell you put points down and it just connects the dots sort of.
The hardest thing I find is hair, it is difficult not making the person look like they are wearing a "Hair Cap"
Tim
moderator of: The Flea Market [ guidelines ]
If you are using PS 7 or CS, you can use the Extract Tool under Filter. It works to pull an item out of the background. The only thing you have to watch, is it likes quite a bit of contrast to work.
I tried it with your image.
I extracted the buds and branch.
Gausian Blurred the background.
Color corrected the image using the black selection tool on levels.
Sharpened the extracted layer a little.
Added another adjustment layer for a +5 saturation addition.
This is the result. Using the extract tool and all adjustments maybe took 7 minutes.
Hutch
Hutch -
I liked what you did - I usually have little affection for the extract filter/tool - I find it tedious to use the repair tool and all after extracting - usually I just use the magnetic lasso or the color select or the pen tool - But you are absolutely correct that for this irregular, organic, multicolored branch the extract tool works best - so following your lead I created a duplicate layer and then extracted the branch and then Gaussian blurred the background layer. But why accept that blurred red and blue background -
Like DoctorIt said - drag out your files of backgrounds and UPGRADE!
So I opened a new file of a sky in New Mexico and brought a little of the SouthWest to Bostons branch and ended up with this via the clone tool
Moderator of the Technique Forum and Finishing School on Dgrin
Anyway, I guess this assignment accomplished it's mission in so far as this image is concerned. Let's try to cook up a new one.
Two more ways to skin a cat!
Hutch
Can you elaborate a little on this extract thing? I always have trouble making a background look natural and this looks really good to me.. I usually select or magic wand and then paste but it never looks right.. I'd love to know the details of this look..
thanks
Lynn
Lynn - its real easy: Filter > Extract. Brings up the photo in its own new little window with special tools on the side. Pretty intuitive. May only be in 7 or CS though...
moderator of: The Flea Market [ guidelines ]
The thing to watch out for (as pathfinder pointed out) is that the Extract tool is destructive, meaning that once you run it the stuff outside of what you extracted is gone! So as a rule of thumb, duplicate the layer you want to extract from before running the Extract filter.
Cletus is right that you need to duplicate your background layer before selection because once the object is extracted the rest of the frame is bare - as in the cupboard is bare - empty!!
My problem with the extract tool is that if you do not use the repair tool in the preview mode prior to finalizing the extraction, the edges can be rough an have a motheaten look. I find, after using the green marker around the edges where I want to extract ( using smart selection box checked ), that I need to carefully and repeatedly use the repair tool over the eges in the preview box before I finally extract.
Also even after extraction I frequently hit ctrl-J to duplicate a layer of what I extracted to get the borders the way I want them. Don't ask me why that cleans up the borders - I have no idea - it just does - it's magic probably.
That is why I prefer to select with the magnetic lasso or the pen or by color selection IF possible. But for this branch with the organic irregular shape and various colors that match the background, I found the extract tool for all its faults was the better tool to use.
Rutt - were you implying-saying that my image looks like a photoshop paste job - that it does not look real to your highly trained eye?
Could be - I just liked it better than the Gaussian blur of the sky and the brick. I looked to check on the directionality of the light on the two layeres I combined and did not see an obvious defect in lighting shadow or direction - did I miss something there?
Moderator of the Technique Forum and Finishing School on Dgrin
I am surprised that you feel you are looking DOWN at the clouds since I shot them looking UP from ground level in the late afternoon and the horizon is just below the edge of the frame. Puzzling......
I thought the sky was dramatic that afternoon and collected the image just to save as a new backgroung like I did for your branch shot. And I thought the light was diffuse enough to not clash with a foreground with diffused lighting.
I did not take the time to clone out the shadow on the branch at its left as I should have either.
Thank you for your opinion John, I appreciate it. Sometimes it is hard for me to see these kind of things.
Moderator of the Technique Forum and Finishing School on Dgrin
One tip I always forget is to go into channels and look for a version with the most contrast, then extract/select - much easier.
Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam
http://www.mcneel.com/users/jb/foghorn/ill_shut_up.au
Your treatment of the branch was very striking and dramatic. It shows how cleanly the extract filter (which I really didn't know about) can work. And your sky is beautiful.
Too beautful I think. It overwhelms the branch, which is a very delicate image and not brightly colored. It would be great with a girl on a motorcycle in the foreground.
I did use both the cleanup tool and the edge touchup tool. The edge touchup tool can be used in conjunction with the alt key to move the edge back to the original location, if the extraction is not very accurate. I had to use this feature several places.
Hutch
Moderator of the Technique Forum and Finishing School on Dgrin
This thread was great and today I was able to put the knowledge to use in a most satisfying way.
Before:
After: