Photoshop: Color Sampler Tool Averaging solution

  • 1
  • Idea
  • Updated 6 months ago
  • (Edited)
I work for www.starkcarpet.com.

We use Photoshop CC 2018 to color correct images and we've discovered a shortcoming in the color sampler tool that, by appearances, shouldn't be hard to correct. The shortcoming is as follows.

As your team is aware, the color sampler tool allows the user to select multiple points to be sampled and displayed in the INFO panel as seen below.


Our team here proposes a new feature to be added to the info panel. We propose that an option be added to display a final average output that is derived from the data of the existing points.
For example, to the RIGHT of point 5, the following (or the likes of) would be displayed:



Now, lets talk about why I propose this new feature is justified and would help the broader community. To do so, I will present a highly detailed example to illustrate Stark Carpet's specific solution, but also will likely apply to many other unspoken applications as well of other users. The application is as follows....

Lets say we have the following image taken at an ambient color temperature of 6000K. Assume that the image has been verified in its color accuracy under the color temperature conditions that the shot was taken. A very specific fact is that the light does not hit all corners of the object at EXACTLY the same angle and intensity, and therefore it is a reality that there will be natural variations of RGB average values of any sample point (although the values will be close).



Now, lets say we take a second image of the same object under different ambient lighting. The image is verified to be correct PER the ambient lighting it was taken IN. Though the photo is correct and the color is true, the alternate lighting scenario would make the object look such as this...



Here is how our proposed color sampler point averaging data would assist...

Using the first photo, we set 5 color sample points set at 100px range. Looking in the info panel, you would then see 5 points with their associated RGB values. Ideally, a final output average of RGB would then be displayed based on the data of the 5 points.

We then record that final output number.

We then go to the 2nd image, again set 5 sample points set at 100px and obtain the 2nd photo's AVERAGE RGB from the proposed addon we suggest.

Now that the 2nd photo's AVERAGE RGB is displayed (based on the 5 point data), we can simply apply a color balance layer to adjust RGB while monitoring the info panel for the 5 point average to change to the values we determine are accurate based on our first photo data.

That's the proposal we suggest and we truly hope that it can be incorporated as soon as possible into photoshop.

We feel it would be very useful to streamline our work under a highly detailed and color critical environment that is very sensitive to lighting conditions.
Photo of Jamil Aslam

Jamil Aslam

  • 3 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 17097 Posts
  • 2917 Reply Likes
I think this would be possible get from a script.
Photo of Jamil Aslam

Jamil Aslam

  • 3 Posts
  • 0 Reply Likes
Jeffrey,

Can you please assist with info on where to obtain such a script? I have no scripting knowledge and I truly believe this request isn't esoteric in nature. Such a color sampler averaging block would help many many people!
Photo of Geoff Merlin

Geoff Merlin

  • 4 Posts
  • 4 Reply Likes
#target photoshop;
app.bringToFront();

main();
function main(){
if(!documents.length) return;
var count = activeDocument.colorSamplers.length;
if(count != 5){
alert("Only " + count + " colorsamplers exist, there should be five!");
return;
}
var R=G=B=0;
var Colour = new SolidColor();
for (a=0;a<count;a++){
var Colour = activeDocument.colorSamplers[a].color;
R += Colour.rgb.red; G += Colour.rgb.green; B += Colour.rgb.blue;
}
alert("Average \nR =" +(R/5).toFixed(2) +"\nG = " +(G/5).toFixed(2) + "\nB = " +(B/5).toFixed(2));
};
Photo of Jamil Aslam

Jamil Aslam

  • 3 Posts
  • 0 Reply Likes
Rather than scripting, can Adobe just include this as a feature?

If you know though a script for this, can you share?
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 17097 Posts
  • 2917 Reply Likes
Take a look at https://forums.adobe.com/thread/509602

This request is esoteric enough that it's unlikely something we'd add.
Photo of Jamil Aslam

Jamil Aslam

  • 1 Post
  • 0 Reply Likes
Where can a script like this be obtained