Measurement of visual adaptation