[vtkusers] UnstructuredGrid to ImageData?

Amy Squillacote amy.squillacote at kitware.com
Tue Aug 9 08:58:46 EDT 2005


For your vtkProbeFilter solution, why not create a 3D vtkImageData (a 
volume) instead of several single slices?  Then you only have to 
probe once.  You can still save out the vtkImageData as a series of 
images if that's the format you need for passing your data to ITK. 
(Take a look at the subclasses of vtkImageWriter.)

- Amy

At 08:47 AM 8/9/2005, laurent.paul at club-internet.fr wrote:

>Hi users,
>
>I 've got a little problem and two solutions but I think (hope) 
>there is something better.
>I've got a volume (vtkImageData) that I clip with a plane 
>(vtkClipVolume + vtkPlane).
>I know this clipper produces UnstructuredGrid. I'd want to write the 
>clipped volume in a file to use it as input to a registration 
>program based on ITK.
>I can clip the volume but don't know which format I can use to write it.
>My two solutions are:
>- I can use a vtkXMLWriter and modify my ITK program to make it 
>accept XML (with XMLReader).
>- The other solution is to use vtkProbeFilter with a plane to 
>"interpolate" images at each plane position.
>The second solution seems to be tedious since, I think, I will have 
>to place the plane, save the result of probing filter, move the 
>plane, save the result ... and so on.
>The first one is pretty good but it would be great if someone tells me:
>"but you can save your unstructuredgrid as imageData using ..... filter"
>I think it's almost impossible, but never knows....
>
>Thanks,
>
>Laurent.
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list