Since I'm working on a new camera's 2A tuning, I have to calculate the color temperature correctly by myself, but the only data I have is the RAW image that is captured in D65 light source with a Color Checker. Because I'm the camera's developer, I don't have any ICC files to help me calibrate the RAW data.
The algorithm I used (proposed by McCamy - wiki) needs the current device-dependent RGB data to be converted to device-independent color space. Now my problem is that I don't know how to calibrate my data to any device-independent color space (ex. CIE XYZ, sRGB...).
I have searched the existing answers here, and the problem is that I don't know how to find the proper conversion matrix:
[X Y Z]' = [3x3 matrix][R G B]'
Please give me some hints to do this properly, Thanks! and sorry for the unclear question post before.