河北大学学报(自然科学版)2024,Vol.44Issue(1) :92-103.DOI:10.3969/j.issn.1000-1565.2024.01.012

基于异构平台的图像中值滤波的OpenCL加速算法

OpenCL acceleration algorithm of image median filtering based on heterogeneous platform

肖诗洋 王镭 杜莹 肖汉
河北大学学报(自然科学版)2024,Vol.44Issue(1) :92-103.DOI:10.3969/j.issn.1000-1565.2024.01.012

基于异构平台的图像中值滤波的OpenCL加速算法

OpenCL acceleration algorithm of image median filtering based on heterogeneous platform

肖诗洋 1王镭 2杜莹 3肖汉2
扫码查看

作者信息

  • 1. 东南大学土木工程学院,江苏南京 211189
  • 2. 郑州师范学院信息科学与技术学院,河南郑州 450044
  • 3. 郑州师范学院地理与旅游学院,河南郑州 450044
  • 折叠

摘要

图像噪声降低了图像信噪比和质量,去噪是图像处理工作的重要环节之一.本文提出了一种基于开放式计算语言(OpenCL)架构的图像中值滤波快速降噪并行算法.介绍了 OpenCL体系结构特点和中值滤波处理流程.根据图形处理器(GPU)的并发结构特点,对图像中值滤波功能模块进行了并行优化,降低了算法复杂度.通过充分激活NDRange索引空间中的工作组和工作项来提高数据访问效率,优化内核工作组配置参数,实现了中值滤波器的并行处理.实验结果表明,在图像质量保持不变的情况下,与基于CPU的串行算法、基于开放多处理(OpenMP)并行算法和基于统一计算设备架构(CUDA)并行算法性能相比,图像中值滤波并行算法在OpenCL架构下NVIDIA GPU计算平台上分别获得了 29.74、17.29、1.15倍的加速比.验证了算法的有效性和平台的可移植性,基本满足应用的实时性处理要求.

Abstract

Image noise reduces the signal-to-noise ratio and quality of image,and denoising is one of the important steps in image processing.In this paper,an image median filtering parallel fast denoising filtering algorithm based on Open Computing Language(OpenCL)is proposed.The architecture characteristics of OpenCL and median filtering processing flow are introduced.According to the concurrent structure characteristics of Graphics Processing Unit(GPU),the image median filtering function module is optimized in parallel,and the complexity of the algorithm is reduced.By fully activating the work-groups and work-items in the workspace to improve the efficiency of data access,optimize the configuration parameters of the kernel work-group,the parallel processing of the median filter is realized.The experimental results show that under the condition that the image quality remains unchanged,compared with the serial algorithm based on CPU,the parallel algorithm based on Open Multi-Processing(OpenMP)and the parallel algorithm based on Compute Unified Device Architecture(CUDA),the parallel algorithm of image median filtering achieves 29.74 times,17.29 times and 1.15 times acceleration ratio on the NVIDIA GPU computing platform based on OpenCL architecture,respectively.The effectiveness of the algorithm and the portability of the platform are verified,and the real-time processing requirements of the application are basically met.

关键词

中值滤波/椒盐噪声/图形处理器/开放式计算语言/并行算法

Key words

median filtering/salt and pepper noise/graphics processing unit(GPU)/open computing language(OpenCL)/parallel algorithm

引用本文复制引用

基金项目

国家自然科学基金资助项目(61250007)

国家自然科学基金资助项目(61572444)

河南省高等学校重点科研项目(22A520049)

出版年

2024
河北大学学报(自然科学版)
河北大学

河北大学学报(自然科学版)

CSTPCD北大核心
影响因子:0.322
ISSN:1000-1565
参考文献量21
段落导航相关论文