Reputation: 227
I want to parallelize my image processing codes using openMP. I have a doubt if OpenMP is supported by the latest versions of OpenCV like 2.4.4 or 2.4.5 versions. I know abt TBB but looks too complicated.
Upvotes: 0
Views: 1306
Reputation: 11359
You might consider looking into cv::parallel_for_()
. It provides a layer of abstraction for several parallelism mechanisms. If you have compiled OpenCV with OpenMP support, cv::parallel_for_()
will use OpenMP when it can. Many OpenCV functions use cv::parallel_for_
intenally, but you might have to dig into the source to see whether parallel execution is actually happening.
Upvotes: 1