# Dual Histogram Equalization Algorithm Based on Adaptive Image Correction
## 5 Conclusions  
In this study, the AICHE algorithm is proposed for image enhancement under complex working conditions. The problems of average brightness shift, image over-enhancement, and gray level merging in the traditional histogram equalization process are effectively solved. The algorithm improves upon the traditional Otsu method by segmenting the image histogram to solve the problem of mean luminance shift and adaptively obtain the threshold to suppress the gray level to avoid the image over-enhancement phenomenon. Then, it uses the local gray level correction method to avoid the gray level merging problem. According to the experimental analysis, the adaptive local correction method can effectively avoid image over-enhancement and image detail loss, and it can enhance the image contrast and detail information. Compared with other improved algorithms, the AICHE algorithm significantly enhances the PSNR, gray level, and information entropy while avoiding the introduction of noise; its SSIM is closer to 1, and its image visual effect is better. Due to the pursuit of high-quality measurement accuracy, this method may lead to some defects in time efficiency, which is more suitable for image enhancement in the industrial environment. How to improve time efficiency will be a key issue in future research. \begin{table}
\begin{tabular}{c c c c c c c c c} \hline
**Image** & **HE** & **BBHE** & **CLAHE** & **BPLHE** & **RSIRE** & **ESIHE** & **MMBEBHE** & **AICHE** \\ \hline Scene 1 & 72.3203 & 8.4028 & 20.4267 & 4.1236 & 3.8192 & 19.3066 & 6.1641 & 1.9737 \\ Scene 2 & 63.5495 & 20.7392 & 22.7322 & 10.680 & 7.7807 & 12.5410 & 13.5527 & 6.6932 \\ Scene 3 & 92.8464 & 24.4811 & 32.1225 & 17.3286 & 18.9348 & 52.7854 & 13.7168 & 12.1253 \\ Scene 4 & 60.7812 & 4.2255 & 12.7312 & 52.0211 & 0.7013 & 31.6171 & 1.6792 & 0.6925 \\ Scene 5 & 68.3038 & 17.6009 & 29.8796 & 42.2594 & 21.6477 & 13.0248 & 12.8289 & 12.6386 \\ Scene 6 & 71.6894 & 30.1702 & 23.7526 & 20.1931 & 17.8950 & 32.4487 & 21.0208 & 17.6621 \\ Scene 7 & 20.4280 & 2.1106 & 20.0978 & 2.4444 & 1.2151 & 0.9639 & 4.3422 & 0.7946 \\ Scene 8 & 67.4038 & 27.0251 & 18.7464 & 55.4875 & 22.5769 & 41.5077 & 64.2064 & 15.7625 \\ Scene 9 & 9.6527 & 5.9391 & 19.8077 & 6.2182 & 5.4492 & 4.6846 & 4.6402 & 4.2561 \\ Scene 10 & 68.8450 & 34.6771 & 47.8343 & 32.3713 & 32.0415 & 26.2767 & 64.6110 & 31.2214 \\ \hline Average value & 59.58201 & 17.53716 & 24.8131 & 24.31272 & 13.20614 & 23.51565 & 20.67623 & **10.382** \\ \hline Standard deviation & 25.12541 & 11.71418 & 9.79701 & 19.97632 & 10.78832 & 16.48196 & 23.76145 & 9.61480 \\ \hline \end{tabular} Note: The top averages produced by the compared algorithms are marked in bold font.  
\end{table} 
Table 4: AMBE of different algorithms. \begin{table}
\begin{tabular}{c c c c c c c c} \hline
**Image** & **HE** & **BBHE** & **CLAHE** & **BPLHE** & **RSIRE** & **ESIHE** & **MMBEBHE** & **AICHE** \\ \hline Scene 1 & 3.25 & 4.78 & 10.36 & 4.98 & 2.25 & 3.46 & 4.23 & 7.35 \\ Scene 2 & 2.33 & 3.73 & 11.17 & 4.03 & 2.56 & 1.77 & 3.21 & 7.24 \\ Scene 3 & 2.28 & 6.96 & 11.221 & 7.17 & 1.73 & 2.56 & 6.75 & 8.83 \\ Scene 4 & 3.27 & 5.56 & 10.26 & 5.52 & 3.26 & 3.75 & 4.89 & 7.89 \\ Scene 5 & 2.27 & 6.72 & 9.39 & 6.28 & 1.79 & 2.36 & 4.95 & 7.93 \\ Scene 6 & 1.82 & 3.28 & 11.19 & 3.98 & 2.57 & 2.23 & 3.43 & 6.23 \\  
**Author Contributions:** Methodology, B.L. and S.J. ; software, B.Y. ; resources, S.Y. and D.Z. ; writing--original draft preparation, B.Y. ; writing--review and editing, B.L. All authors have read and agreed to the published version of the manuscript. **Funding:** This research was funded by the Guangxi Science and Technology Major Special Project, grant number AA22068064; Guangxi Science and Technology Programs, grant number AD22080042; Guangxi Key R&D Program Projects, grant number AB22035066. **Institutional Review Board Statement:** Not applicable. **Informed Consent Statement:** Not applicable. **Data Availability Statement:** Not applicable.