[Insight-users] set two different seed points

robert tamburo robert.tamburo at gmail.com
Mon Jun 20 10:08:40 EDT 2011


http://www.itk.org/Doxygen/html/classitk_1_1VectorContainer.html

On Mon, Jun 20, 2011 at 9:55 AM, john smith <mkitkinsightuser at gmail.com>wrote:

> I have created a node_2, but I am not hot to write the InsertElement
> function. Which from these two is correct?
>
> seeds->InsertElement( 1, node_2 );
>
> or
>
> seeds->InsertElement( 0, node_2 );
>
>
> 2011/6/20 robert tamburo <robert.tamburo at gmail.com>
>
>> 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/250a0868/attachment.htm>


More information about the Insight-users mailing list