[vtkusers] vtkThinPlateSplineTransform and curved slicing

Michael Knopke Michael.Knopke at gmx.de
Mon May 26 11:17:34 EDT 2008


Hello VTK-Users,

 

I'm trying to use vtkThinPlateSplineTransform to generate curved slicing.
Unfortunately I get some strange and unexpected results. What I do is
similar to the example that comes with vtk:

 

-          Load a Volume

-          Show one slice of this volume

-          Draw a spline (vtkSplineWidget) and use the handlepositions as
input for --> vtkThinplateSpline->SetTargetLandmarks.

-          Create a plane that is perpendicular to this spline and passes
through both endpoints

-          Project all points of my spline onto the plane and query its new
positions -> set those new pointpositions :
vtkThinplatSpline->SetSourceLandmarks

-          Now when I use this Transform as input to vtkImageReslice I often
get a warped (e.g. bend) image quite as I expect it to be but sometimes the
whole image gets squeezed or inverted or mirrored.

 

Does anybody know what I need to consider when using this class, or does
anybody has got a better example? 

 

Regards,

Michael

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080526/d451fe9e/attachment.htm>


More information about the vtkusers mailing list