Does OpenCV functions really use OpenMP
I recompiled opencv 2.4.11 on Linux using the OpenMP mode. I ran my test code and I did not see any change in speed. I watch my cores utilization and there is only one core being used.
I read a camera image and perform the following function calls: cvtColor, inRange, threshold, findContours and approxPolyDP. I figured I would see pragma statements in the opencv source code for these function but I have only seen "#pragma omp parallel" in the haart training and some other modules.
Why doesn't opencv functions contain "#pragma omp parallel". It seems that a cvtColor(), inRange() and threshold() could benefit enormously from using multithreads.
Thoughts?
" I figured I would see pragma statements" - instead look for
parallel_for_
, which is a wrapper around multiple alternative ways for doing parallelismHello Controls Weenie, I follow the same problem as you : my program seems to run only on one core and I don't feel any speed changes. Did you manage to solve it ?