[Insight-users] [vtkusers] Interactive seed point selection based on QVTK Widget (urgent request for help!)
Prathamesh Kulkarni
prathameshmkulkarni at gmail.com
Tue Nov 23 12:16:31 EST 2010
Hello,
I think the vtkSeedWidget fits well for marking seed points. Have a look at
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/vtkSeedWidget for example
usage.
I have used this inside the QVTKWidget as well.
- Prathamesh
Message: 4
Date: Tue, 23 Nov 2010 06:02:54 -0500
From: David Doria <daviddoria at gmail.com>
Subject: Re: [Insight-users] [vtkusers] Interactive seed point
selection based on QVTK Widget (urgent request for help!)
To: Xiaopeng Yang <yxp233 at postech.ac.kr>
Cc: itk <Insight-users at itk.org>, vtkusers at vtk.org
Message-ID:
<AANLkTimuFS5y157YtpzSWfVerZb8zZ9nsQbM4OLa1Jf1 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Tue, Nov 23, 2010 at 1:35 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
> Hello everyone,
>
>
>
> Greetings!
>
>
>
> In my program for medical image segmentation, QVTK widget ImageViewer2 is
> used to visualize the images. Do you know what specific functions in VTK
or
> ITK I can use to select and load seed point index to my code by simply
> clicking a point?
>
>
>
> I know that if imageplane widget is used, then by clicking a point, the
seed
> point index and pixel value can be shown in the screen. But I do not know
> how to save those values to the code automatically at the same time as
> clicking that point. Meanwhile, I am not sure it is feasible or not to use
> imageplane widget in QVTK widget.
>
>
>
> Since the deadline for my program is approaching, any help will be greatly
> appreciated!
>
>
>
> Thank you,
>
> Xiaopeng
You may want to look at vtkImageTracerWidget:
http://www.vtk.org/doc/nightly/html/classvtkImageTracerWidget.html
Here is an example example usage:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImageTracerWidget
To get the points you handle one of the events (EndInteractionEvent
probably) and then use the GetPath function.
Also, there should be no problem using VTK widgets in a QVTK widget.
Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/BorderWidget
Good luck,
David
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101123/ab042e86/attachment.htm>
More information about the Insight-users
mailing list