Just create another node and insert it into the NodeContainer.<br><br><div class="gmail_quote">On Mon, Jun 20, 2011 at 7:58 AM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com">mkitkinsightuser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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->Initialize();<br> seeds->InsertElement( 0, node );<br><br> fastMarching->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>_____________________________________<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>