parallel_for_
Dear all how to compile opencv code when we use parallel_for_ inside the code i need to add some options in g++ ? for example g++ - pthread ? it is not clear for me thanks per advence
Dear all how to compile opencv code when we use parallel_for_ inside the code i need to add some options in g++ ? for example g++ - pthread ? it is not clear for me thanks per advence
If you want to use OpenCV's parallel_for_
, you don't need to add anything at compile time, but you need OpenCV compiled with WITH_TBB
flag and have libtbb2 installed.
I find a lot easier to use the parallel_for
directly from the tbb2 library. In this case toy need to add -ltbb to the g++ arguments.
See this answer about using TBB's parallel_for.
Asked: 2017-11-06 05:27:12 -0600
Seen: 303 times
Last updated: Nov 06 '17
OpenCV DescriptorMatcher matches
Conversion between IplImage and MxArray
Video On Label OpenCV Qt :: hide cvNamedWindows
Problems using the math.h class with OpenCV (c++, VS2012)
How to reduce false positives for face detection
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images