arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.00515cs.DC
收藏

GPU上的多方向Sobel算子核函数

Multi-directional Sobel operator kernel on GPUs

Qiong Chang, Xin Li, Yun Li, Jun Miyazaki

AI总结:

针对大型多方向Sobel算子速度慢的问题,本文提出基于warp级原语、预取机制和算子变换的四向5×5 Sobel算子GPU核函数,在两款GPU上分别实现6.7倍和13倍于OpenCV-GPU库的加速比。

摘要:

Sobel算子是图像处理中最常用的边缘检测算子之一。截至目前,大多数用户使用双向3×3 Sobel算子作为检测器,因为它计算成本低且性能合理。同时,考虑到大型多方向Sobel算子的高稳定性,已有许多研究使用这类算子来满足需求,但代价是速度较慢。本文提出了一种用于四向5×5 Sobel算子的快速图形处理器(GPU)核函数。为提升核函数性能,我们基于warp级原语实现该核函数,可显著减少内存访问次数。此外,我们在核函数中引入预取机制和算子变换,大幅降低计算复杂度和数据传输延迟。与OpenCV-GPU库相比,我们的核函数在Jetson AGX Xavier GPU上实现了6.7倍的加速比,在GTX 1650Ti GPU上实现了13倍的加速比,性能优异。

英文摘要:

Sobel is one of the most popular edge detection operators used in image processing. To date, most users utilize the two-directional 3x3 Sobel operator as detectors because of its low computational cost and reasonable performance. Simultaneously, many studies have been conducted on using large multi-directional Sobel operators to satisfy their needs considering the high stability, but at an expense of speed. This paper proposes a fast graphics processing unit (GPU) kernel for the four-directional 5x5 Sobel operator. To improve kernel performance, we implement the kernel based on warp-level primitives, which can significantly reduce the number of memory accesses. In addition, we introduce the prefetching mechanism and operator transformation into the kernel to significantly reduce the computational complexity and data transmission latency. Compared with the OpenCV-GPU library, our kernel shows high performances of 6.7x speedup on a Jetson AGX Xavier GPU and 13x on a GTX 1650Ti GPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