Click here to Skip to main content
15,889,651 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
can i use openmp for image processing so that after increasing number of threads the image processing can do in fast way

What I have tried:

after increasing threads no performance increase done
Posted
Updated 23-Jan-17 3:30am
Comments
Richard MacCutchan 23-Jan-17 7:02am    
It all depends on what each thread is doing.

1 solution

Just use OpenCV, it will take care of parallelism for you. Most of the code in OpenCV already makes a good use of OpenMP so if your machine supports these features, they will be utilized heavily by the framework itself.

Read these threads for answer, Does OpenCV functions really use OpenMP - OpenCV Q&A Forum[^], How opencv use openmp thread to get performance? - OpenCV Q&A Forum[^], Where is OpenMP used in OpenCV? - OpenCV Q&A Forum[^]. If you search for (like I did), "opencv and openmp", Google will produce even more results that tell you that the framework itself is using these features for you. But if you want to add more, you are always welcome.

Otherwise, you can embed the OpenCV statements in multiple parallel threads in OpenMP; where you think it can be added.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900