I'm trying to understand the formula or the math behind the "offset slider".
As found in Image -> Adjustments -> Exposure
.
I'm working on a project for detecting shadows in an image and I need to understand how this slider work. I spent a week comparing photos and pixel values but I couldn't understand the formula behind it.