_{ij}and Y-axis is the number of photons. X-axis values range from P

_{ij}= 0.001, 0.002,... 1.000, in steps of 0.001 (1000 values). Y-axis has 4 values, which are equal to probabilities of number of photons incident = 0, 1, 2, 3.

For example: at x = P

_{ij}= 0.1, the four values (corresponding to probability of 0, 1, 2, and 3 photons incident on that pixel) are P

_{0}= e

^{-0.1}(= 0.9048), P

_{1}= 0.1 P

_{0}(= 0.09048), P

_{2}= 0.01 P

_{0}/2 (=0.0045242), and P

_{3}= 0.001 P

_{0}/6 (= 0.0001508).

For a given

**frame**, find a random number R

_{k}**equally distributed between 0 and 1**. For each pixel

- If R <>0, then number of photons for that pixel = 0.
- If (P
_{0}+ P_{1}) > R > P_{0}, then number of photons = 1; and if (P_{0}+P_{1}+P_{2}) > R > (P_{0}+P_{1}) then number of photons is 2; and so on.

For the next frame, compute a new random number R and repeat the above steps again...

## No comments:

Post a Comment