[vtkusers] UnstructuredGrid to ImageData?
laurent.paul at club-internet.fr
laurent.paul at club-internet.fr
Tue Aug 9 08:47:28 EDT 2005
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.
More information about the vtkusers
mailing list