<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">This question has little to do with ITK. Moreover you did not provide enough information to be helped. Most likely you will have to "add the results" after the parallel for loop.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 7:09 PM, Vikash Gupta <span dir="ltr"><<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hi itk Users,<br>I want to do parallel operations on a series of images and then add the results of each individual thread. I am using openmp for parallelizing my for-loop as<br>
<br>#pragma omp parallel for private() shared()<br>for ()<br>{<br>}<br><br>But I do not understand how to add the results from individual threads.<br><br>Any help will be much appreciated <br><br>Thanks <br><span class="HOEnZb"><font color="#888888">Vikash<span style="white-space:pre-wrap"></span><span style="white-space:pre-wrap"></span><br>
</font></span></div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>