I need to create a program that can simulate the optical system of the human eye. The input will be any image, the output would be the image that is projected onto the retina. I need it to be as accurate as possible. I am a little lost at the moment, I have been reading up on optics, and I get that, but on the computational side, I have no idea where to begin. What algorithms can be used to model optical systems physically accurately?
I need to make the optical system as physically accurate as possible, in relation to the human eye. The system must be able to model eye problems that have to do with optics in the eye, such as myopia or astigmatism. If there is more information necessary to answer, please let me know.