[Insight-users] How to add multi-seeds
orientation f
fuzengliang435 at gmail.com
Sun Nov 9 21:42:16 EST 2008
Hi,
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:
ImageType3D::IndexType seed;
int seedCount;
seedCount=m_SeedPoints.size();
for(int k=0; k<seedCount;k++)
{
seed[0]= start[0] + int( m_SeedPoints[k].xIndex );
seed[1]= start[1] + int( m_SeedPoints[k].yIndex );
seed[2]= start[2] + int( m_SeedPoints[k].zIndex );
}
NodeType node;
const double seedValue = 0.0;
node.SetValue( seedValue );
node.SetIndex( seed );
seeds->Initialize();
seeds->InsertElement( 0, node );
fastMarching->SetTrialPoints( seeds );
If I want to set several seeds ,what should I do?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081110/6753dea3/attachment.htm>
More information about the Insight-users
mailing list