Image enhancement is an important step in image processing to improve contrast and information quality. Intelligent enhancement algorithms are gaining popularity due to the limitations of traditional methods. This paper utilizes a transformation function to enhance the global and local information of grayscale images, but the parameters of this function can produce significant changes in the processed images. To address this, the whale optimization algorithm (WOA) is employed for parameter optimization. New equations are incorporated into WOA to improve its global optimization capability, and exemplars and advanced spiral updates improve the convergence of the algorithm. Its performance is validated on four different types of images. The algorithm not only outperforms comparison algorithms in the objective function but also excels in other image enhancement metrics, including peak signal-to-noise ratio (PSNR), feature similarity index (FSIM), structural similarity index (SSIM), and patch-based contrast quality index (PCQI). It is superior to the comparison algorithms in 11, 6, 11, 13, and 7 images in these metrics, respectively. The results demonstrate that the algorithm is suitable for image enhancement both subjectively and statistically.
Keywords: grayscale images; image enhancement; whale optimization algorithm.