Adaptive Correction Algorithm for Non-Uniform Illumination Images