POV-Ray : Newsgroups : povray.advanced-users : L*C*h(uv) color solid Server Time
2 Jul 2024 18:56:28 EDT (-0400)
  L*C*h(uv) color solid (Message 61 to 70 of 82)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 03:28:21
Message: <583beaa5$1@news.povray.org>
On 11/28/2016 3:23 AM, scott wrote:
>>> May I ask the stupid question, "why not"?
>>>
>>> I would expect the Lch colour space to encompass all the RGB colour
>>> space, so the boundaries of the latter should be sufficient to bound the
>>> shape.
>>>
>>> My guess is that the issues you see with the shape are due to bogosities
>>> in your colour conversion functions.
>>>
>>
>> L, C and H are supposed to form a cylinder. There are some very small
>> sRGB bits poking outside of the cylinder. I guess I could show the bits
>> as well, as long as I explain what they are.
>
> If sRGB is poking out of your cylinder, then Adobe RGB is going to poke
> out even more, and the entire human visual range is going to be much
> larger. Are you sure you've got the radius of your cylinder correct to
> match your colour calculations? Also it would be surprising to me if the
> human visual range came out exactly as a cylinder (after a brief glance
> of the maths involved), are you sure about this?
>

Yeah, I explain the mistake I made in this thread:

http://news.povray.org/583bd889%241%40news.povray.org

Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 03:33:52
Message: <583bebf0$1@news.povray.org>
On 11/28/2016 3:23 AM, scott wrote:
> Also it would be surprising to me if the
> human visual range came out exactly as a cylinder (after a brief glance
> of the maths involved), are you sure about this?
>

The human visual range has a very irregular shape.

https://en.wikipedia.org/wiki/File:Cie_Chart_with_sRGB_gamut_by_spigget.png

There's a lot of blank empty space around it in every color space. (The 
one in the picture is called CIExyY I think.

I would like to learn how to plot this irregular shape in the near future.

Mike


Post a reply to this message

From: scott
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 03:53:53
Message: <583bf0a1$1@news.povray.org>
>> Also it would be surprising to me if the
>> human visual range came out exactly as a cylinder (after a brief glance
>> of the maths involved), are you sure about this?
>>
>
> The human visual range has a very irregular shape.
>
> https://en.wikipedia.org/wiki/File:Cie_Chart_with_sRGB_gamut_by_spigget.png
>
> There's a lot of blank empty space around it in every color space. (The
> one in the picture is called CIExyY I think.
>
> I would like to learn how to plot this irregular shape in the near future.

You just need the XYZ colour-matching functions in terms of wavelength. 
Look here (just click the first "Submit" to get a basic table):

http://cvrl.ioo.ucl.ac.uk/cmfs.htm

This table then gives you the exact XYZ values for each pure wavelength. 
XYZ is a linear representation of absolute colour, so you can do a lot 
of math with them (eg adding, averaging, mixing etc).

To get the graph you linked to, you just need to calculate x and y for 
each of those wavelengths.

x = X/(X+Y+Z)
y = Y/(X+Y+Z)

You'll then find that the x,y pairs give the outline of the graph you 
linked to, which are the pure wavelengths. The internal area is formed 
by mixing pure wavelengths, so roughly speaking the further you are away 
from the boundary the more "wideband" the light is.


Post a reply to this message

From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 04:11:41
Message: <583bf4cd$1@news.povray.org>
On 11/28/2016 3:53 AM, scott wrote:
>>> Also it would be surprising to me if the
>>> human visual range came out exactly as a cylinder (after a brief glance
>>> of the maths involved), are you sure about this?
>>>
>>
>> The human visual range has a very irregular shape.
>>
>> https://en.wikipedia.org/wiki/File:Cie_Chart_with_sRGB_gamut_by_spigget.png
>>
>>
>> There's a lot of blank empty space around it in every color space. (The
>> one in the picture is called CIExyY I think.
>>
>> I would like to learn how to plot this irregular shape in the near
>> future.
>
> You just need the XYZ colour-matching functions in terms of wavelength.
> Look here (just click the first "Submit" to get a basic table):
>
> http://cvrl.ioo.ucl.ac.uk/cmfs.htm
>
> This table then gives you the exact XYZ values for each pure wavelength.
> XYZ is a linear representation of absolute colour, so you can do a lot
> of math with them (eg adding, averaging, mixing etc).
>
> To get the graph you linked to, you just need to calculate x and y for
> each of those wavelengths.
>
> x = X/(X+Y+Z)
> y = Y/(X+Y+Z)
>
> You'll then find that the x,y pairs give the outline of the graph you
> linked to, which are the pure wavelengths. The internal area is formed
> by mixing pure wavelengths, so roughly speaking the further you are away
> from the boundary the more "wideband" the light is.
>

Well, I don't understand that. Clipka did most of the work for me last 
time...

Maybe you could take a look at the code on the LCH image's page on 
Wikimedia and make some suggestions.

Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 04:13:28
Message: <583bf538@news.povray.org>
On 11/28/2016 3:53 AM, scott wrote:
> You just need the XYZ colour-matching functions in terms of wavelength.
> Look here (just click the first "Submit" to get a basic table):
>
> http://cvrl.ioo.ucl.ac.uk/cmfs.htm
>
> This table then gives you the exact XYZ values for each pure wavelength.
> XYZ is a linear representation of absolute colour, so you can do a lot
> of math with them (eg adding, averaging, mixing etc).
>
> To get the graph you linked to, you just need to calculate x and y for
> each of those wavelengths.
>
> x = X/(X+Y+Z)
> y = Y/(X+Y+Z)
>
> You'll then find that the x,y pairs give the outline of the graph you
> linked to, which are the pure wavelengths. The internal area is formed
> by mixing pure wavelengths, so roughly speaking the further you are away
> from the boundary the more "wideband" the light is.
>


