<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">I have two landmards. The source landmarks 
pt1&nbsp;is a set of points, which is selected from image1 and the target 
landmarks pt2 is a set of points, which is selected from image2. Now I want to 
use ThinPlateSplineKernelTransform to register them. I do as below,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT 
face="Bookman Old Style">transform-&gt;SetSourceLandmarks(pt1);</FONT></DIV>
<DIV><FONT 
face="Bookman Old Style">transform-&gt;SetTargetLandmarks(pt2);</FONT></DIV>
<DIV><FONT face="Bookman Old Style">transfomr-&gt;Update();</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">&nbsp;resampler-&gt;SetTransform( transform 
);<BR>&nbsp;resampler-&gt;SetInterpolator(interpolator);<BR>&nbsp;resampler-&gt;SetInput(image2);<BR>&nbsp;size 
=&nbsp; 
image1-&gt;GetLargestPossibleRegion().GetSize();<BR>&nbsp;resampler-&gt;SetSize(size);<BR>&nbsp;resampler-&gt;SetOutputOrigin(&nbsp; 
image1-&gt;GetOrigin() );<BR>&nbsp;resampler-&gt;SetOutputSpacing( 
image1-&gt;GetSpacing() );<BR><BR>&nbsp;resampler-&gt;SetDefaultPixelValue( 0 
);<BR>&nbsp;resampler-&gt;Update();&nbsp; </FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Is it correct?</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Best,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV></BODY></HTML>