Introduction - If you have any usage issues, please Google them yourself
1. the brightest object in the imge is just white.
2. select a white object from the image
3. assume the average color data of the image is just a medium gray, get the white from this.
others: the color space transform, RGB to XYZ, the chromatic adaptation transform code: cat02, VK.
A 2nd level of color science.