You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a function LensFarfield in lenses.py, but I got the error NameError: name 'LensFarfield' is not defined, when I tried to call it. It also is not in the documentation.
I added LensFarfield into the all list in init.py and was able to call the function.
The text was updated successfully, but these errors were encountered:
I checked the LensFarfield function against Goodman's Introduction to Fourier Optics, where the equation for field propagate to the focal plane of the lens is this: $U_f(u, v)= \frac{\exp \left[j \frac{k}{2 f}\left(u^2+v^2\right)\right]}{j \lambda f} \times \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} U_l(x, y) \exp \left[-j \frac{2 \pi}{\lambda f}(x u+y v)\right] d x d y.$
The scaling of the size of the Field in the LensFarfield function is correct. However, element in front of the Fourier transform is omitted.
EDIT: The field should also be ifftshifted before doing fft2.
EDIT2: Missed constant phase factor (exp(jkf))
I found a function LensFarfield in lenses.py, but I got the error NameError: name 'LensFarfield' is not defined, when I tried to call it. It also is not in the documentation.
I added LensFarfield into the all list in init.py and was able to call the function.
The text was updated successfully, but these errors were encountered: