[vtkusers] Cut two 3D images with vtkImagePlaneWidget

Dean Inglis dean.inglis at camris.ca
Mon Jun 28 18:33:42 EDT 2010


Hi Iliana, Alvaro,

"I am trying to cut two different volumes with the same vtkImagePlaneWidget, 
and then show the result of the cut on a window where I can move that plane. 
The problem is that I don't know what to do to achieve this: do I need to 
somehow set those two volumes as input of the vtkimageplane, or do I need to 
create two vtkimageplane for the same interactor, or do I need to create two 
different interactors for the same vtkImagePlane?"

"I have a similar problem I don't know how to solve: I would like to cut 
with one single vtkImagePlaneWidget two different sets of data. I will be 
looking forward to your answers because I am utterly stuck."

You can only resample one image volume at a time.  Ive never tried, but
if both your images are single component images, maybe you could
append them into one volume.  Another option is to use 2 widgets
and add a callback to listen to their InteractionEvents in which you could
update the one that is not being interacted with with the origin, point1 and
point2 coordinates of the moving one.


regards,
Dean 




More information about the vtkusers mailing list