You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing code where I measure light output from various light sources with a spectrometer. And I want to convert this spectral data to XYZ (and other color spaces). But from what I can find this library does not expose spectral data -> XYZ for the emissive case (where no illuminant is supplied, because I'm measuring the illuminant itself). Please tell me if I have misunderstood something :)
I propose adding the following methods (naming bikeshedding welcome):
implVSPD{pubfnto_xyz_emissive(&self,cmf:&CMF) -> XYZf64{// Sum up x, y and z over the spectrum with the three color matching functions}}implSPD{// ... Same thing}
I can submit a PR with a proposal. But I wanted a tracking issue where the feature could be discussed (or I can be told this is not needed because of something I have missed).
This function can of course be implemented manually, and that's what I currently do. But I felt it could be a great addition to have it directly in the library.
The text was updated successfully, but these errors were encountered:
You can provide an equal energy illuminant, i.e. 1 at every wavelength, for such case. Ideally, you would want to pass the normalisation factor $k$ too for absolute photometric values.
I thought something like that was possible (thanks for pointing out some useful details around it!). But a dedicated implementation can probably be a lot simpler than the existing to_xyz. I realize of course that some benchmarks would be needed to claim that it would be a performance improvement. I just read the implementation for to_xyz and realize it does a lot of stuff redundantly. Many of the involved VSPDs are aligned multiple times over and over.
Even without any performance benefit, the ergonomics for the library consumer would in and of itself be worth it IMHO.
I'm writing code where I measure light output from various light sources with a spectrometer. And I want to convert this spectral data to XYZ (and other color spaces). But from what I can find this library does not expose spectral data -> XYZ for the emissive case (where no illuminant is supplied, because I'm measuring the illuminant itself). Please tell me if I have misunderstood something :)
I propose adding the following methods (naming bikeshedding welcome):
I can submit a PR with a proposal. But I wanted a tracking issue where the feature could be discussed (or I can be told this is not needed because of something I have missed).
This function can of course be implemented manually, and that's what I currently do. But I felt it could be a great addition to have it directly in the library.
The text was updated successfully, but these errors were encountered: