3

I am using opencv GPU::matchTemplate() on GTX690.

I checked the function internally and found that gpu::matchTemplate() is not using any FFT in the process, while its CPU counterpart does.

My question is, what is the reason behind not using FFT in the GPU?

Roger Dahl
  • 15,132
  • 8
  • 62
  • 82
Sajad Karim
  • 321
  • 3
  • 18

1 Answers1

6

OpenCV GPU match template implementation uses FFT if template size if bigger than some threshold (https://github.com/Itseez/opencv/blob/2.4/modules/gpu/src/match_template.cpp#L147), otherwise it uses brute-force approach,

vinograd47
  • 6,320
  • 28
  • 30