[Insight-users] set two different seed points

john smith mkitkinsightuser at gmail.com
Mon Jun 20 07:58:23 EDT 2011


Hello to all,

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?

Thanks in advance

//////////////// code /////////////////////////
 NodeContainer::Pointer seeds = NodeContainer::New();

  InternalImageType::IndexType  seedPosition;

  seedPosition[0] = atoi( argv[3] );
  seedPosition[1] = atoi( argv[4] );


  const double initialDistance = atof( argv[5] );

  NodeType node;

  const double seedValue = - initialDistance;

  node.SetValue( seedValue );
  node.SetIndex( seedPosition );


  seeds->Initialize();
  seeds->InsertElement( 0, node );

  fastMarching->SetTrialPoints(  seeds  );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110620/eca2f839/attachment.htm>


More information about the Insight-users mailing list