<div><font style="BACKGROUND-COLOR: #008000">Hi, </font></div>
<div><font style="BACKGROUND-COLOR: #c7edcc">For multi-objects segmentation, it is necessary to set a set of seeds. According to ITK examples, in level set segmentation, a single seed can be located as follow:</font></div>
<div>ImageType3D::IndexType seed;<br> int seedCount;<br> seedCount=m_SeedPoints.size();<br> <br> for(int k=0; k<seedCount;k++)<br> {<br> seed[0]= start[0] + int( m_SeedPoints[k].xIndex );<br>
seed[1]= start[1] + int( m_SeedPoints[k].yIndex );<br> seed[2]= start[2] + int( m_SeedPoints[k].zIndex );<br> }<br> <br> NodeType node;<br> const double seedValue = 0.0;<br>
<br> node.SetValue( seedValue );<br> node.SetIndex( seed );<br> <br> seeds->Initialize();<br> seeds->InsertElement( 0, node );<br> <br> fastMarching->SetTrialPoints( seeds );</div>
<div> </div>
<div>If I want to set several seeds ,what should I do?</div>
<div>Thanks!</div>