Gamma correction curve generation integrated into calib process