gamma calibration