Ask Your Question
2

HOGDescriptor::detectMultiScale with TBB on ARM

asked 2013-05-22 04:41:58 -0600

gvi gravatar image

Hi all! I have implemented in an ARM a computer vision application that uses OpenCV's HOGDescriptor::detectMultiScale. I have found that the execution of HOGDescriptor::detectMultiScale function is accelerated a lot when I compile OpenCV with TBB option:

  • Running time without TBB: 317 ms
  • Running time with TBB: 122.5 ms

Is this the correct behaviour?? I found it very strange, as the ARM I am using has only two cores. How does the TBB acceleration work?? why is so efficient?

I am using a ARM® dual-core Cortex™-A9 MPCore™ / 800 MHz, OpenCV 2.4.3, and TBB 4.1.

Thanks in advance!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2013-07-10 09:10:27 -0600

nessence gravatar image

That is correct behavior. Most of the OpenCV codebase uses Intel TBB and parallel_for() to stripe matrix operations to make use of multiple cores. Most of the algorithms for histogram of gradients can be parallelized which is why it runs so much faster.

edit flag offensive delete link more
0

answered 2016-02-25 02:06:06 -0600

amlan gravatar image

Is any other header files are required in the code to use tbb in opencv?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-05-22 04:41:58 -0600

Seen: 930 times

Last updated: Jul 10 '13