A matlab file simply implemented the GamaCorrect