首页 | 本学科首页   官方微博 | 高级检索  
     

基于OpenCL机器视觉算法GPU实现
引用本文:吴进,刘应,刘镇弢,李乔深.基于OpenCL机器视觉算法GPU实现[J].计算机工程与设计,2019,40(2):346-351.
作者姓名:吴进  刘应  刘镇弢  李乔深
作者单位:西安邮电大学电子工程学院,陕西西安,710121;西安邮电大学电子工程学院,陕西西安,710121;西安邮电大学电子工程学院,陕西西安,710121;西安邮电大学电子工程学院,陕西西安,710121
基金项目:国家自然科学基金;国家自然科学基金;国家自然科学基金;陕西省科技统筹创新工程计划;陕西省重点研发计划基金项目;陕西省自然科学基础研究计划
摘    要:针对不断增长的对机器视觉算法处理效率和实时性的要求,研究基于异构编程框架OpenCL对机器视觉算法在通用计算机图形处理单元(GPU)上的并行处理和加速方法,提出结合存储分配、指令流优化、数据重用等方法的并行优化策略。在Sobel边缘检测、Canny边缘检测、Harris角点检测、高斯图像金字塔4个不同并行度视觉算法上进行验证,验证结果表明,在不考虑数据传输的情况下,对比CPU串行实现取得了平均6.16的加速比,对比OpenCV的GPU库(即CUDA实现)取得了1.12-5.47的加速比,验证了所提优化策略的有效性。

关 键 词:开放计算语言  图形处理器  并行加速  机器视觉算法  异构框架

GPU implementation of machine vision algorithm based on OpenCL
WU Jin,LIU Ying,LIU Zhen-tao,LI Qiao-shen.GPU implementation of machine vision algorithm based on OpenCL[J].Computer Engineering and Design,2019,40(2):346-351.
Authors:WU Jin  LIU Ying  LIU Zhen-tao  LI Qiao-shen
Affiliation:(School of Electronics and Engineering,Xi'an University of Posts and Telecommunications,Xi'an 710121,China)
Abstract:Aiming at the increasing demands for the processing efficiency and real-time performance of the machine vision algorithm,the parallel processing and accelerating method of machine vision algorithm based on heterogeneous programming framework open computing language(OpenCL)on computer graphics processing unit(GPU)was studied,and a parallel optimization strategy based on storage allocation,instruction flow optimization and data reuse was proposed.It was validated by four different degrees of parallelism vision algorithms including Sobel edge detection,Canny edge detection,Harris corner detection and Gaus-sian image pyramid.The results show that,without considering the data transmission,the average 6.16 acceleration ratio is obtained by comparing the central processing unit(CPU)serial implementation,and acceleration ratio of the 1.12-5.47 is obtained by comparing GPU library of OpenCV(i.e.the CUDA implementation),which verifies the effectiveness of the proposed optimization strategy.
Keywords:OpenCL  GPU  parallel acceleration  machine vision algorithm  heterogeneous framework
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号