• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Challenging color matching head scratcher

New Here ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

I'm working with custom lighting to produce photography used in photogrammetry, there being two models of LEDs used in separate exposures of nearly identical rasters. I'm limited to manufacturing tolerances in how closely matched are the spectral output of both arrays, there being a slight shift in overall chromaticity between images illuminated with each set of LEDs. This poses a problem when I go to layer these exposures in Photoshop to apply a difference blend, something I intend to use to tease out specular reflections in one of the image sets. This only works when the the color matches perfectly in both sets. I've had these LEDs tested and was provided a set of text files containing the needed spectral data, the question now turning to how to use this data to filter out of each data set what's not in common to the other data set, allowing me to work with a lowest common denominator. I'm not worried about dumbing down the color, as the isolated specualar data is converted to grayscale before it's put to use in a shader tree in a game engine.

Any idea how this might work in Photoshop. I'd write an action script to batch process the image database, just need to figure out how to make this work on two images based on the data in the .txt files. Here's a sample of how the data appears in the text file, seems to present a wavelength of light in one column with a response by the colorimeter next to that, then a repeat, perhaps a second sampling? I can find out more about the format of the data, but any ideas regarding scripting to use this data is mucho appreciated. Many thanks!

Random copy/paste from the blue end:

450.7500000.011463450.7500000.308293
451.0000000.011402451.0000000.310317
451.2500000.011283451.2500000.310724
451.5000000.011365451.5000000.316683
451.7500000.011431451.7500000.322293
452.0000000.011274452.0000000.321619
452.2500000.011134452.2500000.321378
452.5000000.011314452.5000000.330399
452.7500000.011009452.7500000.325282
453.0000000.010978453.0000000.328142
453.2500000.010910453.2500000.329946
453.5000000.010683453.5000000.326856
453.7500000.010537453.7500000.326125

Views

488

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
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 08, 2017 Mar 08, 2017

The problem with LED is that it's not spectrally uniform. It has sharp spikes and deep troughs at given wavelengths.

What you're up against is known as metamerism failure, and this starts already in the camera sensor. This is why non-uniform light sources like LED or fluorescent require individual/custom camera profiles in the raw converter to (hopefully) reproduce consistently.

In other words this isn't a simple question of white balancing or shifting white point, as it would be with continuous l

...

Votes

Translate

Translate
Adobe
Community Expert ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

The problem with LED is that it's not spectrally uniform. It has sharp spikes and deep troughs at given wavelengths.

What you're up against is known as metamerism failure, and this starts already in the camera sensor. This is why non-uniform light sources like LED or fluorescent require individual/custom camera profiles in the raw converter to (hopefully) reproduce consistently.

In other words this isn't a simple question of white balancing or shifting white point, as it would be with continuous light sources like daylight or incandescent.

I'm not saying it can't be done, but to start with it would require very well adapted camera profiles in the raw stage.

Votes

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
community guidelines
LEGEND ,
Mar 08, 2017 Mar 08, 2017

Copy link to clipboard

Copied

Could be some form of ASCII LUT format. When formatted suitably, you might be able to use it in PS using a Color Lookup adjustment layer. Once you figure out the specifics, you probably could also convert it to an ICC profile for easier use.

Mylenium

Votes

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
community guidelines
New Here ,
Mar 09, 2017 Mar 09, 2017

Copy link to clipboard

Copied

Right, some type of ASCII LUT, will check with the firm that ran the test about just what format this file follows. The trick then is to use a PS adjustment layer that references a LUT in a format PS is happy with, so maybe I'll need some kind of format conversion utility. If not within this PS forum devoted to scripting, any ideas on what other scripting forums out there might deal with this kind of issue? Many thanks for the input, most useful.

Votes

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
community guidelines
Community Expert ,
Mar 09, 2017 Mar 09, 2017

Copy link to clipboard

Copied

BenjyvC  wrote

I'm not worried about dumbing down the color, as the isolated specualar data is converted to grayscale before it's put to use in a shader tree in a game engine.

I just have to ask the obvious question: Could you use grayscale/monochrome just for the Difference blend? I mean, if all you want is to isolate the specular highlights?

Votes

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
community guidelines
New Here ,
Mar 09, 2017 Mar 09, 2017

Copy link to clipboard

Copied

LATEST

D Fosse, thanks for the thought, but I left out one detail in the workflow (not to burden the reader). There's a bit of post-processing that has to happen on the isolated specular image while it's still in color before conversion to grayscale at the end.

Regarding your first comment about spiky data and what this portends at the sensor level, your thoughts are dead on and I'm interested to pursue that level of control in the future, but for present purposes, this exercise is less concerned with absolutely faithful color rendering than it is with realism in virtual lighting, which isolated specular data makes possible. As is, I do shoot RAW, am clear that the conversion invites all kinds of inaccuracies, probably mostly in the shadows and highlights, but given I'm using 92 CRI 5700K LEDs, the white balance isn't offensive. The inability to isolate speculars is. Thanks.

Votes

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
community guidelines