Automatic gamma correction based on average of brightness
Reducing Illumination Based on Nonlinear Gamma Correction