[Insight-users] set two different seed points
robert tamburo
robert.tamburo at gmail.com
Mon Jun 20 09:26:13 EDT 2011
Just create another node and insert it into the NodeContainer.
On Mon, Jun 20, 2011 at 7:58 AM, john smith <mkitkinsightuser at gmail.com>wrote:
> 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 );
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110620/f443991e/attachment.htm>
More information about the Insight-users
mailing list