<div dir="ltr"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hello,</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I think the vtkSeedWidget fits well for marking seed points. Have a look at </span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/vtkSeedWidget">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/vtkSeedWidget</a> for example usage.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I have used this inside the QVTKWidget as well.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">- Prathamesh</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div>Message: 4<br>Date: Tue, 23 Nov 2010 06:02:54 -0500<br>From: David Doria &lt;<a href="mailto:daviddoria@gmail.com" style="color: rgb(0, 0, 204); ">daviddoria@gmail.com</a>&gt;<br>
Subject: Re: [Insight-users] [vtkusers] Interactive seed point<br>       selection based on QVTK Widget (urgent request for help!)<br>To: Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr" style="color: rgb(0, 0, 204); ">yxp233@postech.ac.kr</a>&gt;<br>
Cc: itk &lt;<a href="mailto:Insight-users@itk.org" style="color: rgb(0, 0, 204); ">Insight-users@itk.org</a>&gt;, <a href="mailto:vtkusers@vtk.org" style="color: rgb(0, 0, 204); ">vtkusers@vtk.org</a><br>Message-ID:<br>       &lt;<a href="mailto:AANLkTimuFS5y157YtpzSWfVerZb8zZ9nsQbM4OLa1Jf1@mail.gmail.com" style="color: rgb(0, 0, 204); ">AANLkTimuFS5y157YtpzSWfVerZb8zZ9nsQbM4OLa1Jf1@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On Tue, Nov 23, 2010 at 1:35 AM, Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr" style="color: rgb(0, 0, 204); ">yxp233@postech.ac.kr</a>&gt; wrote:<br>&gt; Hello everyone,<br>
&gt;<br>&gt;<br>&gt;<br>&gt; Greetings!<br>&gt;<br>&gt;<br>&gt;<br>&gt; In my program for medical image segmentation, QVTK widget ImageViewer2 is<br>&gt; used to visualize the images. Do you know what specific functions in VTK or<br>
&gt; ITK I can use to select and load seed point index to my code by simply<br>&gt; clicking a point?<br>&gt;<br>&gt;<br>&gt;<br>&gt; I know that if imageplane widget is used, then by clicking a point, the seed<br>&gt; point index and pixel value can be shown in the screen. But I do not know<br>
&gt; how to save those values to the code automatically at the same time as<br>&gt; clicking that point. Meanwhile, I am not sure it is feasible or not to use<br>&gt; imageplane widget in QVTK widget.<br>&gt;<br>&gt;<br>&gt;<br>
&gt; Since the deadline for my program is approaching, any help will be greatly<br>&gt; appreciated!<br>&gt;<br>&gt;<br>&gt;<br>&gt; Thank you,<br>&gt;<br>&gt; Xiaopeng<br><br>You may want to look at vtkImageTracerWidget:<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkImageTracerWidget.html" target="_blank" style="color: rgb(0, 0, 204); ">http://www.vtk.org/doc/nightly/html/classvtkImageTracerWidget.html</a><br><br>Here is an example example usage:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImageTracerWidget" target="_blank" style="color: rgb(0, 0, 204); ">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImageTracerWidget</a><br><br>To get the points you handle one of the events (EndInteractionEvent<br>
probably) and then use the GetPath function.<br><br>Also, there should be no problem using VTK widgets in a QVTK widget.<br>Here is an example:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/BorderWidget" target="_blank" style="color: rgb(0, 0, 204); ">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/BorderWidget</a><br>
<br>Good luck,<br><br>David<br><br><br>------------------------------</span></div>