<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Malgun Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLChar
        {mso-style-name:"HTML \9884\8BBE\683C\5F0F Char";
        mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am also interested in this topic.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>On Behalf Of </b>Juan Carlos Prieto<br><b>Sent:</b> Friday, September 23, 2011 11:08 PM<br><b>To:</b> Jérôme<br><b>Cc:</b> vtkusers@vtk.org<br><b>Subject:</b> Re: [vtkusers] Multi threading<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Yes thank you<br><br>Le 23/09/2011 11:41, Jérôme a écrit&nbsp;: <o:p></o:p></p><pre>Hi,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>if you derive your image filters from vtkThreadedImageAlgorithm, you gain<o:p></o:p></pre><pre>multithreading capabilities :<o:p></o:p></pre><pre><a href="http://www.vtk.org/doc/nightly/html/classvtkThreadedImageAlgorithm.html">http://www.vtk.org/doc/nightly/html/classvtkThreadedImageAlgorithm.html</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>For custom multithreaded execution, there exists a dedicated VTK object:<o:p></o:p></pre><pre><a href="http://www.vtk.org/doc/nightly/html/classvtkMultiThreader.html">http://www.vtk.org/doc/nightly/html/classvtkMultiThreader.html</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I use it efficiently together with vtkMutexLock.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>HTH<o:p></o:p></pre><pre>Jerome<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>2011/9/23 Juan Carlos Prieto <a href="mailto:prieto@creatis.insa-lyon.fr">&lt;prieto@creatis.insa-lyon.fr&gt;</a>:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Hello all,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>I've been wondering if there exists a way to implement multi threaded<o:p></o:p></pre><pre>filters in VTK. As an example, there exists in ITK an interface<o:p></o:p></pre><pre>(itkImageSource) which allows to create multithreaded filters by<o:p></o:p></pre><pre>implementing some of its methods, they are called automatically during<o:p></o:p></pre><pre>execution of the pipeline.<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>If this is not the case, how can this be done in a correct, &quot;effortless&quot;<o:p></o:p></pre><pre>way?<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Thank you very much,<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>--<o:p></o:p></pre><pre>Juan Carlos Prieto<o:p></o:p></pre><pre>Phd Student<o:p></o:p></pre><pre>CREATIS Tel:+33472438918<o:p></o:p></pre><pre>7 Av Jean Capelle<o:p></o:p></pre><pre>69621 Villeurbanne Cedex<o:p></o:p></pre><pre>France<o:p></o:p></pre><pre>Personal page<o:p></o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Powered by <a href="http://www.kitware.com">www.kitware.com</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Visit other Kitware open-source projects at<o:p></o:p></pre><pre><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Please keep messages on-topic and check the VTK FAQ at:<o:p></o:p></pre><pre><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>Follow this link to subscribe/unsubscribe:<o:p></o:p></pre><pre><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre></blockquote><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>-- <br>Juan Carlos Prieto <span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br>Phd Student <br><a href="http://www.creatis.insa-lyon.fr">CREATIS</a> Tel:+33472438918 <br>7 Av Jean Capelle <br>69621 Villeurbanne Cedex <br>France <br><a href="http://www.creatis.insa-lyon.fr/%7Eprieto">Personal page</a> </span><o:p></o:p></p></div></div></body></html>