PDA

View Full Version : Extract Tool/Change Backgrounds


rutt
Apr-09-2004, 08:51 AM
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:

http://rutt.smugmug.com/photos/3346179-L.jpg (http://rutt.smugmug.com/photos/3346179-O.jpg)

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:

http://rutt.smugmug.com/photos/3346142-L.jpg (http://rutt.smugmug.com/photos/3346142-O.jpg)

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.]

rutt
Apr-12-2004, 07:13 AM
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.

hutchman
Apr-12-2004, 12:03 PM
I'll bite,

Here's one from last weekend that I like. The kart came out the way I wanted, but the background sucks.


http://hutch.smugmug.com/photos/3396643-M.jpg

Here's my attempt to fix it.....

http://hutch.smugmug.com/photos/3433907-M.jpg

I'm not sure if that is better or just as bad in a different way!

Hutch

cletus
Apr-12-2004, 12:19 PM
Here's my attempt to fix it.....

http://hutch.smugmug.com/photos/3433907-M.jpg

I'm not sure if that is better or just as bad in a different way!

Hutch
I like it :thumb

DoctorIt
Apr-12-2004, 12:47 PM
This is exactly the reason I keep photos like this around:

http://www-unix.ecs.umass.edu/~ermiller/photos/2004-04/2004-04-10.jpg

Need some blue sky background? Just clone that right in... :D

pathfinder
Apr-12-2004, 02:02 PM
This is exactly the reason I keep photos like this around:

http://www-unix.ecs.umass.edu/~ermiller/photos/2004-04/2004-04-10.jpg

Need some blue sky background? Just clone that right in... :DI have a folder on my hard drive full of skies and autumn forests and brick walls just to use as backgrounds when I need them. I keep a little note in my head when I am out shooting to look for good potential backgrounds to grab for use later. Great minds think alike DoctorIt......http://www.dgrin.com/images/icons/lickout.gif

hutchman
Apr-12-2004, 02:13 PM
That's a good idea. Whodathunk?

Hutch

pathfinder
Apr-12-2004, 02:34 PM
That's a good idea. Whodathunk?

Hutch
And cheap too!!http://www.dgrin.com/images/icons/Laughing.gif

hutchman
Apr-12-2004, 05:55 PM
I learn something new here every day. That's why I really enjoy this forum.

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

rutt
Apr-13-2004, 06:52 AM
I tried attacking my first image of the branch with buds and the all-too-infocus background.

Here is as far as I got:

http://rutt.smugmug.com/photos/3452755-L.jpg (http://rutt.smugmug.com/photos/3452755-O.jpg)

(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?

DoctorIt
Apr-13-2004, 07:09 AM
...

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?I have the same problem with edges... If the select color range doesn't work, i end up with the same problems as you have there, even with all the layer masks. the magnetic lasso sometimes works well, but not always.
:ear

Shakey
Apr-13-2004, 09:52 AM
Do you have a node edit device? that way you use points to lasso your mask.
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" :rofl
Tim

DoctorIt
Apr-13-2004, 11:15 AM
Do you have a node edit device? that way you use points to lasso your mask.
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" :rofl
TimI think that sounds like the magnetic lasso (PS CS) - it has all sorts of settings that I haven't mastered, heck, haven't even been able to try them all out.

hutchman
Apr-13-2004, 05:20 PM
John,

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.

http://hutch.smugmug.com/photos/3465583-M.jpg


This is the result. Using the extract tool and all adjustments maybe took 7 minutes.

Hutch

pathfinder
Apr-13-2004, 09:02 PM
John,http://hutch.smugmug.com/photos/3465583-M.jpg

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




http://pathfinder.smugmug.com/photos/3470029-L.jpg

rutt
Apr-14-2004, 05:45 AM
Thanks, Hutch! That was the secrect weapon I was missing. It took me more than 10 minutes, but I did get a good result in about an hour. Then I took a middle course between what you did and what Pathfinder did. I cloned more of the blue section over the red brick in the underlying image before gausian blurring it. I used less blur this time to retain some of the branch suggestion, but because of the cloning, the backgkround came out much less red. On the other hand, the light and color matches, so it doesn't look like an obvious photoshop cut and paste job.

http://rutt.smugmug.com/photos/3475879-L.jpg

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.

hutchman
Apr-14-2004, 05:48 AM
Woo Hoo!

Two more ways to skin a cat!

Hutch

rutt
Apr-14-2004, 06:25 AM
It's sort of beating a dead horse, but here is one more version. I realized that I had missed a trick. So I steepend the A and B channel curves in LAB to get better colors on the branch and buds (but didn't steepen the background.) I thought there was no hope for this image, but now I think it's pretty good. Thanks again Hutch.

