I am making auto white balance calibration application. I have a chromameter and api. So my application can measure CIExyY and CIEXYZ. And my app can set R,G,B output value of my devices's LED panel.
I set R,G,B value combination and measureed CIEXYZ three times. And then I evaluated follow matrix.
I thought that once I evaluated the matrix, I could calculate CIEXYZ with R,G,B output value.
But It's not correct value.
R,G,B output value is 0~1023. 0 doesn't mean 0 output. 0~1023 is just level.
Using colour, given the primaries and whitepoint expressed as CIE XYZ tristimulus, you can compute the normalised primary matrix converting from your LED colourspace to CIE XYZ as follows:
You can also create a new RGB colourspace which will allow you to convert to other known colourspaces:
Note that this assumes that the LED behave linearly which is almost certainly not the case!