Changed algorithm for exposure calibration