[Insight-users] how to add several seeds

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 11 07:52:13 EST 2008


Use
confidenceFilter->AddSeed( seed );
inside the loop.


On Thu, Dec 11, 2008 at 4:30 AM, orientation f <fuzengliang435 at gmail.com> wrote:
> 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
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list