I need to find the exact color temperature value from image's RGB matrix value. I am able to find the x,y as well as u,v (chromaticity space) average matrix values. i am working in labview
If you know the wavelengths of the RGB reasonably well, fit them to a blackbody curve, and adjust the temperature of the blackbody till you get a minimum in the deviations from the curve to each of the wavelengths.
If you know the wavelengths of the RGB reasonably well, fit them to a blackbody curve, and adjust the temperature of the blackbody till you get a minimum in the deviations from the curve to each of the wavelengths.