[vtkusers] Reslice

James Carroll mrmaple at gmail.com
Tue Sep 20 16:23:25 EDT 2005


Hello,  I have an image stack, and am trying to resample a image out
of the stack using vtkReslice.  I see that there are lots of powerful
functions such as set Tranfromation matrix, and set origin, etc...  
but I am having trouble figuring out how to use them together.

What I want to do is be able to specify:

 -  the size of the resulting image (it will be small relative to the
extents of the stack)

 - the center of the resulting image in stack coordinates (world
coordinates.)  This center is the location of the pixel that will
change the least when the rotation angles change.

 - the angles that specify how the resulting image rotates around the
Y axis of the source stack at the center point,  and then a second
angle rotates the image around the image's local X axis at the
resulting image's center point.

How do I translate this center, angle, angle to the vtkReslice's
SetOrigin and Set Transform commands?

What this will let me do is have a plane that is always facing the
viewer, that is texture mapped with the reslice image.  As I rotate
the stack (orbit around it or examine it), the resulting image shows
different resliced images.

Thanks!
-Jim



More information about the vtkusers mailing list