Hello Patrick,<br><br>please see the following example:<br><br>import itk<br>points = [(0,0,0),(0,1,0),(1,0,0)]<br>speed_image = itk.ImageFileReader.IF3.New(FileName=&#39;myimage&#39;)<br>NodeType = itk.LevelSetNode.F3<br>

NodeContainer = itk.VectorContainer[itk.UI, NodeType]<br>container = NodeContainer.New()<br>container.Initialize()<br>for i,p in enumerate(points):<br>   node = NodeType()<br>   node.SetIndex( p )<br>   node.SetValue( 0.0 )<br>

   container.InsertElement( i, node )<br><div class="gmail_quote"><br>f = itk.FastMarchingImageFilter.IF3IF3.New(speed_image,TrialPoints=container)<br><br>Hope this helps!<br><br>Cheers,<br><br>Mario<br><br>On Wed, Jul 1, 2009 at 11:08 AM, Patrick <span dir="ltr">&lt;<a href="mailto:jazzcat81@hotmail.com">jazzcat81@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
I am completely new to ITK but rather impressed by the breadth of algorithms it contains. In my particular application I would like to apply a Fast Marching filter to calculate the arrival time of a wave at voxels in a 3d image starting from a user specified seed point. The ItkSoftwareGuide contains an excellent example of how to do this in C++, however, in Python I am not sure how to pass the seedpoints to the algorithm. In C++ the &quot;NodeContainer&quot; type of the FastMarchingFilter is used.<br>


My question is, how do I pass a numpy-array into this data structure from Python?<br>
<br>
Thanks!<br>
<br>
Regards,<br>
<br>
Patrick<br>
<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>
Please keep messages on-topic and check the ITK FAQ at: <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>
</blockquote></div><br><br clear="all"><br>-- <br>Mario Ceresa, MS.<br>Cancer Imaging Laboratory, Center for Applied Medical Research (CIMA),<br>University of Navarra, Avda Pio XII 55, 31008-Pamplona, SPAIN.<br>Phone:+34.948.194.700 ext 5021<br>

Fax: +34.948.194.714<br>E-mail address: <a href="mailto:mceresa@unav.es">mceresa@unav.es</a><br>