Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not many functions in OpenCV are multithreaded. You can check it by browsing the source for HAVE_TBB. For your simple example, divide your image to as many parts as you have cores and use parallel version of for loop. You can use TBB or OpenMP, the latter being much simpler in my opinion.

Not many functions (but more and more with new releases) in OpenCV are multithreaded. You can check it by browsing the source for HAVE_TBB. For your simple example, divide your image to as many parts as you have cores and use parallel version of for loop. You can use TBB or OpenMP, the latter being much simpler in my opinion.