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.
2 | No.2 Revision |
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.