Ok thanks for your answer. I actually tried fxImage and gammaImage first but I was uncertain of the parameters.
It's seems that you have to call gammaImage for each color:
$im->gammaImage($RED, Imagick::CHANNEL_RED);
$im->gammaImage($GREEN, Imagick::CHANNEL_GREEN);
$im->gammaImage($BLUE, Imagick ...