Hi Brad,<div><br></div><div>seed.push_back([128,128]); seems to give the same error</div><div><br></div><div>I modified the code to:</div><div><br></div><div>.....</div><div><div>        org.itk.simple.VectorUIntList seed = new org.itk.simple.VectorUIntList();</div>
<div>        org.itk.simple.VectorUInt32 pts;</div><div>        pts = new org.itk.simple.VectorUInt32(2);</div><div>        pts.push_back(128);</div><div>        pts.push_back(128);        </div><div>        seed.push_back(pts);</div>
<div>        org.itk.simple.FastMarchingImageFilter waveProp = new org.itk.simple.FastMarchingImageFilter();</div><div>        waveProp.setTrialPoints(seed);</div></div><div>.....</div><div><br></div><div>This compiles, but I&#39;m unsure whether this is doing what I&#39;m expecting. I&#39;ll find out when my full code runs, I guess, but if you can tell offhand if this is doing something bizzare, please let me know.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Reuben</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Thu, Oct 18, 2012 at 4:10 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello Reuben,<div><br></div><div>The TrialPoints arguments is expecting a list of seeds points. You are using the correct SWIG wrapped type of VectorUIntList. To add seeds to this object I would try it&#39;s push_back method. Something like the following should work:</div>
<div><br></div><div><div class="im"><div>    org.itk.simple.VectorUIntList seed = new org.itk.simple.VectorUIntList();</div></div><div>    seed.push_back([128,128]);</div><div class="im"><div>    org.itk.simple.FastMarchingImageFilter waveProp = new org.itk.simple.FastMarchingImageFilter();</div>
<div>    waveProp.setTrialPoints(seed);</div></div></div><div><br></div><div>Brad</div><div><br></div><div><br><div><div><div class="h5"><div>On Oct 18, 2012, at 3:12 PM, Reuben Middendorf &lt;<a href="mailto:rueben.middendorf@gmail.com" target="_blank">rueben.middendorf@gmail.com</a>&gt; wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5">Dear ITK users,<div><br></div><div>I am a newbie to ITK and thought SimpleITK would be a good place to start. I am currently using SimpleITK in a Java environment. I am having some issues with setting the trial points in the program.</div>

<div>Here is the code snippet:</div><div>.............</div><div><div>        org.itk.simple.VectorUIntList seed = new org.itk.simple.VectorUIntList();</div><div>        seed = ([128,128]);</div><div>        org.itk.simple.FastMarchingImageFilter waveProp = new org.itk.simple.FastMarchingImageFilter();</div>

<div>        waveProp.setTrialPoints(seed);</div></div><div>.............</div><div><br></div><div>I get the following error at compile time:</div><div><div><br></div><div>C:\Users\ReubenMiddendorf\Documents\NetBeansProjects\JavaSimpleITKFastMarching\src\javasimpleitkfastmarching\JavaSimpleITKFastMarching.java:22: illegal start of expression</div>

<div>        seed = ([128,128]);</div><div>C:\Users\ReubenMiddendorf\Documents\NetBeansProjects\JavaSimpleITKFastMarching\src\javasimpleitkfastmarching\JavaSimpleITKFastMarching.java:22: &#39;;&#39; expected</div><div>        seed = ([128,128]);</div>

</div><div><br></div><div>I came across the following on the net:</div><div><a href="http://itk-insight-users.2283740.n2.nabble.com/About-SetTrialPoints-in-FastMarchingImageFilter-td7560371.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/About-SetTrialPoints-in-FastMarchingImageFilter-td7560371.html</a> </div>

<div>but the solution there doesn&#39;t seem to work here.</div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Regards,</div><div><br></div><div>Reuben Middendorf</div><div><br></div>
<div>
<br></div></div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div>