RetouchPRO

Welcome to RetouchPRO, the web community for retouchers.

You are currently viewing as an unregistered guest which gives you limited access. Registration is fast, simple and absolutely free so please, join RetouchPRO today!

If you have any problems with the registration process or your account login, please contact us. If you've forgotten your password, click here.

Go Back   RetouchPRO > Technique > Photo Compositing
Register Blogs FAQ Search Today's Posts Mark Forums Read

Photo Compositing Collage, montage, masking, selections, combining, etc.

Reply
 
LinkBack Thread Tools
  #1  
Old 06-01-2006, 09:57 PM
slipchuck's Avatar
Member
 
Join Date: Aug 2004
Location: Ontario, Canada
Posts: 32
extraction of girl

Hello everyone.
I have tried and tried to extract this photo from the background and have had satisfactory results, at best.
I know how to do it, but on this photo I can't get the hair to come with it without getting green with it.
It must be convincing, as it will just be a cutout, with no background to hide any flaws.
I tried channels and so far no good.
could someone please try this and walk me through how you got it?
please post results, and if possible close up of the extracted hair on a transparent background.

thanks
Attached Images
File Type: jpg cassy-for-retouchpro.jpg (98.0 KB, 132 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 06-01-2006, 11:59 PM
Mig Mig is offline
Senior Member
 
Join Date: Aug 2001
Location: SF
Posts: 265
Chuck,

Sorry, but you won't be able to do this convincingly. Photoshop will only get you so far with this picture, so you have two options, where a combination of both would get you the farthest.

1) in whatever bg you use, make sure it's green around her head. That way you can camouflage where things wouldn't be picked up by the program. Basically this would involve selecting all of her hair and parts of the green that the comes along with it, instead of the other way around, which is how many might tackle the problem.

You can also maniplute the greens through painting on them and using blend modes, etc to further reduce the appearance of the greens and blend it into the new bg. The sample of the child has her hair not only blending into the green, but it's both soft and at the same time full of artifact that blends with the artifict and softness that exists in the green. Therefore, selection of the hair only is impossible. The only thing that separates the hair from the leaves are that the leaves have more texture and they're green. Otherwise there's nothing much to separate them, cept we know the red that is on her head is hair, and the green stuff in the bg is plant life.

2) paint her hair. You'd do this by painting strands. Basically it involves sampling and painting, repeating over and over again. It works but it's time-consuming.

good luck tho - too bad about the bg, cuz it's a cool pic.

Mig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 06-02-2006, 12:49 AM
bart_hickman's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Oregon, USA
Posts: 471
I'm not sure how good is good enough. As with most attachments here, this one has a lot of jpeg artifacts. Here's how I'd do it. Refer to the first attachment.

Start by understanding what it is that distinguishes her hair from the background. It turns out the color is the what's mainly different (luminance is not very different) and more specifically, the hue contains most of the difference. So in step 1 I extracted the hue channel.

In step 2, I sampled the orange hair hue and filled a new layer with that color, then subtracted it (difference blend mode). This makes the hair black and other parts of the image various other colors depending on how different their hue is from that of the hair.

In step 3, I used a channel mixer with coefficients 33,33,33 and monochrome box checked to convert the hue contrast into luminance contrast.

In step 4, I used a curve layer to amplify this contrast. At this point, you are beginning to see what will become the mask.

