According to this article, luminance is proportional to pixel measurements via the following:
$$ L = \frac{N_d f_\text{s}^2}{K_\text{c}tS} \tag{1} $$
Where:
\$N_d\$ is pixel value
\$f_\text{s}\$ is f-stop
\$t\$ is exposure time
\$S\$ is ISO
\$K_\text{c}\$ is a camera constant
If we shoot the same scene with same ISO and f-stop, but change exposure, luminance is constant, and we can use a slope equation:
$$ L = \frac{\Delta{N_d} f_\text{s}^2}{\Delta{t} K_\text{c}S} \tag{2} $$
From wikipedia, EV is related to Luminance like so:
$$ EV = \log_2\left(\frac{LS}{K_1}\right)\tag{3} $$
Where \$K_1\$ is another constant.
Combining (2) and (3) yields the following:
$$ EV = \log_2\left(\frac{\Delta{N_d}}{\Delta{t}}\frac{f_\text{s}^2}{K_1 K_\text{c}}\right) $$
If we were to take the difference of EV values, we would get the following formula:
$$ EV_2 - EV_1 = \log_2\left(\frac{\Delta{N_{d_2}}}{\Delta{t}}\frac{f_\text{s}^2}{K_1 K_\text{c}}\right) - \log_2\left(\frac{\Delta{N_{d_1}}}{\Delta{t}}\frac{f_\text{s}^2}{K_1 K_\text{c}}\right)\tag{4} $$
We can use this property of logs:
$$ \log_a x - \log_a y = \log_a\left({x \over y}\right)\tag{5} $$
From (4) and (5) we get the following:
$$ \Delta{EV} = \log_2\frac{\Delta{N_{d_2}}}{\Delta{N_{d_1}}} $$
Equivalently, the following:
$$ 2^{\Delta{EV}} = \frac{\Delta{N_{d_2}}}{\Delta{N_{d_1}}} $$
For a pixel with 256 possible values, the max value of the right hand side approaches 256. My question is this: Since \$2^8=256\$, for a given image, it seems like the maximum range we could theoretically see across it is 8 EV.
Is this correct? I realize that in equations (1) and (3), \$L\$ is technically the average scene luminance, but if our scene were reduced to a single pixel, the math should be correct. Or am I applying something horribly wrong?
I forgot to add that this is in application to raw images, vs images processed via manufacturer color curves.
