Real-time capabilities and computational efficiency are provided by parallel image processing utilizing OpenMP. However, race conditions can affect the accuracy and reliability of the outcomes. This paper highlights the importance of addressing race conditions in parallel image processing, specifically focusing on color inverse filtering using OpenMP. We considered three solutions to solve race conditions, each with distinct characteristics: #pragma omp atomic: Protects individual memory operations for fine-grained control. #pragma omp critical: Protects entire code blocks for exclusive access. #pragma omp parallel sections reduction: Employs a reduction clause for safe aggregation of values across threads. Our findings show that the produced images were unaffected by race condition. However, it becomes evident that solving the race conditions in the code makes it significantly faster, especially when it is executed on multiple cores.
References
[1]
Algorithms (2023) How Can You Incorporate Parallel Computing into Algorithmic Research for Image Processing? https://www.linkedin.com/advice/0/how-can-you-incorporate-parallel-computing-algorithmic-ektkc
[2]
Tutors India (n.d.) Parallel Computing in Image Processing. https://www.tutorsindia.com/our-sample-works/parallel-computing-in-image-processing/
[3]
Tang, X., Yang, X. and Wu, F. (2019) Multifractal Detrended Fluctuation Analysis Parallel Optimization Strategy Based on openMP for Image Processing. Neural Computing and Applications, 32, 5599-5608. https://doi.org/10.1007/s00521-019-04164-2
[4]
Mallegowda, M., and Karthik, N. and Anvith, A. (2023) Serial and Parallel Computation of Bone Scan Image Processing. Proceedings of the International Conference on Innovative Computing & Communication (ICICC) 2022. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4361148 https://doi.org/10.2139/ssrn.4361148
[5]
Xiao, H., Guo, B.Y., Zhang, H.Y. and Li, C.L. (2021) A Parallel Algorithm of Image Mean Filtering Based OpenCL. https://www.researchgate.net/publication/350365944_A_Parallel_Algorithm_of_Image_Mean_Filtering_Based_on_OpenCL
[6]
Slabaugh, G., Boyes, R. and Yang, X.Y. (n.d.) Multicore Image Processing with OpenMP. https://www.eecs.qmul.ac.uk/~gslabaugh/publications/OpenMP_SPM.pdf
[7]
Lajoie, L. (2023) Python: Python-Based Inverse Filtering. https://copyprogramming.com/howto/inverse-filtering-using-python