What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Alternatives to get Light Reflectance Values from a given photograph.


omeride

New Member
Messages
3
Likes
0
Hi everyone, Homer here, surfing the web and searching for some luminosity help with Photoshop.

Im exploring alternatives to get Light Reflectance Values from a given photograph.

I always get LRV values for each colour independently (when I can layer them out from an artwork) matching them to the NCS colour fan.
From NCS, every colour has a specific LRV number, so then I calculate the especific area that colour covers within the size of the total of the artwork and then do a % calculation
to get an overall LRV value of the entire artwork.

Thats an easy thing to do with digital graphics/artworks when you can individualize each colour independently (usually no more than 6, no gradients, no shadows, etc) just plain colours.

Now Im trying to do the same with photographs where shadows, highlights, colour blends and gradients are part of any image hence almost impossible to individualize each colour and its areas.

Does anyone know how to get the same approach as the described but for photographs? I was thinking about Photoshop Histogram etc, but still I can't figure out a feasible/consistent procedure.

Any help would be much appreciated.
Regards,
 
Hi @omeride
It is not hard to have Photoshop effectively do calculations or the RBG channels and compute an overall luminosity number as a gray-tone image.
So, the first question is, what do you want—a gray-tone image computed from RGB values to represent Light Reflection? Or do you need something finer, such as the overall reflectance of the image?
In either case, we just need the equation to convert from RGB to Reflectance.
Note, however, that I have seen several different calculations for reflectance online.
One is using a simple formula with RGB numbers.
Another is using Luminosity from Lab space and a calculation.
Photoshop natively can easily calculate image luminosity as it uses the formula: Luminosity = 0.3 * R + 0.59* G + .11* B

The other point is we need to know which RGB color space we need to use in the calculations. The equation I just gave would yield different Luminosities for different RGB color sapces as wider gamut color spaces use smaller color numbers for the same physically seen color.

I am pretty sure we can help you out. Just need some more clarification to put something together.
I hope this is a helpful start for a discussion.
John Wheeler

PS - If you could point me to an online link that might give the conversion equations, that would be a good start.
 
Hi @omeride
It is not hard to have Photoshop effectively do calculations or the RBG channels and compute an overall luminosity number as a gray-tone image.
So, the first question is, what do you want—a gray-tone image computed from RGB values to represent Light Reflection? Or do you need something finer, such as the overall reflectance of the image?
In either case, we just need the equation to convert from RGB to Reflectance.
Note, however, that I have seen several different calculations for reflectance online.
One is using a simple formula with RGB numbers.
Another is using Luminosity from Lab space and a calculation.
Photoshop natively can easily calculate image luminosity as it uses the formula: Luminosity = 0.3 * R + 0.59* G + .11* B

The other point is we need to know which RGB color space we need to use in the calculations. The equation I just gave would yield different Luminosities for different RGB color sapces as wider gamut color spaces use smaller color numbers for the same physically seen color.

I am pretty sure we can help you out. Just need some more clarification to put something together.
I hope this is a helpful start for a discussion.
John Wheeler

PS - If you could point me to an online link that might give the conversion equations, that would be a good start.
Thanks John for your message.
What I need is the overall reflectance of any given photo related to its physical dimensions.(qty of colour (qty of light) per area covered by them)
My method is using LRV numbers from NCS colours, whatever the photoshop procedure might be, I must stick to NCS colour chart and the LRV values from their colour palette.

Thanks
 
Hi @omeride
I think I found a source of information that provides the equation needed and also considers color space/modes.
The formal is based on the Lab color space and an equation using just the L value. The equation is

LRV = (((L+16)/116)^3)*100 results in a percentage number representing LRV

Here are the steps to make this work
- Change the image to a 16-bit image for accuracy in the math
- First, convert the image from a known color space to Lab Color Space (mode)
- Create a new Layer above set to pure white (L=100 a=0 b=0) and set blend to Multiply (this zeros out any color).
- Merge these two Layers so you have a pure L channel image
- Create a new Layer with the Value set to L=86.21 a=0 b=0 and set to multiply (this divides L by 116)
- Merge these two Layers
- Create a new Layer with the Value set to L-13.79 and the blend to Linear Dodge (Add). This adds the value of 16/116
- Merge these Layers back down to one Layer
- Duplicate the remaining Layer twice and set both of the new Layers to a Blend of multiple (this takes the prior values to the cubed power)
- Merge these three Layers down to one Layer, and now you have an image Layer with L values that are now converted to LRV
To average these over the whole picture, you can use the Filter Blur Average, which averages all the LRV values for the whole image.

I tried this out by by testing some NCS color conversions at https://www.e-paint.co.uk/search-lrv.asp
to create some sample NCS colors that showed their LRV values, and I also used the website https://ncs.to/lab/ncs-s-4040-r80b/
To convert the NCS numbers to Lab. I used those Lab numbers in the abovementioned process and compared the result with the LRV value in the first link.
They came out reasonably close.

I hope this gives you a starting point and we can continue the discussion as well if you have questions or adjustments are need
John Wheeler
 
Hi @omeride
I think I found a source of information that provides the equation needed and also considers color space/modes.
The formal is based on the Lab color space and an equation using just the L value. The equation is

LRV = (((L+16)/116)^3)*100 results in a percentage number representing LRV

Here are the steps to make this work
- Change the image to a 16-bit image for accuracy in the math
- First, convert the image from a known color space to Lab Color Space (mode)
- Create a new Layer above set to pure white (L=100 a=0 b=0) and set blend to Multiply (this zeros out any color).
- Merge these two Layers so you have a pure L channel image
- Create a new Layer with the Value set to L=86.21 a=0 b=0 and set to multiply (this divides L by 116)
- Merge these two Layers
- Create a new Layer with the Value set to L-13.79 and the blend to Linear Dodge (Add). This adds the value of 16/116
- Merge these Layers back down to one Layer
- Duplicate the remaining Layer twice and set both of the new Layers to a Blend of multiple (this takes the prior values to the cubed power)
- Merge these three Layers down to one Layer, and now you have an image Layer with L values that are now converted to LRV
To average these over the whole picture, you can use the Filter Blur Average, which averages all the LRV values for the whole image.

I tried this out by by testing some NCS color conversions at https://www.e-paint.co.uk/search-lrv.asp
to create some sample NCS colors that showed their LRV values, and I also used the website https://ncs.to/lab/ncs-s-4040-r80b/
To convert the NCS numbers to Lab. I used those Lab numbers in the abovementioned process and compared the result with the LRV value in the first link.
They came out reasonably close.

I hope this gives you a starting point and we can continue the discussion as well if you have questions or adjustments are need
John Wheeler

Hi John, thank you so much for your time and help with this.

Im trying to test your recommendation but somehow Photoshop does not me allow to use numbers with commas like 86.21 or negatives like -13.79
Am I doing something wrong? cant proceed because of it!
Working with a generic photo in a 16bit lab colour mode.

Yes e-paint website Is my reference for ncs too.

Thanks again

1731580523900.png
 

Back
Top