RetouchPRO

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


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

Reply
 
Thread Tools
  #1  
Old 02-24-2010, 01:32 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Problem separating color from picture

This is somewhat of a technical nature...

Maybe I am too stupid or do not see the possibilities, but I have some problems simply dividing a color picture into its 2 composite parts:

1. The complete color information (that is without the greytones).
2. The complete monochrome/greyscale (contrast) information.

What I want to achieve is that these two images put together with overlaying result in the original surce (color) picture again finally.

The reason why I want to do that is, I want to modify only the color separation in a special way prior mixing all together again. (This actually could give a wide range of creativity for special modifications and some artistic expression.)

Has anyone a solution for this problem or an idea how to get these two composite image parts from any photograph?

(Well, I actually could write a programm which extracts that information from the pixel data but I want to do that with Photoshop on the fly.)

Thanks.
Reply With Quote
  #2  
Old 02-24-2010, 01:54 AM
Senior Member
 
Join Date: Apr 2009
Posts: 652
Re: Problem separating color from picture

Have you looked into lab mode?

Otherwise, in RGB, dupe your composite layer and set one to Luminosity and the other to Color.
Reply With Quote
  #3  
Old 02-24-2010, 02:11 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

No I didn't look into the lab mode. Is that possible there?
RGB mode does not work the way I need it. None of the layer mode gives me a true color separation.
Reply With Quote
  #4  
Old 02-24-2010, 02:26 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

With Programming you simply would do the following:

You analyze the RGB values for the lowest grey tone. I.e. The pixel value is R:170 G:54 B:69. Then the lowest greytone is logically R:54 G:54 B:54. That's the contrast or monochrome part then for the given pixel.

Then the resulting rest is the color tone, which has to be separated: R:116 G:0 B:15.
(You simply subtract the lowest grey tone from the source pixel.)

Doing that over the complete image data actually would result in one picture with the greyscale and onoter with the color tones.

Mixing it together would result in exactly the same image than the source picture.

I think this isn't possible to achieve with overlay modes. Did not find a tool also. (I tried "Selective Color" already but did not get really usefull results.)

Is there something to calculate such images in PS?

Last edited by _jason_; 02-24-2010 at 02:31 AM.
Reply With Quote
  #5  
Old 02-24-2010, 02:28 AM
ApWizard's Avatar
Member
 
Join Date: Apr 2002
Location: Italy
Posts: 80
Re: Problem separating color from picture

When I need that I go for this way: create a blank layer over the one you want to separate colors from. Fill this layer with white, change the blending mode to color (is not the same of desaturating). Press CTRL+ALT+SHIFT+E to merge all in a new layer, delete the white one. Change the blending mode of the new grayscale layer to Linear Light and invert it.
At this point I don't remember (I've to try it) if it is done or if I've to change the opacity of the Linear Light one to 50%.
CTRL+ALT+SHIFT+E for the second time and delete the Linear Light layer.

So, here you have your colors information.
For reapplying the colors just put this layer in Linear Light (maybe with the 50% opacity).
Reply With Quote
  #6  
Old 02-24-2010, 02:32 AM
ApWizard's Avatar
Member
 
Join Date: Apr 2002
Location: Italy
Posts: 80
Re: Problem separating color from picture

Quote:
Originally Posted by _jason_ View Post
With Programming you simply would do the following:

You analyze the RGB values for the lowest grey tone. I.e. The pixel value is R:170 G:54 B:69. Then the lowest greytone is logically R:54 G:54 B:54. That's the contrast or monochrome part then for the given pixel.

Then the resulting rest is the color tone, which has to be separated: R:116 G:0 B:15.
(You simply subtract the lowest grey tone from the source pixel.)

Doing that over the complete image data acually would result in one picture with the greyscale and onoter with the color tones.

Mixing it together would result in exactly the same image than the source picture.

I think this isn't possible to achieve with overlay modes. Did not find a tool also. (I tried "Selective Color" already but did not get any usefull results.)

Is there somethingl to calculate such images?
You can do that in Linear Light (as I described before) or by Apply Image...

With programming there's not only the way you described to calculate the monochromatic...there are many but they all works
Reply With Quote
  #7  
Old 02-24-2010, 02:35 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

Thank you!

But I already did something very similar. The problem with that is, mixing it together does result in a slightly different image. The contrast information anyhow is modified. It is not exact enought.
Reply With Quote
  #8  
Old 02-24-2010, 02:39 AM
ApWizard's Avatar
Member
 
Join Date: Apr 2002
Location: Italy
Posts: 80
Re: Problem separating color from picture

Quote:
Originally Posted by _jason_ View Post
Thank you!

But I already did something very similar. The problem with that is, mixing it together does result in a slightly different image. The contrast information anyhow is modified. It is not exact enought.
No way!
If you do it correct there's no variation at all.
I will try with PS opened and post the right procedure asap
Reply With Quote
  #9  
Old 02-24-2010, 02:55 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

Quote:
So, here you have your colors information...
For reapplying the colors just put this layer in Linear Light (maybe with the 50% opacity).
Apply on the greyscale image, right?
If I do that, I get something in middle grey mixed with the colors !?

