Surgical microscope (100) positioned in an optical pathway between an observer (102) and a surgical field (104), comprising an image sensor (124) receiving light reflected by the surgical field (104), a computing device (118) in communication with the image sensor (124) and identifying portions of the light received on the image sensor (124) associated with glare from the surgical field (104) and generating a control-signal to limit the transmission of light associated with glare. An optical element (114, e.g. a liquid-crystal array) in communication with the computing device (118) selectively limits the transmission of light associated with glare to the observer in response to said control-signal.