: How to find the nearest color from a list of 9 in Photoshop? I've a picture of an static object correctly balanced and exposed: I would like to sample the nearest color from my own palette
I've a picture of an static object correctly balanced and exposed:
I would like to sample the nearest color from my own palette of 9 RGB or Lab using Photoshop:
Colour palette:
#8270a4 #aa83cb #62487c
#b8b2fb
#785cb4
#304384
#8372a6
#8270a4
#9faae5
More posts by @Yeniel278
2 Comments
Sorted by latest first Latest Oldest Best
You can use this nice script to get your Delta-E values.
You can find it here on pastebin. Just copy the code into notepad, or another text editor like notepad++, and save it out as a .jsx file.
Then, you can run it by dropping the script into your Photoshop scripts folder found under:
C: Program Files Adobe Your Photoshop Version Presets
Then:
Load your image in PS
With the Pen tool P draw a perimeter that will correspond to the four corner marks of the chart, starting with the upper left corner, then the lower left, the lower right, the upper right and closing in the upper left like so:
Run the script by going to File>Scripts>color-analysis
The script will run, leaving a series of black circles for each measurement, to show where the measurement was, and what area it occupied.
In the same directory that the evaluated image occupies, a file will be created with the same name as the image processed with _color_analysis.txt added to the end.
Because the nearest color isn't universally accepted concept, I give my own formula.
The problematic color is in the bottom layer and the palette is above it. The palette layer has blending mode = difference. Find the darkest piece in the palette. That's the nearest color. Use the color picker and watch the brightness values. In this case the nearest color is in the middle of your palette.
This method compares the numbers. Subjectively nearest as you see it on your screen can be found by having blending mode = normal in both layers and watching what color in the palette mixes first to the background when you walk further from the display or zoom the image smaller.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.