[vtkusers] Rendering of volume slices and polydata: coordinates do not match

Miguel Sotaquira msotaquira at gmail.com
Mon Jun 18 01:23:40 EDT 2012


Hello,

I have a 3D volume that has been segmented, then I use a polygonal mesh
(polydata) to represent the segmented region. What I want to do is to
render the 3D volume (orthoslice view, using vtkImagePlaneWidget) and then
superimpose the corresponding mesh containing the segmentation, so as to
visually inspect the segmentation results.

My pipeline so far is:

1. Visualization of the 3D volume
vtkMetaImageReader -> vtkImagePlaneWidget (for axial, coronal and sagittal
slices) -> Rendering
2. Visualization of the mesh
vtkXMLPolyDataReader -> Rendering

The pipeline works in the sense that I'm able to see in the same render
window both the 3D slices and the mesh, as in this figure
http://tinypic.com/view.php?pic=34pzv9w&s=6.

The problem is that the mesh and the volume rendered DO NOT share the same
coordinate system and thus the rendered polydata DOES NOT lie inside the 3D
volume. What could be the problem in this case?

Thanks for your help,
Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120618/560c4cdc/attachment.htm>


More information about the vtkusers mailing list