What is the math for adjusting exposure in Photoshop?

I spent a lot of time on google, but could not find anything useful. I want to set the exposure value of the image, as Photoshop does. So I want to know how to change the bitmap, how to adjust the exposure of Photoshop?

+5
source share
1 answer

Theoretically, to modify exposure x (x is a signed floating point value, 0.0 for non-compensation), you should multiply each pixel brightness value (or each sub-pixel in RVB) by 2 ^ x.

newValue = oldValue * (2 ^ exposureCompensation);

, , (255 8 , 65535 16 ). , "" , , , Photoshop ( "2012" )

+4

All Articles