[vtkusers] Thin_PlateSplineTransform
Tim Hutton
T.Hutton at eastman.ucl.ac.uk
Mon Mar 18 06:07:31 EST 2002
Karshi,
Yes, vtkThinPlateSplineTransform works in 3D. The Tcl examples should be
all you need to use the class, if they don't make any sense then you need
to get more familiar with VTK first by looking at some simpler examples.
Learn to translate between Tcl and other languages, then all the examples
become useful.
This is pseudocode for how to use the class to transform a vtkPolyData:
vtkPolyData poly
...
vtkPoints s
...
vtkPoints t
...
vtkThinPlateSplineTransform tps
tps SetSourceLandmarks s
tps SetTargetLandmarks t
vtkTransformPolyDataFilter transformer
transformer SetTransform tps
transformer SetInput poly
vtkPolyDataMapper mapper
mapper SetInput [transformer GetOutput]
...
Hope this is some use. VTK actually is well documented, the Tcl examples
are your friend.
Tim.
At 13:38 17/03/2002 -0500, Karshi wrote:
>Hi all,
>
> I want to use the VTKThinPlateSplineTransform function , but am
>not sure if it works for 3D case.
>It sounds great for our project (non-linear transformation), but I have no
>idea how to use it, and there is no instruction either. I've looked some
>examples writen in Tcl , but it did not help me much.
>I would appreciate your help.
>Thanks
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list