[Insight-users] how to add several seeds

orientation f fuzengliang435 at gmail.com
Thu Dec 11 04:30:05 EST 2008


Hi,
I want to segment the serial image with confidence connect filter. One can
set seed as follow
typedef float                                PixelType;
typedef itk::Image<PixelType,2>            ImageType;
ImageType::IndexType seed;
int seedCount;
seedCount=m_SeedPoints.size();

for(int k=0; k<seedCount;k++)
{
  seed[0]= int( m_SeedPoints[k].xIndex );
  seed[1]= int( m_SeedPoints[k].yIndex );
  seed[2]= int( m_SeedPoints[k].zIndex );
}
confidenceFilter->SetSeed( seed );
But in above case, only the last selected point is add as the seed point to
confidence connect filter. How to
add all the selected points to the filter?
Thanks for any hints
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081211/9646dfb4/attachment.htm>


More information about the Insight-users mailing list