Ask Your Question
0

How OpenMP multi-threading can be utilized to parallelize an OpenCV based sequential program? Any example is not found.

asked 2017-05-13 02:27:27 -0600

Helal Uddin Mullah gravatar image

updated 2017-05-13 02:30:06 -0600

Suppose I have to find the negative of a large dimension image, say 1000x1000. If I simply perform pixel value subtraction from 255, it needs to process 10,00,000 numbers of pixels one by one in sequential. If I want to allow OpenMP multi-thread for performing the whole operation partially in several threads which are run on different cores simultaneously. This concept has to be implemented in OpenCV using OpenMP specifications. Need a startup program structure to work on parallel image processing. Your advices will be valuable for me. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-13 03:01:29 -0600

LBerger gravatar image

In opencv no need to know which system is used to parallelize code. You can use Parallel_loop_body like in this tutorials

This function is defined here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-05-13 02:27:27 -0600

Seen: 519 times

Last updated: May 13 '17