<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 <<a href="mailto:daviddoria@gmail.com" style="color: rgb(0, 0, 204); ">daviddoria@gmail.com</a>><br>
Subject: Re: [Insight-users] [vtkusers] Interactive seed point<br> selection based on QVTK Widget (urgent request for help!)<br>To: Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr" style="color: rgb(0, 0, 204); ">yxp233@postech.ac.kr</a>><br>
Cc: itk <<a href="mailto:Insight-users@itk.org" style="color: rgb(0, 0, 204); ">Insight-users@itk.org</a>>, <a href="mailto:vtkusers@vtk.org" style="color: rgb(0, 0, 204); ">vtkusers@vtk.org</a><br>Message-ID:<br> <<a href="mailto:AANLkTimuFS5y157YtpzSWfVerZb8zZ9nsQbM4OLa1Jf1@mail.gmail.com" style="color: rgb(0, 0, 204); ">AANLkTimuFS5y157YtpzSWfVerZb8zZ9nsQbM4OLa1Jf1@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On Tue, Nov 23, 2010 at 1:35 AM, Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr" style="color: rgb(0, 0, 204); ">yxp233@postech.ac.kr</a>> wrote:<br>> Hello everyone,<br>
><br>><br>><br>> Greetings!<br>><br>><br>><br>> In my program for medical image segmentation, QVTK widget ImageViewer2 is<br>> used to visualize the images. Do you know what specific functions in VTK or<br>
> ITK I can use to select and load seed point index to my code by simply<br>> clicking a point?<br>><br>><br>><br>> I know that if imageplane widget is used, then by clicking a point, the seed<br>> point index and pixel value can be shown in the screen. But I do not know<br>
> how to save those values to the code automatically at the same time as<br>> clicking that point. Meanwhile, I am not sure it is feasible or not to use<br>> imageplane widget in QVTK widget.<br>><br>><br>><br>
> Since the deadline for my program is approaching, any help will be greatly<br>> appreciated!<br>><br>><br>><br>> Thank you,<br>><br>> 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>