POV-Ray : Newsgroups : povray.advanced-users : D65 spectral locus : Re: D65 spectral locus Server Time
25 Apr 2024 13:18:30 EDT (-0400)
  Re: D65 spectral locus  
From: clipka
Date: 17 Mar 2017 04:49:22
Message: <58cba312@news.povray.org>
Am 17.03.2017 um 06:27 schrieb Mike Horvath:
> This page
> 
> http://www.brucelindbloom.com/index.html?LabGamutDisplayHelp.html
> 
> Talks about generating "pulses" to determine the shape extents. It
> doesn't really explain very well what the "pulses" are and what to do
> with them.

Ah, yes. That's the thing I had come up with as well. Here's my attempt
at explaining how it works.

First, notice that the colours that make up the surface of the shape are
the same no matter what colour space you choose: Converting it from e.g.
CIE XYZ to CIE xyY or CIE L*a*b distorts the shape, but doesn't affect
its topology.

I will focus on CIE xyY colour space, because in this colour space the
shape has a property I will exploit.


Let's start by finding the "girth" of the shape in xyY space -- the
points that have the most extreme xy coordinates, farthest away from the
equal-energy point at x=y=1/3.

Obviously, the most extreme xy coordinates of real colours you can ever
get are those of pure monochromatic spectra, i.e. spectra where all the
power is focused into a single wavelength, like this one:

    Power (%)
         |
    100 _|
         |               !
    80 __|               !
         |               !
    60 __|               !
         |               !
    40 __|               !
         |               !
    20 __|               !
         |               !
    0 ___|_______________!___________________________
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

If we were talking about emissive spectra, such a colour could be
arbitrarily bright, because we could put arbitrarily much power into it.
However, we want to examine reflected light, so we can't exceed 100%.

Now notice that since we asked for a single wavelength, we got a
spectrum with an infinitesimally small width. Which also means that if
this is the spectrum of a reflector, it can only reflect an
infinitesimally small portion of the incoming light.

This means that as we approach the most extreme xy coordinates, the
brightness approaches zero -- in other words, the "girth" of our shape
is at Y=0 (or, more precisely, infinitesimally small Y).

Notice that the shape of this "girth" is exactly the famous CIE xy
horseshoe.


Now suppose we want to consider all the possibilities we have to
increase the brightness of our initial monochromatic spectrum:

(A) Add any non-monochromatic spectrum:

We don't need to follow this idea any further, as it would be equivalent
to splitting up that non-monochromatic spectrum into an infinite number
of monochromatic spectra, and adding those one after the other.

(B) Add another monochromatic spectrum:

    Power (%)
         |
    100 _|
         |               !
    80 __|               !
         |               !
    60 __|               !       !
         |               !       !
    40 __|               !       !
         |               !       !
    20 __|               !       !
         |               !       !
    0 ___|_______________!_______!___________________
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

Note that this added spectrum corresponds to a particular xy coordinate
on the horseshoe, and mixing it into our initial spectrum will shift the
xy coordinate of our resulting colour towards that point on the
horseshoe. This will take us _inside_ the shape, so we're not interested
in such a colour.

(C) Widen our spectrum:

    Power (%)
         |
    100 _|
         |               #
    80 __|               #
         |               #
    60 __|               #
         |               #
    40 __|               #
         |               #
    20 __|               #
         |               #
    0 ___|_______________#___________________________
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

Note that this also _slightly_ shifts the xy coordinate towards the
center of the horseshoe, but it is the best we can get for the new
brightness. Therefore, the resulting colour _is_ on the surface of the
shape.


Now our spectrum is no longer monochromatic.

How can we make this colour even brighter? Well, through the very same
processes:

(A) Add any non-monochromatic spectrum.
(B) Add another monochromatic spectrum.
(C) Widen our spectrum.

Once again, (A) is of no interest since it can be achieved in smaller
steps via either (B) or (C); (B) would take us inside the shape; and (C)
is the way to go.

However, now that our spectrum is no longer infinitesimally small, we
can (and have to) take a closer look at such a widened spectrum.

Consider the following two spectra:

(C.1)

    Power (%)
         |
    100 _|
         |               #
    80 __|              ###
         |              ###
    60 __|             #####
         |             #####
    40 __|             #####
         |             #####
    20 __|            #######
         |            #######
    0 ___|___________#########_______________________
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

(C.2)

    Power (%)
         |
    100 _|
         |             #####
    80 __|             #####
         |             #####
    60 __|             #####
         |             #####
    40 __|             #####
         |             #####
    20 __|             #####
         |             #####
    0 ___|_____________#####_________________________
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

Let's assume both have the same brightness and also the same hue.

Notice how (C.2) is tighther than (C.1). As a result, it is more
saturated -- as a matter of fact it is the maximum saturation you can
get for that hue and brightness. So (C.2) is on the surface of our
shape, while (C.1) is slightly inside.


We can repeat the process until we have widened our spectrum to cover
the entire visible range: That's the whitepoint, so we can go no further
up in Y; and we also can't get more colourful without reducing the
brightness.


Thus, all colours on the surface of our shape have one thing in common:
Their spectrum is at 100% over a contiguous range of wavelengths, and 0%
outside that range. Their only difference is the width of that range,
and its location.


Are we done yet? Nope, there's one thing we have forgotten: The purple line.

At the purple side of the shape, the purest and brightest colours you
can get are additions of one spectra at the extreme blue end and another
one at the extreme red end, like this one:

    Power (%)
         |
    100 _|
         ####                                 #######
    80 __####                                 #######
         ####                                 #######
    60 __####                                 #######
         ####                                 #######
    40 __####                                 #######
         ####                                 #######
    20 __####                                 #######
         ####                                 #######
    0 ___####_________________________________#######
         |   |   |   |   |   |   |   |   |   |   |    Wavelength (nm)
        350 400 450 500 550 600 650 700 750 800 850

To keep the algorithm simple, it is convenient to think of the visible
spectrum as "wrapping around" at purple, so the above spectrum can be
thought of as being at 100% in the range from 800nm to 400nm (wrapping
around in between).


There. Now you know the common property of all reflection spectra that
map to the surface of the shape you're after. I hope this helps you
devise an algorithm to compute them in a systematic fashion.


Post a reply to this message

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