An apparatus (220) for obtaining a scanned image of an eye has a reference
locator for pupil alignment apparatus along an optical axis. A pupil
profiling apparatus for obtaining an outline of the pupil has a pupil
profiling light source (176), a sensor (170) for detecting reflected
light, and a control logic processor (104) for computing an outline of
the pupil according to detected light. An illumination apparatus (112)
for directing visible illumination into the eye has a spatial light
modulator (125) for shaping an illumination beam according to the
detected outline, a scanning element (229), and a camera (146) for
obtaining the scanned image by sensing a portion of the reflected
illumination.