Dichromatic Reflection Model [1] [2] , in which is the pixel index, is the global illumination, is the sensor sensitivity. The chromatic terms and account for body and surface reflection, which are only related to object material.
gray pixels: pixels with equal RGB values. detecting gray pixels in a color-biased image is not easy. [3]
Reference
[1] Shafer, Steven A. “Using color to separate reflection components.” Color Research & Application 10.4 (1985): 210-218.
[2] Song, Shuangbing, et al. “Illumination Harmonization with Gray Mean Scale.” Computer Graphics International Conference. Springer, Cham, 2020.
[3] Qian, Yanlin, et al. “On finding gray pixels.” CVPR, 2019.
[4] Bhattad, Anand, and David A. Forsyth. “Cut-and-Paste Neural Rendering.” arXiv preprint arXiv:2010.05907 (2020).
[5] Yu, Ye, and William AP Smith. “InverseRenderNet: Learning single image inverse rendering.” CVPR, 2019.