Oh that would be nice to have! Thank you!
I was nearly at the point where I strated Microsoft Visual C++ to code the tool myself...

Jason
Reply With Quote
  #10  
Old 02-24-2010, 03:14 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

I think one of my problems was, that I generated my monochrome image with desaturation. Doing such gives obviously slightly more contrast ...
Reply With Quote
  #11  
Old 02-24-2010, 03:20 AM
ApWizard's Avatar
Member
 
Join Date: Apr 2002
Location: Italy
Posts: 80
Re: Problem separating color from picture

Well the Linear Light method produce some incongruence while recomposing so we have to work in 16bit mode with Apply Image:

• create a new layer, fill with white, change blending mode to color;
• merge all in a new layer, duplicate this and delete the white one;
• Apply Image on the second duplicate:
- layer: the color image one;
- invert: checked;
- blending: Add;
- scale: 2;
- offset: 0;

• invert the layer (CTRL+i);
• change the blend mode to linear light;

the Linear Light-colors-only layer stay over the black and white one.

Attachments:
1) color image;
2a) black and white layers done with a white layer in color mode (color contrast is visible)
2b) black and white using desaturation (no color contrast), that's the wrong way;
3) second copy of b/w layer after Apply Image and inversion;

actually there is no difference between the original image and the recomposed one. Just merge all and put in Difference blending mode over the original one, the result is a pure black (0000000) stating there is no difference at all
Attached Images
File Type: jpg 01.jpg (36.3 KB, 10 views)
File Type: jpg 02A.jpg (25.6 KB, 7 views)
File Type: jpg 02B.jpg (24.9 KB, 7 views)
File Type: jpg 03.jpg (11.6 KB, 10 views)
Reply With Quote
  #12  
Old 02-24-2010, 03:39 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

I think, I did it exactly as you described first and it basicly worked. But if I mix the images together there is a slightly shifted contrast to the original...

Oh wait, you posted just a new message. I will try that now...

Good hint with the 16 bit mode! I am relatively new to Photoshop, so I have to learn alot...
Reply With Quote
  #13  
Old 02-24-2010, 04:25 AM
Der_W's Avatar
Senior Member
 
Join Date: Jul 2009
Location: Germany
Posts: 509
Re: Problem separating color from picture

I always used to create a duplicate of the background layer, set its mode to "Color" and fill the background layer with a 50% gray (or any shade of gray, that's just my standard fill entry ;-)).
After that go to "Edit"-"Fade" and fade it to "Hue" mode.
Works great for me (and using yet another copy of the background layer on top in "Difference" mode tells me that there's no difference between the original and the color separated image.

I uploaded you an action that does exactly that if you didn't understand everything I explained :-)
Attached Files
File Type: zip Separate DerW.zip (496 Bytes, 8 views)
Reply With Quote
  #14  
Old 02-24-2010, 05:59 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

That's actually a drastically simplified version of the first one and it does not produce any difference in contrast like the stuff above (without "Apply Image").
Much faster too.

Really great!!!

But the problem with all those techniques is that the color is placed on that grey background. I think it's actually limiting creativity.
Reply With Quote
  #15  
Old 02-24-2010, 06:11 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

Is there a way to generate alphatransparent images from the gray color pichture?
Reply With Quote
  #16  
Old 02-24-2010, 06:16 AM
ApWizard's Avatar
Member
 
Join Date: Apr 2002
Location: Italy
Posts: 80
Re: Problem separating color from picture

Quote:
Originally Posted by _jason_ View Post
That's actually a drastically simplified version of the first one and it does not produce any difference in contrast like the stuff above (without "Apply Image").
Much faster too.

Really great!!!

But the problem with all those techniques is that the color is placed on that grey background. I think it's actually limiting creativity.
I think that is mathematically correct. If you have some white in the image, or black or gray, there is basically no color information and that's expressed by 50% gray.
Linear Light in the recomposition (or the others blending modes used by Der_W in the simplified working version) ignore that 50% gray.
As far as you don't touch the luminosity it works fine.
Reply With Quote
  #17  
Old 02-24-2010, 09:40 AM
_jason_'s Avatar
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: Problem separating color from picture

I think I'll take a look at the plugin SDK.
I need the separation in another way as it is done with the techniques above.

I really need accurate separations of the greyscale and the color channels as alphatransparent images. Also (optionally) red, green, blue separations on alphatransparency.

The parts have to give 100 percent accurate result if merged back on a white background (no blending modes used at all then).

I know there is a plugin called "Tinter" or so, which does just similar things (recoloring images by separating color information and re-applying modifications to the generated greyscale images). Surely worth to take a look at that too...

Thanks for all the help!

Jason
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
This drive me nuts!! Dodge and Burn problem. GlamGuru Photo Retouching 2 01-05-2010 05:13 AM
Lighting problem JenniferOwens Photo Retouching 13 04-10-2009 10:36 PM
1960 wedding picture randyjr Photo Restoration 13 03-05-2009 10:03 AM
This picture made it through Katrina. Well, sorta. rainbowcarnage Image Help 2 08-10-2008 09:02 PM
How to obtain this effect (see picture) jarulex Photo Retouching 2 05-07-2008 03:29 AM


All times are GMT -6. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2008 Doug Nelson. All Rights Reserved