PhotoshopForums.com Home
Navigate Contact FAQ Search Members
Generate gradient map from image?
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> Tools and Panels
 See a User Guidelines violation? Please contact us.
Author Message

Alcazar

Joined: 12 Jul 2011
Posts: 4
Location: Berlin, Germany


PostPosted: Tue Jul 12, 2011 6:12 pm    Post subject: Generate gradient map from image? Reply with quote

Hi!
Is there a way of making a custom gradient map from an image?

If it's not clear what i mean:
AFAIK a gradient map assigns colours to pixels according to their brightness. I practically want the reverse of this: Have a gradient map generated with the average colour of every pixel that has the same brightness in an image or part of an image.

I would hope to use this in portrait retouching, to get control of skin tones. If i try to make a gradient map manually, i never end up with realistic skin tones.

Any ideas? Thanks for your help.
Micha
View user's profile Send private message

jerryb4417

Joined: 20 Dec 2008
Posts: 710
Location: Oklahoma
PS Version: photoshop cs5
OS: win7 pro 64 bit, i7-3.2g, GTS 450,

PostPosted: Tue Jul 12, 2011 7:18 pm    Post subject: Re: Generate gradient map from image? Reply with quote

hi

first your a lot better than me.. but maybe i have an idea..... iam still learning about gradients..lol anyway

1. make a swatch of the image you want that will have the range of color you want
note: you may be able to find some swatches of skin color that might work...
2, then create a new color gradient...
3. set you points in the gradient editor
4. then using the eyedropper sample the colors in the swatch... you should see it set in the gradient scale....

then save the gradient...

I am not sure if that is what you want or if it will work for what you have in mind.. but it an idea.... i tried... let me know...



Alcazar wrote:
Hi!
Is there a way of making a custom gradient map from an image?

If it's not clear what i mean:
AFAIK a gradient map assigns colours to pixels according to their brightness. I practically want the reverse of this: Have a gradient map generated with the average colour of every pixel that has the same brightness in an image or part of an image.

I would hope to use this in portrait retouching, to get control of skin tones. If i try to make a gradient map manually, i never end up with realistic skin tones.

Any ideas? Thanks for your help.
Micha
View user's profile Send private message

Alcazar

Joined: 12 Jul 2011
Posts: 4
Location: Berlin, Germany


PostPosted: Wed Jul 13, 2011 4:26 pm    Post subject: Re: Generate gradient map from image? Reply with quote

Hi! Thank you!
However this doesn't solve the basic problem...
i would have a set of nice colours to chose from, but i still wouldn't know where exactly to place the points on the gradient editor to match them to the corresponding brightness.
Or am i getting you wrong?
Micha
View user's profile Send private message

thehermit

Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK


PostPosted: Wed Jul 13, 2011 5:54 pm    Post subject: Reply with quote

Hi Alcazar, welcome to the forum, a gradient mask for skin tone is usually generated from a set range of values (depending upon your technique) on either a set given range of values or sampled from the image (my preferred way), with blending mode set as colour and the opacity set to suit.

There are many ways to unify skin tones and blotchy skin and there are even more ways to unify slightly more saturated or uneven skin tones. I can think of more appropriate techniques but they may not be applicable to you, so I hesitate.

If you have an example of the type of effect that you are attempting to create, by all means post it.

_________________
If life serves you lemons, make lemonade!
View user's profile Send private message

Alcazar

Joined: 12 Jul 2011
Posts: 4
Location: Berlin, Germany


PostPosted: Wed Jul 13, 2011 6:49 pm    Post subject: Reply with quote

thehermit wrote:
Hi Alcazar, welcome to the forum


Thank you :-)

thehermit wrote:
a gradient mask for skin tone is usually generated from a set range of values (depending upon your technique) on either a set given range of values or sampled from the image (my preferred way), with blending mode set as colour and the opacity set to suit.


that's exactly what i'm doing now, including sampling from the image. my question is, is there a way to not only sample the colour but it's brightness too and place the colour on the gradient map according to it's sampled brightness? right now, i sample the colours and kind of guess where to put them on the gradient map - with not very good results. how do you decide where to place them on the map??

thehermit wrote:
There are many ways to unify skin tones and blotchy skin and there are even more ways to unify slightly more saturated or uneven skin tones. I can think of more appropriate techniques but they may not be applicable to you, so I hesitate.


yes, my main goal is to unify skin tones when for example for a part of the image they have a greenish cast, or too pink highlights. sometimes i paint in with a solid colour set to colour blend mode, and it works but as soon as i stay in areas of the same brighness, in darker areas the colour becomes too saturated.

thehermit wrote:
If you have an example of the type of effect that you are attempting to create, by all means post it.


I'll try to find something but i didn't really have a specific image in mind, i just thought generally it might be an elegant way to control skin tones.
View user's profile Send private message

thehermit

Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK


PostPosted: Thu Jul 14, 2011 5:19 am    Post subject: Reply with quote

Using a gradient map is normally reserved for local areas of tonality rather than across the whole of the image, saying that using a 'blend if' command does help to unify the results.

Gradient maps work on the luminosity values, you may be better advised to use curves adjustments and a whole lot of masking, as gradient maps don't work on hue values. Also areas of contrasting luminosity may not be best suited to a GM.

There is a method I use to unify patchy or blotchy skin tones, the inverse high pass technique. Rather than blather on, I will throw some links your way, which hopefully will provide more illuminating. Excuse the haphazard fashion they appear in, and apologies for making you do the sifting for useful information!

Gradient Maps and Uses

High Pass Inverted for Blotchy Skin

and not in the same ball park, but useful for going off at a tangent High Pass Sucks thread.

I would say in summary, gradient maps are fine for small localised areas but for more control I would use curves and adjustment layers.

Shout back if you want more links or clarification of anything.

_________________
If life serves you lemons, make lemonade!
View user's profile Send private message

Alcazar

Joined: 12 Jul 2011
Posts: 4
Location: Berlin, Germany


PostPosted: Fri Jul 15, 2011 6:27 am    Post subject: Reply with quote

thehermit wrote:
Using a gradient map is normally reserved for local areas of tonality


Exactly what i want to do. The problem lies in generating them.

Anyway, thanks for the links, good stuff!

As for my problem, i found a way - not as convenient as i hoped, but closer to what i wanted:
When you sample the colours, the colourpicker-dialog shows you the Lab-values. The L-value of that is a number between 0 and 100. Now if for example the colour has a L-value of 85, i place this colour on the 85%-position on the gradient map. Results are pretty close.

Thank you very much for your support!
Micha
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> Tools and Panels All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Contact - User Guidelines >

Copyright © 2003-2016. PhotoshopForums.com, iFroggy Network. All Rights Reserved.
Powered by phpBB © phpBB Group. phpBB SEO. Privacy Policy.
We are in no way affiliated with Adobe. Photoshop, Adobe and related marks are registered trademarks of Adobe.
PhotoshopForums.com