|
|
On 3/16/2017 7:53 PM, clipka wrote:
>
> Sorry, but this is totally bonkers.
>
> The indices into xyz_table are to be interpreted as representing
> wavelengths.
>
> So you're varying three wavelength variables independently: For one (i)
> you're summing up the x component; for another one (j) you're summing up
> the y component; and for yet another one (k) you're summing up the z
> component.
>
> What good do you expect this to do?
>
> What you really need is a smart external loop or set of loops that
> generates /spectra/, not wavelengths -- and then within that loop insert
> a /single/ additional loop that varies a wavelength variable i, summing
> up xyz_table[i] * D65_table[i] * spectral_power(i).
>
Yes, how do I come up with these /spectra/? I don't have a
spectral_power(i) and it is not mentioned in the equations I am trying
to follow here:
http://www.brucelindbloom.com/index.html?Eqn_Spect_to_XYZ.html
Mike
Post a reply to this message
|
|