[vtkusers] Interactive seed point selection based on QVTK Widget (urgent request for help!)

Xiaopeng Yang yxp233 at postech.ac.kr
Wed Nov 24 08:49:50 EST 2010


Thank you for your help. But are you sure the vtkimagetracerwidget is what I need for seed point selection?

Xiaopeng

-----邮件原件-----
发件人: David Doria [mailto:daviddoria at gmail.com] 
发送时间: 2010년 11월 23일 화요일 오후 8:03
收件人: Xiaopeng Yang
抄送: itk; vtkusers at vtk.org
主题: Re: [vtkusers] Interactive seed point selection based on QVTK Widget (urgent request for help!)

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












More information about the vtkusers mailing list