摘要
在风洞试验中,现有的基于CPU的光流法求解荧光油膜运动速度场耗时过长,而基于GPU的光流法存在GPU资源利用不充分的问题。为此,提出基于荧光油膜图像分块和临界约束的GPU荧光油膜运动路径实时测量方法。将荧光油膜时序图像按照GPU的资源将整帧图像切割分块并行处理,创建其对应的光流并行计算策略,即充分利用GPU的并行流水架构优势和共享内存实现各并行块的光流计算的硬件加速;同时结合块间临界约束条件,以各块的速度矩阵迭代差为标志控制其迭代计算次数。结果表明:本文方法在保证荧光油膜运动速度场计算精度的条件下,较传统的基于CPU的光流法解算速度平均提升了2789.5倍,较整帧图像的GPU光流法速度平均提升了10.09倍,实时解算速度可达90帧/秒。
In the wind tunnel experiment,the existing CPU-based optical flow method takes too long to solve the velocity field of the fluorescent oil film,while the GPU-based optical flow method has the problem of insufficient utilization of GPU resources.To this end,a real-time measurement method of GPU fluorescent oil film motion path based on fluorescent oil film image segmentation and critical constraints is proposed.The fluorescent oil film time-series image is divided into blocks and processed in parallel according to the resources of the GPU,and the corresponding optical flow parallel computing strategy is created,that is,the advantages of the parallel pipeline architecture of the GPU and the shared memory are fully utilized to realize the optical flow calculation of each parallel block.At the same time,combined with the critical constraints between blocks,the number of iterative calculations is controlled by the iterative difference of the speed matrix of each block as a symbol.The experimental results show that the method proposed in this paper is 2789.5 times faster than the traditional CPU-based optical flow method under the condition of ensuring the calculation accuracy of the velocity field of the fluorescent oil film motion,and the average speed of the GPU optical flow method of the whole frame image is improved.10.09 times and the real-time solution speed can reach 90 frames per second.
作者
吴培灵
张征宇
孙维
WU Peiling;ZHANG Zhengyu;SUN Wei(School of Information Engineering,Southwest University of Science and Technology,Mianyang 621010,China;High Speed Aerodynamics Research Institute,China Aerodynamics Research and Development Center,Mianyang 621010,China)
出处
《航空工程进展》
CSCD
2023年第1期157-164,174,共9页
Advances in Aeronautical Science and Engineering
基金
国家自然科学基金(11872069)。
关键词
光流法
图像分块
临界约束
荧光油膜
共享内存
optical flow method
image block
critical constraint
fluorescent oil film
shared memory