http://rutt.smugmug.com/photos/3476482-L.jpg

lynnma
Apr-14-2004, 07:08 AM
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




http://pathfinder.smugmug.com/photos/3470029-L.jpgHi Path,
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

DoctorIt
Apr-14-2004, 07:16 AM
John,

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.



HutchAwesome! Any tips on the Cleanup and Touchup tools within the extract function? Thats where it got tricky and fuzzy, but even with just a quick shot at it using the smart highlight, it gave better results than the magnetic lasso.

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...

cletus
Apr-14-2004, 07:21 AM
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...
:nod

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.

pathfinder
Apr-14-2004, 11:25 AM
:nod

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.
Lynn -

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. http://www.dgrin.com/images/icons/lickout.gif

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.http://www.dgrin.com/images/icons/lickout.gif

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? http://www.dgrin.com/images/icons/Laughing.gif

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?

rutt
Apr-14-2004, 12:09 PM
Lynn -

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? http://www.dgrin.com/images/icons/Laughing.gif

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?
It looked all too real to me. Surreal, in fact. The sky was so bright and we are looking down on the clouds. It was beautiful, but seemed improbable to me (perhaps because I knew the real setting of the branch on an early spring morning in New England.) I do agree that the red in the background ends up making an ugly blur. So I tried to fix this. In the end, de gustibus non desputem est.

pathfinder
Apr-14-2004, 05:10 PM
It looked all too real to me. Surreal, in fact. The sky was so bright and we are looking down on the clouds. It was beautiful, but seemed improbable to me (perhaps because I knew the real setting of the branch on an early spring morning in New England.) I do agree that the red in the background ends up making an ugly blur. So I tried to fix this. In the end, de gustibus non desputem est.
I agree that the sky is too bright. I should have desaturated it a little or boosted the branch color saturation - just sloppy work done in a hurry.

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.

wxwax
Apr-14-2004, 05:44 PM
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

One tip I always forget is to go into channels and look for a version with the most contrast, then extract/select - much easier.

rutt
Apr-14-2004, 05:54 PM
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.
No problem. That's the point of this kind of forum, to get the benefits of constructive criticism.

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.

hutchman
Apr-14-2004, 05:58 PM
Awesome! Any tips on the Cleanup and Touchup tools within the extract function? Thats where it got tricky and fuzzy, but even with just a quick shot at it using the smart highlight, it gave better results than the magnetic lasso.

Thanks,

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

pathfinder
Apr-14-2004, 07:36 PM
One tip I always forget is to go into channels and look for a version with the most contrast, then extract/select - much easier.
Actually waxy I did take a quick look at channels in RGB and LAB to see if one had a better contrast to select with, but did not really see one that stood out - so I just used the extract tool and like I told Hutch - I learned something - that for highly irregular shapes with lots of fine detail and no real color distinction - the extract tool can be the better tool to use. I still think the other selection tools are easier to use IF there is a contrast of some type to clue on.

rutt
May-09-2004, 09:46 AM
This thread was great and today I was able to put the knowledge to use in a most satisfying way.

Before:

