Ask Your Question
1

OpenCV and TBB

asked 2012-11-29 14:34:30 -0500

tobyd gravatar image

updated 2012-11-29 14:37:43 -0500

Hi, I am looking for a way to speed up my image processing. I have a vector<string> containing the storage location of an image in each element. the vector's size is approx 1000. the for loop looks like:

for(int i=0; i<vectorimg.size();++i)
{
Mat img = imread(vectorimg[i]);
GaussianBlur(img...);
threshold(img...);
...
}

I wonder if I could use parallel_for from TBB to speed up the for loop. how would the parallel_for loop look like? Are there any examples for using parallel_for and opencv?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-12-02 05:26:05 -0500

Michael Burdinov gravatar image

You can find good example of using parallel_for in answers for this question, although I think you won't be able to gain speed up this way.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-29 14:34:30 -0500

Seen: 1,610 times

Last updated: Dec 02 '12