[vtkusers] Volume Rendering clipping and ImageReslice

Kall, Bruce A. kall at mayo.edu
Thu May 28 15:21:32 EDT 2009


I can successfully use the vtkPlane SetPlane and SetOrigin functions to 
clip a
volume rendering at the location and angle I want to.  I know want to 
put in
my clipped model a 'slice' from my original volume in the exact same 
location/orientation
as the clip plane.  I've played around with
vtkImageReslice, but can't seem to figure out the correct way to go from
specifying the plane orientation and location using a normal and point 
in the model coordinates (used by SetPlane()
and SetOrigin() for vtkPlane) to specify the same plane orientation and 
location to use in ImageReslice
so that the resultant slice is along the same plane and location as the 
clip plane.

Does anyone have an example of clipping a volume rendering with a 
vtkPlane and
then sticking in an oblique image cut at the same angle/location so it 
lines up on the
clipping plane in the rendered scene?

To clip I use:
clipping_plane->SetNormal(nx,ny,nz);
clipping_plane->SetOrigin(x3d,y3d,z3d);

I do have the 4x4 transform that I've computed the normal (nx,ny,nz) from.
I do want the 'reslice' to be of the same 'size' as the original 3d volume
(e.g, 512pixels by 512 pixels which each have a uniform voxel size of 
1.1mm^3).

Is there something better to use that vtkImageReslice?


Thanks,
Bruce




More information about the vtkusers mailing list