[Insight-users] some questions with the ThinPlateSplineWarp.cxx
Luis Ibanez
luis.ibanez at kitware.com
Mon Apr 21 15:39:33 EDT 2008
Hi Feng,
Thanks for your comments regarding this example.
Please note that ITK provides multiple implementations
of KernelTransforms, all of them deriving from the class:
http://www.itk.org/Insight/Doxygen/html/classitk_1_1KernelTransform.html
It seems that you are interested in using the class:
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ThinPlateR2LogRSplineKernelTransform.html
instead of the transform class:
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ThinPlateSplineKernelTransform.html
that is featured in that example.
You can therefore, simply change the #include of the header file,
and the class name in the typedef statement that instantiates the
type of the transform.
Please let us know if you have any further questions.
Thanks
Luis
---------------------
feng yang wrote:
> hi,Luis,
>
> I am trying to get the deformation field from a Landmark file using the
> ThinPlateSpline transform.But I discover a problem,: in the
> itkThinPlateSplineKernelTransform.txx, the G Matrix is gotten as
> :"GMatrix[i][i] = r". This is true for the 3D image,but for the 2D image
> ,the G matrix should be:GMatrix[i][i]=r^2*log(r^2),which I got from the
> paper:"Thin-Plate Spline Approximation for image registration".However,
> G matrix is gotten as :"GMatrix[i][i] = r" for all the dimenson image.
> So the itkThinPlateSplineKernelTransform is just useful for 3D image? Am
> I right or I have made some misunderstand?
>
> Thank you very much!
>
> feng
More information about the Insight-users
mailing list