what is the mathmatical formula of Gradient map
I am a newbie of photoshop and the effects of gradient map confuse me.
I thought gradient map has consistent formula for the 3 color channel(RGB), but it doesn't.
I set left side of gradient map to black(0, 0, 0), and right side to white(255,255, 255), and the gradient map layer changes rgb color of below layer as following:
(255, 0, 0) -> (66, 66, 66)
(0, 255, 0) -> (156, 156, 156)
(0, 0, 255) -> (18, 18, 18)
such result is really beyond my understanding, So why do I get this effect?

