Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irradiance formula #23

Open
wandell opened this issue Nov 11, 2021 · 0 comments
Open

Irradiance formula #23

wandell opened this issue Nov 11, 2021 · 0 comments

Comments

@wandell
Copy link
Collaborator

wandell commented Nov 11, 2021

From David Brainard, below

This is great – and it is exactly the issue the student in my class brought up.

It would scale with irradiance were it not for the initial (1 + X).

I can understand the magnification multiplier (sort of). The 1 + is a mystery to me. And we can see that the effect is small as fN gets beyond 2 or 3. So, I will read about this and about the anomalous photopigment models!

Brian

In some simulations I had increased scene irradiance to compensate for changes in pupil size so as
to keep retinal irradiance constant. Debugging that was what led to the fix to wvf2oi mentioned earlier.

There was still about a four percent difference in retinal irradiance, though, over the change from 2mm
to 7mm pupil diameter. My compensation was in direct proportion to the change in pupil area with
pupil diameter.

I tracked the effect down to the formula used in oiCaculateIrradiance, very nicely commented:

Description:
% The scene spectral radiance (photons/s/m2/sr/nm) is turned into
% optical image irradiance (photons/s/m2/nm) based on information in the
% optics. The formula for converting radiance to irradiance is:
%
% irradiance = pi /(1 + 4 * fN ^ 2 * (1 + abs(m)) ^ 2) * radiance;
%
% where m is the magnification and fN is the f-number of the lens.
% Frequently, in online references one sees the simpler formula:
%
% irradiance = pi / (4 * fN ^ 2 * (1 + abs(m)) ^ 2) * radiance;
%
% (e.g., Gerald C. Holst, CCD Arrays, Cameras and Displays, 2nd
% Edition, pp. 33-34 (1998))
%
% This second formula is accurate for small angles, say when the sensor
% sees only the paraxial rays. The formula used here is more general
% and includes the non-paraxial rays.
%
% On the web one even finds simpler formulae, such as
%
% irradiance = pi / (4 * FN ^ 2) * radiance
%
% For example, this formula is used in these online notes
% http://www.ece.arizona.edu/~dial/ece425/notes7.pdf;
% <http://www.coe.montana.edu/ee/jshaw/teaching/RSS_S04/
% Radiometry_geometry_RSS.pdf>

The pi /(1 + 4 * fN ^ 2 * (1 + abs(m)) ^ 2) doesn't go exactly as the
ratio of the pupil areas, which leads to the difference.

I remember this formula from earlier comparisons between isetbio and
PTB calculations, which were based on the ratio of pupil area. I
didn't think too hard about it at the time.

But now I'm wondering. The number of photons that enter the
eye across changes in pupil size really does scale with pupil area.
At least I'd think so. That would lead to the conclusion that
the number of photons in the retinal irradiance should scale
with pupil area.

But with the formula above, that's not what happens.

So in the full formula above, how do we explain where the
missing photons go across changes in pupil size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant