Wow. You made that data your bitch, huh?Method:
- Ingest massive quantities of Pouni Ono
- Shift chromaticity curve so that the white point is the origin.
- Convert the shifted chromaticity curve to polar coordinates
- Convert the experimental xy(Y) point to the same shifted polar coordinates
- Step up the angle until it is between two angles of the chroma curve
- Linear interpolation between the 2 points found that way
Source is up. I'll get an executable release out tomorrow. Blerg.
Yes, but I would use gender neutral language to say that. I guess these days "bitch" actually is gender neutral.. "I made that data my slave"? No, that's even worse lolWow. You made that data your bitch, huh?
That would be very cool (and useful) to implement it on something like an Arduino or Raspberry Pi: One can envision a hand-held spectrometer for spot checks in the field...The goal with my code has been to write it so simply that it can be ported to any language, including embedded platforms like Arduino, and to require no additional libraries or external dependencies. I have some work to do to abstract a few of my C++-isms away into wrapper functions, but when I'm done, I should have a source base that can be migrated anywhere if need be. Even on the damn spectrometer if it's programmable.
Well, I'm not actually using this method, it's just an idea. I just wanted to illustrate how straight the line is. The linear regression parameters in my picture are independent of the illuminant, they are just fitting the chromaticity curve. Obviously if I tried this I would use Illum E, with my own linear fit, rather than the literal formula from the paper, which is pretty old. I'm not sure if this would work as well for the complementary WL as it is more curvey on the other side@verticity - Great find, a very interesting article. I notice they are using an xy of 0.3103, 0.3163 which is Illuminant C, a now obsolete standard for daylight that was in use when the article was written. I'm assuming they chose it because their application was reflective rather than transmissive. Your zoomed graph doesn't quite have room for Illuminant E, is that what you are using with this method?
stowaway on the wrong boat.Well, I certainly don't belong on this thread. #socialsciences
Please PM your email address to me, and I will send a download link.Hi Guys,
I'm wondering if there is a final version of this code available. I'm trying to calculate dom. wavelength from XYZ.
Cheers,
Mat