Ask Your Question

Concurrency framework explanation?

asked 2013-05-27 23:15:57 -0500

Hypnotoad gravatar image

I am sort of new to this, so excuse me if I make any obvious mistakes. I recently found that my tracking code does not work very well on older computers. So naturally I looked to parallelization. Unfortunately, I use prebuilt libraries, and thus am unable to use tbb. (cake was giving me issues) however, I read that recently, in 2.4.3, concurrency was added into the opencv library. my question is, how the heck do I use it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-28 01:29:52 -0500

Just stick to the latest stable release and you will be fine. From OpenCV 2.4.4 it is not needed anymore to build openCV yourself to have concurrency. All TBB functionality is included where needed. Just make sure your system supports TBB.

edit flag offensive delete link more



aah. i see. I was wondering why the thresholding operation was not taking up all four cores. It seemed natural that this operation would multithread. It seems that it just doesn't take many resources to do, so the effects were not noticeable. I tried repeating the threshold 100 times in a for loop and lo and behold, all four cores were being used. Thank you for making this known to me, that opencv already multithreaded,

Hypnotoad gravatar imageHypnotoad ( 2013-05-28 21:00:29 -0500 )edit

Just be sure to use the latest stable version, and most functionality will be multithreaded :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-05-29 01:20:31 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-05-27 23:15:57 -0500

Seen: 701 times

Last updated: May 28 '13