When I came into the lab today I realized that was one thing that my program still couldn’t do, find the center of the pupil. When I discussed this issue before I was told I could do one of three things, research the Hough Circle transformation and try to implement it, use Aayush’s code or extract from the Pupil Lab cameras. Since there was no one in the lab when I came in I tried to implement the hough circle transformation. By the middle of the day, I got a program that could reliably draw two circles where the pupil was. This is because, as I quickly realized, the pupil is an ellipse. I treated the center of the two circles as the foci of an ellipse. Then by doing some math that I learned in Pre-Calculus this year I fit an ellipse around the pupil. The only thing left to do now is all of this new code as another function in my main program to determine torsional eye movements. I have attached below a picture that my new program outputs.













