Result of gamma and contrast are brightness function. It means, that we should do brightness correction at first place. Procedure for gamma and contrast corrections depending on the purpose of image editing.
But, in general all procedure depends on the purpose of image editing. May be, if you tell me your purpose, I 'll tell you the best order .
Thanks for the reply. I'm trying to calculate the optical flow from a video captured in real time by a robot. Due to surrounding some of the images have lighting and similar issues. For the best result I need to enhance the image. For that I wondered if there is such an order.