Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to speed up this code implemented OpenCV

I need an advice for sample below code that requires lots of time for processing. I am developing project on OpenCV and have code blocks like this ( some of them are pictures ). What should I use for more speed? Like, OpenMP or TBB ( that's new in OpenCV and more complex, maybe some examples more helpful ) or GPU ( implementing entire project ) or Boost library or another I don't know 3rd party libraries.

i didn't write multithread on c++ before

thanks for helping now

sample code snippet:

for( int i = 0; i < 3000; i++ ) {
    for ( int j = 0; j < 3000; j++ ) {
    int a = 0;

    for ( int index = 0; index < 9000; index++ )
        a++; } }

How to speed up this code implemented OpenCV

I need an advice for sample below code that requires lots of time for processing. I am developing project on OpenCV and have code blocks like this ( some of them are pictures ). What should I use for more speed? Like, OpenMP or TBB ( that's new in OpenCV and more complex, maybe some examples more helpful ) or GPU ( implementing entire project ) or Boost library or another I don't know 3rd party libraries.

i didn't write multithread on c++ before

thanks for helping now

sample code snippet:

for( int i = 0; i < 3000; i++ ) {
)
 for ( for( int j = 0; j < 3000; j++ ) {
)
 int a = 0;

    for ( int index = 0; index < 9000; index++ )
        a++; } }
   // float point operations

How to speed up this code implemented OpenCV

I need an advice for sample below code that requires lots of time for processing. I am developing project on OpenCV and have code blocks like this ( some of them are pictures ). What should I use for more speed? Like, OpenMP or TBB ( that's new in OpenCV and more complex, maybe some examples more helpful ) or GPU ( implementing entire project ) or Boost library or another I don't know 3rd party libraries.

i didn't write multithread on c++ before

thanks for helping now

sample code snippet:

for( int i = 0; i < 3000; i++ )
    for( int j = 0; j < 3000; j++ )
        for ( int index = 0; index < 9000; 3000; index++ )
           // float point operations