Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

I think the problem is that you are not returning the resulting image.

Try to implement the test function and the ApplyFoo class for two parameters (vector<Mat> &src, vector<Mat> &dest). Then call test(tbb,tbb).

Otherwise I'm not sure it's a good idea to measure elapsed time by counting ticks in multithreaded application: it measures CPU cycles (operations), which is the same in single threaded and parallelized applications. Try clock_gettime or similar functions instead.