http://rutt.smugmug.com/photos/4060582-M.jpg (http://rutt.smugmug.com/photos/4060582-O.jpg)

After:

http://rutt.smugmug.com/photos/4069006-M.jpg (http://rutt.smugmug.com/photos/4069006-O.jpg)

cletus
May-09-2004, 11:12 AM
This thread was great and today I was able to put the knowledge to use in a most satisfying way.

Before:

http://rutt.smugmug.com/photos/4060582-S.jpg (http://rutt.smugmug.com/photos/4060582-O.jpg)

After:

http://rutt.smugmug.com/photos/4069006-S.jpg (http://rutt.smugmug.com/photos/4069006-O.jpg)
Nice work rutt! :thumb

lynnma
May-09-2004, 02:40 PM
Extraction tool - I cropped this model for dignity's sake (not that there was anything much wrong with it) I just wanted to show my extraction from garage to snow scene..

lynnma
May-09-2004, 02:42 PM
after..

lynnma
May-09-2004, 02:44 PM
final black and white version...

rutt
May-09-2004, 03:15 PM
final black and white version...
I'm a huge fan of these shots, and what you did after the extraction is really great. But, as you also know, I think a lot is lost in this particular B&W conversion. Still love them. but not nearly as much as in color. In color, they have this Playboy reference that is just so shocking and so funny. This is just completely lost in B&W.

Sam
May-09-2004, 05:10 PM
after..
WOW! Your getting pretty good kido. You photographed her in your garage, and then extracted her from that complex background. That would have taken me forever. ps: who's Harley?

lynnma
May-10-2004, 03:10 AM
WOW! Your getting pretty good kido. You photographed her in your garage, and then extracted her from that complex background. That would have taken me forever. ps: who's Harley?A guy who comes into the breakfast place where these ladies work.. we liked his Harley and dragged him in off the street. He did'nt seem to mind.
:rofl

lynnma
May-10-2004, 03:13 AM
I'm a huge fan of these shots, and what you did after the extraction is really great. But, as you also know, I think a lot is lost in this particular B&W conversion. Still love them. but not nearly as much as in color. In color, they have this Playboy reference that is just so shocking and so funny. This is just completely lost in B&W.I know I know... but... costs are cut in HALF for the calendar, AND the color cast/shadows/ printing problems have gone away and I won't have a melt down after all.. I'll do the next one in color Rutt:D

rutt
May-14-2004, 09:18 AM
Nice work rutt! :thumb
Well, this story isn't quite told yet. I posted the same thing in the SportsCenter of FredMiranda.com and folks there noticed a halo. around the player Turns out this results from having the player in the layer I blurred. The blur spreads some of the player colors out beyond the sharp borders of the mask layer. The solution is to clone out the player before blurring the background layer.

I also figured out a nicer way to handle the ground on the bottom of the shot. I used a layer with a layer mask and a gradiant to fade out the sharp grass towrard the fence.

The difference is this:

http://rutt.smugmug.com/photos/4069006-M.jpg (http://rutt.smugmug.com/photos/4069006-O.jpg)

versus this:

http://rutt.smugmug.com/photos/4184519-M.jpg (http://rutt.smugmug.com/photos/4184519-O.jpg)