Also, I'm more interested in the 3-dimensional solid than the 2D 
chromaticity diagram.

Mike


Post a reply to this message

From: scott
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 04:24:37
Message: <583bf7d5$1@news.povray.org>
> Also, I'm more interested in the 3-dimensional solid than the 2D
> chromaticity diagram.

The 3D solid of the Yxy shape is just the 2D shape you linked to 
extruded upwards as a prism. That's why you don't normally see Yxy or 
Yuv shown in 3D - it doesn't give any benefit over the 2D shape.


Post a reply to this message

From: scott
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 04:25:06
Message: <583bf7f2$1@news.povray.org>
On 28/11/2016 09:11, Mike Horvath wrote:
> On 11/28/2016 3:53 AM, scott wrote:
>>>> Also it would be surprising to me if the
>>>> human visual range came out exactly as a cylinder (after a brief glance
>>>> of the maths involved), are you sure about this?
>>>>
>>>
>>> The human visual range has a very irregular shape.
>>>
>>> https://en.wikipedia.org/wiki/File:Cie_Chart_with_sRGB_gamut_by_spigget.png
>>>
>>>
>>>
>>> There's a lot of blank empty space around it in every color space. (The
>>> one in the picture is called CIExyY I think.
>>>
>>> I would like to learn how to plot this irregular shape in the near
>>> future.
>>
>> You just need the XYZ colour-matching functions in terms of wavelength.
>> Look here (just click the first "Submit" to get a basic table):
>>
>> http://cvrl.ioo.ucl.ac.uk/cmfs.htm
>>
>> This table then gives you the exact XYZ values for each pure wavelength.
>> XYZ is a linear representation of absolute colour, so you can do a lot
>> of math with them (eg adding, averaging, mixing etc).
>>
>> To get the graph you linked to, you just need to calculate x and y for
>> each of those wavelengths.
>>
>> x = X/(X+Y+Z)
>> y = Y/(X+Y+Z)
>>
>> You'll then find that the x,y pairs give the outline of the graph you
>> linked to, which are the pure wavelengths. The internal area is formed
>> by mixing pure wavelengths, so roughly speaking the further you are away
>> from the boundary the more "wideband" the light is.
>>
>
> Well, I don't understand that.

Which bit?


Post a reply to this message

From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 17:21:47
Message: <583cadfb$1@news.povray.org>
On 11/28/2016 4:24 AM, scott wrote:
>> Also, I'm more interested in the 3-dimensional solid than the 2D
>> chromaticity diagram.
>
> The 3D solid of the Yxy shape is just the 2D shape you linked to
> extruded upwards as a prism. That's why you don't normally see Yxy or
> Yuv shown in 3D - it doesn't give any benefit over the 2D shape.
>
>

I thought there was some tapering as the Y increases? This image 
suggests that is the case.

http://www.math.ubc.ca/~cass/courses/m309-03a/m309-projects/bajwa/images/cie_3d.gif

Mike


Post a reply to this message

From: clipka
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 18:06:00
Message: <583cb858$1@news.povray.org>
Am 28.11.2016 um 23:21 schrieb Mike Horvath:
> On 11/28/2016 4:24 AM, scott wrote:
>>> Also, I'm more interested in the 3-dimensional solid than the 2D
>>> chromaticity diagram.
>>
>> The 3D solid of the Yxy shape is just the 2D shape you linked to
>> extruded upwards as a prism. That's why you don't normally see Yxy or
>> Yuv shown in 3D - it doesn't give any benefit over the 2D shape.
>>
>>
> 
> I thought there was some tapering as the Y increases? This image
> suggests that is the case.
> 
> http://www.math.ubc.ca/~cass/courses/m309-03a/m309-projects/bajwa/images/cie_3d.gif

That's not the limit of the xyY space.

That's the theoretical limit of _reflective_ colours illuminated by
standard illuminant C, plotted in xyY space.


Post a reply to this message

From: Mike Horvath
Subject: Re: L*C*h(uv) color solid
Date: 28 Nov 2016 18:33:20
Message: <583cbec0$1@news.povray.org>
On 11/28/2016 6:05 PM, clipka wrote:
>> I thought there was some tapering as the Y increases? This image
>> suggests that is the case.
>>
>> http://www.math.ubc.ca/~cass/courses/m309-03a/m309-projects/bajwa/images/cie_3d.gif
>
> That's not the limit of the xyY space.
>
> That's the theoretical limit of _reflective_ colours illuminated by
> standard illuminant C, plotted in xyY space.
>

Yes, that is fine. Not sure whether to use C or D65, though.

https://en.wikipedia.org/wiki/Illuminant_D65

These images on Wikipedia use D65, so I may just stick with that.

https://en.wikipedia.org/wiki/File:Cie_Chart_with_sRGB_gamut_by_spigget.png
https://en.wikipedia.org/wiki/File:CIE1931xy_gamut_comparison.svg
https://en.wikipedia.org/wiki/File:Lab_color_space.png (I think)


Mike


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.