This is a tough question!
I would like to calculate how an image (a real 2D photograph) looks if I place a lens at a certain distance d1 from it and I observe it at a certain distance d2.
It is frustrating. All textbook always only treat 1D Images...
Therefore I have turnd to this wonderful community. Mybe you guys can help me, as you already did many times! :)
Geometric distorsion:
- Image (2D photograph)
- I place a lens at a certain distance d1 above my image and look at the lens at a certain distance d2. This is what I would get:
I have looked into Ray transfer matrix analysis, but I could't figure out how to compute such a distorsion of the image, which is also coherent with physics.
Image blurr:
Another effect of a lens is that things can appear in focus or out of focus depending on the focal distance f and your position d2.
- Image in focus d2=f
- Image out of focus d2 < f or d2 > f
In the end I would like to write a neat Mathematica code, in which you can import an image and based on the parameters, d1, f and d2, it will create the resulting image, including distorsion and blurr in a physically meaningfull way. :)
I would highly appreciate any help, also only partial answers! :)



