Abstract
Image enhancement is frequently used to improve the input image’s visual quality. Experts also utilize image enhancement as a preprocessing method rather than a complete solution in computer vision applications. In addition, consumers want to acquire digital images with good real-life contrast, which balances the number of pixels with darker and brighter intensity values. Unfortunately, acquired images become too dark or bright to inspect visually due to bad lighting or unwanted reflections. These undesired images may cause problems in applications such as medical imaging, satellite imagery, or UAV imaging. Therefore, this study introduces an image enhancement method using local and global enhancements to overcome the above-mentioned issues. Besides image quality, there is another problem with image processing applications, such as image size. As the image size gets larger, computers usually take much more time to complete the given task. Parallel computing is a method that takes advantage of several processing units on the same system using some libraries or APIs. Since it is easy to use and requires fewer sequential code changes, we preferred to use OpenMP in this study to parallelize sequential implementation. Although the proposed work is developed in C++ and is based on a small sample of dark images, the findings suggest that proposed parallel implementations can be very efficient and feasible in other programming languages for different types of image processing operations. Then, we compared the performance of both sequential and parallel implementations. Based on the experimental results, we observed that the proposed parallel implementation of the reference algorithm runs up to 38 times faster than the sequential version on a cloud computing platform with 48 physical cores.
Similar content being viewed by others
Availability of data and materials
Not applicable.
Notes
Benchmarks (2022). NVIDIA GeForce GTX 970 Review, [online]. The website https://benchmarks.ul.com/hardware/gpu/NVIDIA+GeForce +GTX+970+review, accessed January 3, 2024.
Benchmarks (2024). Intel Core i7–6700 Processor Review [online]. Website https://benchmarks.ul.com/hardware/cpu/Intel+Core+i7--6700+Processor+review, accessed January 3, 2024.
Bob Cromwell (2022). Contrast Enhancement through Localized Histogram Equalization [online]. Website https://cromwell-intl.com/3d/histogram/, accessed January 3, 2024.
References
Szeliski, R.: Computer Vision: Algorithms and Applications. Springer, London (2011). ISBN 978-1-84882-934-3. https://doi.org/10.1007/978-1-84882-935-0
Kim, Y., Koh, Y.J., Lee, C., Kim, S., Kim, C.: Dark image enhancement based on pairwise target contrast and multi-scale detail boosting. In: 2015 IEEE International Conference on Image Processing (ICIP), pp. 1404–1408 (2015)
Chang, Y., Jung, C.: Perceptual contrast enhancement of dark images based on textural coefficients. In: 2016 Visual Communications and Image Processing (VCIP), pp. 1–4 (2016)
Zhao, L., Wan, Y.: An edge-guided exact histogram specification method for enhancing extremely dark images. In: 2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC), pp. 612–616 (2017)
Cepeda-Negrete, J., Sanchez-Yanez, R.E., Correa-Tome, F.E., Lizarraga-Morales, R.A.: Dark image enhancement using perceptual color transfer. IEEE Access 6, 14935–14945 (2018)
Hangün, B., Eyecioglu, O.: Performance comparison between OpenCV built in CPU and GPU functions on image processing operations. Int. J. Eng. Sci. Appl. 1, 34–41 (2017)
Akhtar, M.N., M. Saleh J., Awais, H., Bakar, E.A.: Map-reduce based tipping point scheduler for parallel image processing. Expert Syst. Appl. 139: 112848 (2020). ISSN 0957-4174. https://doi.org/10.1016/j.eswa.2019.112848.
Singh, K.B., Mahendra, T.V., Kurmvanshi, R.S., Rama Rao, C.V.: Image enhancement with the application of local and global enhancement methods for dark images. In: 2017 International Conference on Innovations in Electronics, Signal Processing and Communication (IESC), pp 199–202 (2017)
Bradski, G.: The OpenCV Library. Dr. Dobb’s Journal of Software Tools (2000)
Van der Walt, S., Schönberger, J.L., Nunez-Iglesias, J., Boulogne, F., Warner, J.D., Yager, N., Gouillart, E., Yu, T.: Scikit-image: image processing in python. PeerJ 2, e453 (2014)
Virtanen, P., Gommers, R., Oliphant, T.E., Haberland, M., et al.: SciPy 10: fundamental algorithms for scientific computing in python. Nat. Methods 17, 261–272 (2020). https://doi.org/10.1038/s41592-019-0686-2
Alex Clark. Pillow (pil fork) documentation (2015). https://buildmedia.readthedocs.org/media/pdf/pillow/latest/pillow.pdf
Pacheco, P., Malensek, M.: An Introduction to Parallel Programming. Elsevier Science, Amsterdam (2021). ISBN 9780128046180. https://books.google.com.tr/books?id=rElkCwAAQBAJ
Smith. A.R.: Color gamut transform pairs. In: Proceedings of the 5th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH ’78, pp. 12–19, New York, NY, USA, 1978. Association for Computing Machinery. ISBN 9781450379083. https://doi.org/10.1145/800248.807361
Liu, Y., Guo, J., Yu, J.: Contrast enhancement using stratified parametric-oriented histogram equalization. IEEE Trans. Circuits Syst. Video Technol. 27(6), 1171–1181 (2017). https://doi.org/10.1109/TCSVT.2016.2527338. ISSN 1558-2205
Tiwari, M., Gupta, B., Shrivastava, M.: High-speed quantile-based histogram equalisation for brightness preservation and contrast enhancement. IET Image Process. 9(1), 80–89 (2015). https://doi.org/10.1049/iet-ipr.2013.0778. ISSN 1751-9667
Gonzalez, R.C., Woods, R.E.: Digital Image Processing. Pearson, Upper Saddle River, NJ (2018). ISBN 9780133356724. https://books.google.com.tr/books?id=0F05vgAACAAJ
Qingtao, Fu., Jung, Cheolkon, Kaiqiang, Xu.: Retinex-based perceptual contrast enhancement in images using luminance adaptation. IEEE Access 6, 61277–61286 (2018)
Wang, Wencheng, Chen, Zhenxue, Yuan, Xiaohui, Xiaojin, Wu.: Adaptive image enhancement method for correcting low-illumination images. Inf. Sci. 496, 25–41 (2019)
Hessel, C., Morel, J.-M.: An extended exposure fusion and its application to single image contrast enhancement. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 137–146 (2020)
Bychkovsky, V., Paris, S., Chan, E., Durand, F.: Learning photographic global tonal adjustment with a database of input/output image pairs. In: The Twenty-Fourth IEEE Conference on Computer Vision and Pattern Recognition (2011)
Funding
No funding was received to assist with the preparation of this manuscript.
Author information
Authors and Affiliations
Contributions
BH helped in conceptualization, methodology, software, data collection, visualization, validation, formal analysis, investigation, writing original draft. SB was involved in conceptualization, formal analysis, investigation, writing—review and editing, supervision.
Corresponding author
Ethics declarations
Conflict of interest
The authors do not have competing interests to declare that are relevant to the content of this article.
Ethics approval
Not applicable.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Hangun, B., Bayar, S. An OpenMP-based parallel implementation of image enhancement technique for dark images. SIViP (2024). https://doi.org/10.1007/s11760-024-03058-8
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11760-024-03058-8