Increasing CPU usage in OpenCV app
I wrote a simple OpenCV app in Win7 that opens an RGB image file, multiplies it pixelwise, and then saves it under a new name. I compiled OpenCV with TBB yet cannot seem to get this app to use more than one core nor get it to use more than ~40% of a single core. System idle is around 60% and it seems like I could squeeze some more speed out of OpenCV if I knew how.
Can anyone get me pointed in the right direction?
Thanks.
In my opinion, a simple task does not require parallel or optimal code. Keep simple tasks simple. On the contrary, TBB is a worthwhile direction for parallelizing existing code since its usage is not too complicated while having good performance and utilizing all the hardware resources effectively. Other paths you can take are C++11 threads and Windows threads, the latters are faster (but more efforts are required) than the formers. By the way, to get a more helpful answer, providing more details about your problem, I mean your code.