简体   繁体   English

OpenCV GPU(CUDA)模板匹配和FFT实现

[英]OpenCV GPU ( CUDA ) Template matching and FFT implementation

I am using opencv GPU::matchTemplate() on GTX690. 我在GTX690上使用opencv GPU :: matchTemplate()

I checked the function internally and found that gpu::matchTemplate() is not using any FFT in the process, while its CPU counterpart does. 我在内部检查了函数,发现gpu :: matchTemplate()在进程中未使用任何FFT,而其CPU却在使用。

My question is, what is the reason behind not using FFT in the GPU? 我的问题是,在GPU中不使用FFT的原因是什么?

如果模板大小大于某个阈值( https://github.com/Itseez/opencv/blob/2.4/modules/gpu/src/match_template.cpp#L147 ),则OpenCV GPU匹配模板实现将使用FFT;否则,将使用brute-强制方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM