2015-07-24 10:58:19 -0600 | commented question | Is dft() thread-safe? I think I can answer my own question. I can't say for sure whether dft() is entirely thread-safe, but it does look like you can call dft() in a tbb::parallel_for loop. I had some caching issues buried elsewhere in my code that were leading to the NaN's being introduced in the multi-threaded case. |
2015-07-24 09:32:51 -0600 | received badge | ● Student (source) |
2015-07-24 09:32:17 -0600 | asked a question | Is dft() thread-safe? Hi, I'm having some issues with dft() giving back arrays filled with NaN when called in a multi-threaded environment (tbb::parallel_for). The same code produces valid results when called in a sequential for loop. I know FFTW is not thread-safe, is OpenCV's DFT also not thread-safe? Thanks, Phil |