<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Helvetica, Arial, sans-serif">Hi OTL,<br>
<br>
Firstly, the \index section is a LaTeX command for adding an entry in
the index. The ITK examples are designed in such a way that the ITK
Software Guide ( <a class="moz-txt-link-freetext" href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a> ) is generated
directly from the source code files - pretty cool hey?! If you open
this document (see above link) you will see the result in the Index
section at the end of the document.<br>
<br>
Now, to edit the example code in
Examples/Segmentation/FastMarchingImageFilter.cxx to add multiple seeds
you need only insert more elements to the NodeContainer:<br>
<br>
<font face="Courier New, Courier, monospace">typedef
FastMarchingFilterType::NodeContainer NodeContainer;<br>
typedef FastMarchingFilterType::NodeType NodeType;<br>
NodeContainer::Pointer seeds = NodeContainer::New();<br>
<br>
InternalImageType::IndexType seedPosition1;<br>
seedPosition1[0] = 25; // You can read this from the command line if
you want<br>
seedPosition1[1] = 25; </font></font></small><small><font
 face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace">// You can read this from the
command line if you want</font></font></small><br>
<small><font face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace"><br>
InternalImageType::IndexType seedPosition2;<br>
seedPosition2[0] = 50; </font></font></small><small><font
 face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace">// You can read this from the
command line if you want</font></font></small><br>
<small><font face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace">seedPosition2[1] = 50; </font></font></small><small><font
 face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace">// You can read this from the
command line if you want</font></font></small><br>
<small><font face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace"><br>
const double seedValue = 0.0;<br>
<br>
NodeType node1;<br>
node1.SetValue( seedValue );<br>
node1.SetIndex( seedPosition1 );<br>
<br>
NodeType node2;<br>
node2.SetValue( seedValue );<br>
node2.SetIndex( seedPosition2 );<br>
<br>
seeds-&gt;Initialize();<br>
seeds-&gt;InsertElement( 0, node1 ); // Adds the first seed position<br>
seeds-&gt;InsertElement( 1, node2 ); // Adds the second seed position<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; // You can add as many seeds as you
want<br>
</font><br>
Hope this helps!<br>
<br>
Cheers, Dan<br>
<br>
toluwalase lasaki wrote:</font></small>
<blockquote
 cite="mid20070716223140.92256.qmail@web52006.mail.re2.yahoo.com"
 type="cite">
  <div><small><font face="Helvetica, Arial, sans-serif">Hello all,</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">&nbsp;</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">I'm trying to
find out how I can edit the fastmarchingimagefilter code to allow for
additional seed points. I attempted to do it&nbsp;by introducting additional
arguments and modifying the part of the code that defines the nodes
but&nbsp;I was unsuccessful.&nbsp;</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">Can someone
please assist me with this? Your help will be much appreciated.</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">&nbsp;</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">Thank you,</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">OTL</font></small></div>
  <small> </small>
  <div><small><font face="Helvetica, Arial, sans-serif">&nbsp;</font></small></div>
  <small> </small>
  <div><font color="#008000" face="Helvetica, Arial, sans-serif"
 size="2"><font color="#000000">\index{itk::FastMarchingImageFilter!Multiple
seeds}</font></font></div>
  <small> </small>
  <div><font face="Helvetica, Arial, sans-serif" size="2">Also, what
exactly does this mean? I'm guessing it's pointing me to some
information in deoxygen but I can't seem to find this information. Any
ideas?</font></div>
  <small> </small></blockquote>
</body>
</html>