In step 5, I used some dodging, painting, and a little smudging to clean up the jpeg mess (your original shouldn't be nearly this bad.) Viola, I have my mask (from your post, I suspect you made it this far on your own.)

So now look at the second attachment for what I do with the mask. I drop the original image into a group, then apply the mask (have to invert it) to the group. I also have a white replacement background below the group because it's easiest to see the green contamination with that color. The third attachment show the basic, green-contaminated extraction on white.

On top of the original (in the group), I create a blank layer with blend mode Hue. Then sample the hair color and paint over the green areas. You can be fairly sloppy because the inner hair is already the same hue and the mask constrains your outward strokes.

The final attachment shows the decontaminated cutout on the white background, but it'll look correct regardless of background.

Use the pen tool or magnetic lasso to extract her body.

The extraction is pretty sloppy thanks to the jpeg artifacts, but I was mainly demonstrating the color fix--I could have actually gotten a finer extraction by carefully using the luminance info as well as the hue info using the same sample-subtract-channel mix-curve method, but it would have been more time-consuming because it would need to be done in sections. I try to avoid spending much time on a heavily compressed image.

Bart
Attached Images
File Type: jpg steps.jpg (51.8 KB, 56 views)
File Type: jpg redhead_layers.jpg (19.5 KB, 50 views)
File Type: jpg cutout_green.jpg (17.8 KB, 84 views)
File Type: jpg cutout.jpg (17.8 KB, 120 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 06-02-2006, 06:40 AM
RokcetScientist's Avatar
Senior Member
 
Join Date: May 2006
Location: Sodom & Gomorra
Posts: 122
I'm guessing this is a very useful exercise to hone one's pp skills. But wouldn't simply retaking that photo with the girl against a plain background be a loooot quicker and get you much better results?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 06-02-2006, 07:17 AM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,007
Blog Entries: 3
Hi Chuck,

..I agree ...

Quote:
Originally Posted by Mig
Sorry, but you won't be able to do this convincingly. Photoshop will only get you so far with this picture...
Quote:
Originally Posted by bart_hickman
I'm not sure how good is good enough. As with most attachments here, this one has a lot of jpeg artifacts.
....and am curious ... may I ask how are you going to use "a cutout, with no background..." ?

Anyway, I also went for colour separation ... I used a Channel Mixer and a Hue/Saturation Adjustment Layers .. (Attachment 1) ... and I got a result very similar to Bart's (Attachment 2) ... Result that I then 'refined' (Attachment 3) to put on a solid colour background ... (Attachment 4) ....
Attached Images
File Type: jpg SNAP-004.jpg (91.8 KB, 69 views)
File Type: jpg SNAP-005.jpg (40.9 KB, 53 views)
File Type: jpg SNAP-000.jpg (56.8 KB, 70 views)
File Type: jpg SNAP-006.jpg (30.8 KB, 99 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 06-02-2006, 07:22 AM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,007
Blog Entries: 3
Quote:
Originally Posted by RokcetScientist
I'm guessing this is a very useful exercise to hone one's pp skills. But wouldn't simply retaking that photo with the girl against a plain background be a loooot quicker and get you much better results?
....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 06-02-2006, 02:40 PM
Daviskw's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 551
Hi Flora

I have tried to duplicate your results along with bart's...lol.. no luck. Could you explain a little more your steps?... Maybe you are bart could point me to a tutorial or one of you could make one yourselves. You both do a very good job on hair.

Butch
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #8  
Old 06-03-2006, 08:22 AM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,007
Blog Entries: 3
Hi Butch,

thanks for your kindness!

In Attachment 1 you can see the values I used for Channel Mixer where I tweaked the Red Channel only.

In Attachment 2 the Hue/Saturation ones where I tweaked the 'Master' only.

In Attachment 3 ... my Red Channel (the one with the most contrast) immediately after the previous tweaks...

In Attachment 4 my Red Channel after increasing the contrast with the Levels...

Refine the mask and you are done...
Attached Images
File Type: jpg SNAP-009.jpg (39.8 KB, 32 views)
File Type: jpg SNAP-010.jpg (41.7 KB, 28 views)
File Type: jpg SNAP-011.jpg (84.8 KB, 34 views)
File Type: jpg SNAP-012.jpg (89.6 KB, 35 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #9  
Old 06-03-2006, 08:41 AM
Daviskw's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 551
Thanks for taking the time to explain Flora, lots of practice for me I see. I guess I’ll have to do it a few times. Experience is so important in these types of procedures. Obvious tweaks to some are head scratches to others…lol

Butch
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #10  
Old 06-03-2006, 08:49 AM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,007
Blog Entries: 3
Hi again Butch,

... it's always a matter of trial and error for me too ... and, in cases like this, I assure you I get to 'head scratches' quite often too...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #11  
Old 06-03-2006, 12:49 PM
Daviskw's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 551
Hey..figured a way…lol

I decided to try desaturating the color of the hair. Then combining with a 50 % gray scale layer set to difference as Bart did I got a fair mask that with a little fix up here and there did not do too bad with the hair.

Butch
Attached Images
File Type: jpg web_help.jpg (69.2 KB, 33 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #12  
Old 06-03-2006, 01:06 PM
Senior Member
Patron
 
Join Date: Dec 2005
Posts: 1,036
Flora & Bart, excellent masking work!!
Here is another approach to consider. In LAB, the colors Green and Red are mortal enemies in the A channel. This means they can be very quickly and easily separated with a Z curve or by applying the A channel to itself in Overlay Blend Mode a couple of times. When you convert the resulting image back to RGB, you end up with two very good masking candidates - the Red and the Green channels. A combination of both can help in the tough spots.
Regards, Murray
Attached Images
File Type: jpg Slipchuk Girl MM RGB.jpg (82.5 KB, 13 views)
File Type: jpg Slipchuk Girl MM Red.jpg (86.9 KB, 15 views)
File Type: jpg Slipchuk Girl MM Green.jpg (85.8 KB, 20 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #13  
Old 06-03-2006, 02:08 PM
slipchuck's Avatar
Member
 
Join Date: Aug 2004
Location: Ontario, Canada
Posts: 32
thanks everyone so far.
As for answering the question "why not take another pic with a different background, it definately would be easier.
I wanted to work with this one, because I like tackling difficult jobs, as it teaches me more then anything.
I don't know everything about Photoshop that is for sure.
A challenge is what I enjoy!

As for the color of a background it is going on, the answer is white.
My girlfriend does digital scrapbooking at www.digitalscrapbookplace.com
I enjoy the challenges she throws me, and 95% of the time I can figure it out without outside help
the other 5% I reach out for help from good people like yourselves!

I need to learn more about channel masking. I went to the book store and wrote down the direction to do this from Scott Kelby's channels book.
Unfortunately, it did not work.
seems like most of the books out there use a simple color background and make it look like a peice of cake.

If someone could point me to a book that is as good or better then scott's,
it would be much appreciated. (I am a visual learner so it needs to relatively easy to follow, simular to scott kelby's books)

so thanks again for the great work out there, now I have to try some of your technics

cheers

randy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #14  
Old 06-03-2006, 03:03 PM
Senior Member
Patron
 
Join Date: Dec 2005
Posts: 1,036
Randy, you definitely want to check out Photoshop Masking and Compositing by Katrin Eismann.
Regards, Murray
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #15  
Old 06-03-2006, 09:34 PM
Mig Mig is offline
Senior Member
 
Join Date: Aug 2001
Location: SF
Posts: 265
First off, just want to say what an incredible job some people did with the masking of the hair here - really excellent!

Randy, you asked about a book on channel stuff... the one I'd recommend is called Channel Chops. It's probably out of print, since it was written for a much earlier version of photoshop back in the late 90's. However, it still works for today's version. It's a very dry book, but that's the one I used to learn about channels and it's a fine book. You can pick it up on the net somewhere.

Good luck.

Mig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT: ImageSkill Translucator: new tool for translucent objects extraction Dm_Cher Software 1 10-24-2006 07:10 AM
Please critique - My little girl 1STLITE Critiques 12 05-13-2006 11:01 AM
Extraction and new background - new trick leuallen Photo Compositing 9 09-16-2005 05:36 PM
Pouting girl bubba Photo-Based Art 32 06-08-2003 10:16 AM
yelloe..possible background extraction mpskin Image Help 6 01-21-2003 10:11 AM


All times are GMT -6. The time now is 05:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 Doug Nelson. All Rights Reserved moo




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50