Usually custom white balance is defined by clicking on a neutral pixel.
I'd like to know if there is a formula that allows to calculate the color temperature when I clic on a pixel of the image that represent a neutral area ?
Let's say that this pixel has the value R,G and B initially.
what is the function that allows to calculate CT=f(R,G,B) ?
CT being the color temperature

!