Here is another example of this technique (I think I'm getting better at it.)

http://rutt.smugmug.com/photos/4206472-M.jpg (http://rutt.smugmug.com/photos/4206472-O.jpg)

Into this:

http://rutt.smugmug.com/photos/4206487-M.jpg (http://rutt.smugmug.com/photos/4206487-O.jpg)

bkriete
Mar-12-2005, 02:45 PM
Figured I just learned enough from this thread it would benefit from a bump for other new members.

ginger_55
Mar-12-2005, 08:16 PM
Those extractions and all seem so intricate, I don't think I could ever do it. I mean and keep my sanity.

So I would quit, then without practice............I could never do them well.

Rutt yours look fantastic. Lynn, I like the color, too. Somehow I just don't associate black and white with what you are trying to achieve.

But Lynn, how did you ever extract all the intricate places on the motorcycle?

g

lynnma
Mar-13-2005, 08:29 AM
Those extractions and all seem so intricate, I don't think I could ever do it. I mean and keep my sanity.

So I would quit, then without practice............I could never do them well.

Rutt yours look fantastic. Lynn, I like the color, too. Somehow I just don't associate black and white with what you are trying to achieve.

But Lynn, how did you ever extract all the intricate places on the motorcycle?

gvery slowly and very carefully.. I have a Wacom Tablet with a pen so it makes it easier to control.. just like drawing.. I had to do them in black and white, printing was too much money in color.. sheesh.. I thought I'd seen the last of those shots.. I can't bare to look at them....:crazy

bfjr
Mar-13-2005, 09:48 AM
very slowly and very carefully.. I have a Wacom Tablet with a pen so it makes it easier to control.. just like drawing.. I had to do them in black and white, printing was too much money in color.. sheesh.. I thought I'd seen the last of those shots.. I can't bare to look at them....:crazy
Lynn, tell me more about the Wacom Tablet, please.

You like it? Do you use PC of Mac?
Seen them before and thought that would be the ticket for fine work, but have never met or spoken to anyone who uses them.

I know, should get out more!!:rofl

wxwax
Mar-13-2005, 10:39 AM
Lynn, tell me more about the Wacom Tablet, please.

You like it? Do you use PC of Mac?
Seen them before and thought that would be the ticket for fine work, but have never met or spoken to anyone who uses them.

I know, should get out more!!:rofl
I have a small one.... Wacom tablet that is. :wxwax

:lol3

I find using the pen tool is good for detail work like extractions. I confess that I don't use it much otherwise. It's a simple USB2 install for me. pop-in the CD, ingest the software, then plug in the tablet. When the pen gets near the tablet surface, it takes over from the mouse.

rainforest1155
Mar-13-2005, 11:13 AM
See what you did...I already played with the idea to try out a tablet once, but now I did spy over at ebay and bought an old small 4x5 Wacom Graphire 1 (I guess) to fool around a littlebit. :wxwax

Which Wacom do you have?

Hope this thingy is useful for me! :D

wxwax
Mar-13-2005, 11:18 AM
See what you did...I already played with the idea to try out a tablet once, but now I did spy over at ebay and bought an old small 4x5 Wacom Graphire 1 (I guess) to fool around a littlebit. :wxwax

Which Wacom do you have?

Hope this thingy is useful for me! :D
I have the Intuos 2, about 6" by 8" I reckon, can't remember exactly.

rainforest1155
Mar-13-2005, 11:54 AM
I have the Intuos 2, about 6" by 8" I reckon, can't remember exactly.Phew, I guess that would be a class to high to just try these things out. Let's see how mine performs.

lynnma
Mar-14-2005, 09:11 AM
I have the Intuos 2 (I think) and I use it all the time.. I love it.. I could'nt possibly do fine extracting, or selecting or anything else without it.. I use it as a mouse a lot too unless I'm rummaging through files and such. I think it's a wonderful tool and a must for fine work.:1drink

rainforest1155
Mar-17-2005, 12:33 PM
http://rainforest1155.smugmug.com/photos/17683684-L.gif:clap

rutt
Mar-18-2005, 10:35 AM
Those extractions and all seem so intricate, I don't think I could ever do it. I mean and keep my sanity.

So I would quit, then without practice............I could never do them well.

Ginger, that's exactly how I felt when I started this thread. I'm still not good at selections, wacom tablet and all. But much better than before the key post to read is this: http://www.dgrin.com/showpost.php?p=9781&postcount=14
If it's harder than the extract filter can handle, then I usually either give up or outsource.

wxwax
Mar-18-2005, 10:51 AM
http://rainforest1155.smugmug.com/photos/17683684-Th.gif:clap

:thumb


:rofl