Highlighted

Precise color correction - using a script to adjust white balance [title edited by moderator]

New Here ,
Oct 26, 2020

Copy link to clipboard

Copied

How can I reduce the saturation of the already under-saturated pixels on an image?
I'm searching for a script / command which can select all the pixels on the image which has the saturation value between 0% and 5%.
In this way it can be easy to have a precise WB corrections on the images.
Thank you all for the responses!
Daniel

TOPICS
Feature request, How to

Views

93

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Precise color correction - using a script to adjust white balance [title edited by moderator]

New Here ,
Oct 26, 2020

Copy link to clipboard

Copied

How can I reduce the saturation of the already under-saturated pixels on an image?
I'm searching for a script / command which can select all the pixels on the image which has the saturation value between 0% and 5%.
In this way it can be easy to have a precise WB corrections on the images.
Thank you all for the responses!
Daniel

TOPICS
Feature request, How to

Views

94

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 26, 2020 0
Adobe Community Professional ,
Oct 27, 2020

Copy link to clipboard

Copied

Hi

I edited your title - there are some script specialists on the forum - changing the title will make it easier for your request to be discovered by those people.

Hope you get an answer soon. 

I wonder if a Photoshop action could do it? Creating an adjustment layer with "apply if" to set the range.

Not my speciality but it may be worth researching.

 

I hope this helps

thanks
neil barstow, colourmanagement.net :: adobe forum volunteer
[please do not use the reply button on a message within the thread, only use the blue reply button at the top of the page, this maintains the original thread title and chronological order of posts]

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 27, 2020 0
Adobe Community Professional ,
Oct 27, 2020

Copy link to clipboard

Copied

 

THE COMP II.jpg

 

If the objective is to locate and select those areas in an image that measure highlight values of 5% or less, the first step is to create a 5% value. Since the Lab Lightness scale extremes are 0 to 100, begin by creating the value in Lab on a transparent background, then changing the Mode to RGB. You have to do this only once. It becomes the Reference Patch for all images to be tested.

 

  1. Create 1”x1” patch RGB, Background Transparent
  2. Image > Mode > Lab Color
  3. In the Info Panel, change one to Lab by clicking on it eye dropper. Lab range is zero percent for black, and 100% as pure white. We want a patch at 95%.
  4. In the Color Picker Lab section, set the L to 95, a and b each to 0.
  5. Edit > Fill the patch with that Lightness value. It is your 5%.
  6. Return to RGB. You now have the Reference Patch   

 

To use it:

Open an image and add 1 or more inches to one of the sides of the canvas. (Fig 1)

Drag the Reference Patch into that area as an added Layer.  (Fig 1)

Add a Threshold Adjustment Layer, and move its slider all the way to its right (Fig 2)

Drag the slider slowly to the left until the Reference Patch disappears you have now found the areas <= 5% lightness. (Fig 3)

Use the Magic Wand, 3x3 average, 0 Tolerance, Not Contiguous to click on a white area. You have selected the desired areas of lightness. (Fig 4)

Trash the Adjustment Layer. The Selection will appear on the image.

You can Cmd+J to put it on a separate layer, and/or change its value.

Last, return to the original crop.

 

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 27, 2020 0
New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

Thank you for your kind answer!
Sometomes I use the way what you just described but I cannot search for saturation value in this way,
By the treshold command I can select only the light / dark areas separately.
I can't figure it out (even after 18 years practice in PS) how to turn the Treshold command to use it for searching for saturation values.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 27, 2020 0