I have created a node_2, but I am not hot to write the InsertElement function. Which from these two is correct?<br><br>seeds-&gt;InsertElement( 1, node_2 );<br><br>or<br><br>seeds-&gt;InsertElement( 0, node_2 );<br><br><div class="gmail_quote">
2011/6/20 robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com">robert.tamburo@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Just create another node and insert it into the NodeContainer.<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Jun 20, 2011 at 7:58 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Hello to all,<br><br>I am working in GeodesicActiveContourImageFilter.In the example, it is declared a container in order to set a seed point.What I should write in order to set two different seed points?<br>

<br>Thanks in advance<br>
<br>//////////////// code /////////////////////////<br> NodeContainer::Pointer seeds = NodeContainer::New();<br><br>  InternalImageType::IndexType  seedPosition;<br>  <br>  seedPosition[0] = atoi( argv[3] );<br>  seedPosition[1] = atoi( argv[4] );<br>


<br><br>  const double initialDistance = atof( argv[5] );<br><br>  NodeType node;<br><br>  const double seedValue = - initialDistance;<br>  <br>  node.SetValue( seedValue );<br>  node.SetIndex( seedPosition );<br><br><br>


  seeds-&gt;Initialize();<br>  seeds-&gt;InsertElement( 0, node );<br><br>  fastMarching-&gt;SetTrialPoints(  seeds  );<br><div style="padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;">


</div>
<br></div></div>_____________________________________<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.html" target="_blank">http://www.kitware.com/products/protraining.html</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>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>