计算机科学 ›› 2015, Vol. 42 ›› Issue (Z6): 221-222.

• 模式识别与图像处理 • 上一篇    下一篇

基于CUDA和OpenGL互操作的彩色图像Sobel边缘检测

李驰新,兰聪花   

  1. 兰州工业学院电子信息工程学院 兰州730050,兰州工业学院电子信息工程学院 兰州730050
  • 出版日期:2018-11-14 发布日期:2018-11-14

Sobel Edge-detection on Color Image Based on Interoperability between CUDA and OpenGL

LI Chi-xin and LAN Cong-hua   

  • Online:2018-11-14 Published:2018-11-14

摘要: 为了充分发挥GPU通用计算的能力,将以往由CPU承担的计算任务更多地移交给GPU完成,使用了基于CUDA和OpenGL的互操作技术,完全依靠GPU完成彩色图像的边缘检测和结果显示任务,CPU只负责传递数据到GPU,既提高了整个过程的计算速度,也最大程度地发挥了GPU的功效。实验结果表明,基于CUDA和OpenGL的互操作的图像处理技术是一种有效结合GPU并行处理能力和GPU图像显示技术的解决方案,与只使用CPU和只使用GPU并行计算的方案相比,本方法在处理高分辨率的图像时,可以获得80倍以上的加速比。

Abstract: With the quick development of general-computing on GPU,many jobs which were once implemented by CPU now can be delivered to GPU.In this paper,depending on the interoperability between CUDA and OpenGL,jobs of edge-detection on color image and displaying result are all finished by GPU,the only job for CPU is delivering data to GPU.By doing so,computing speed is increased and efficiency of GPU is maximized.The experimental results indicate that interoperability between CUDA and OpenGL is an effective method which can combine parallel processing capability of GPU and displaying capability of GPU.Compared with other 2 kinds of scheme which only uses CPU to process image and only uses GPU to parallelly compute data,this kind of scheme can achieve 80 times speedup when processing high resolution image.

Key words: Edge-detection,Interoperability,CUDA,OpenGL,Sobel

[1] NVIDIA.CUDA Compute Unified Device Architecture:Pro-gramming Guide(Version 4.2)[EB/OL].[2011-11].http://www.nvidia.com/object/cuda_home.html
[2] 邢军.基于 Sobel 算子数字图像的边缘检测[J].微机发展,2009,0(14):3360-3361
[3] Sonka M,Hlavac V.Image Processing,Analysis,and MachineVision [M].Tsinghua University Press,2011
[4] NVIDIA.CUDA SDK-Graphics Interop[EB/OL].http://www.nvidia.cn/content/cudazone/cuda_sdk/Graphics_Interop.html
[5] Podlozhnyuk V.Image Convolution with CUDA[EB/OL].2007-01-06.http://www.nvidia.com/object/cuda_home.html
[6] NVIDIA.NVIDIA CUDA Compute Unified Device Architec-ture:Programming Guide(Version 4.2)[EB/OL].http://www.nvidia.com/object/cuda_home.html
[7] Ahn S H.OpenGL Pixel Buffer Object[EB/OL].http://www.songho.ca/opengl/gl_pbo.html
[8] CSDN.CUDA与OpenGL交互开发[EB/OL].http://blog.csdn.net/ruby97/article/details/8851403
[9] Zuo H R.Fast Sobel Edge Detection Algorithm Base on GPU[J].Opto-Electronic Engineering,2009(1):8-12
[10] 谭立勋,刘缠牢,李春燕.实时图像处理中Sobel 算子的改进 [J].弹箭与制导学报,2006,26(1):291-293
[11] Kharlamov A,Podlozhnyuk V.Image Denoising [EB/OL].2007-05-16.http://www.nvidia.com/object/cuda_home.html
[12] 左颢睿,张启衡.基于GPU 的快速Sobel 边缘检测算法[J].光电工程,2009,6(1):10-12

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!