This MATLAB code implements Watson & Yellott's unified formula for the light adapted pupil size as well as the other pupil size models reviewed in the paper.
wy_getPupilSize.m
-- low-level function returning pupil size for different modelswy_demo.m
-- demo code reproducing Fig. 16 from Watson & Yellot (2012)wy_allModels.png
-- output figure from this code, reproducing Fig. 16 from Watson & Yellot (2012) [PNG]wy_allModels.pdf
-- output figure from this code, reproducing Fig. 16 from Watson & Yellot (2012) [PDF]
Written by William Wheatley & Manuel Spitschan, Department of Experimental Psychology, University of Oxford
Any questions or comments? Please email manuel.spitschan@psy.ox.ac.uk.
Watson AB & Yellott JI (2012) A unified formula for light-adapted pupil size. J Vis 12(10):12. doi: 10.1167/12.10.12
This software is licensed under the MIT License. The code may be used freely.