Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?