<div><br>Hi Luis,<br>I would like to make my question clearly.<br>Suppose I have two images A (in state S_A) and B(in state S_B),&nbsp; so there may be a motion field between A and B (also we can say  there may be a motion field between S_A and S_B).<br>I want to transform A to B. If the motion between A and B is rigid, I can first find the overlap between A and B&nbsp; and compute the transform matrix, then the transform matrix can be applied to every pixel in A to get a new version A'.<br>But the transform is non-rigid, so I only can transform the pixels in the overlaps. The pixels out the overlap can not be transfered. (my understanding is right?)<br>This is my main problem.&nbsp; how to transform the pixels out the overlap ?<br><br>Now , let me make a summary:<br>(1) Image A and B have some overlap.<br>(2) We can compute the bspline parameters between A and B (note only valid in overlap regions ). <br>(3) I want to transfer every pixels in A using the spline parameters. <br><br>This is for bspline case. If I use optical flow method, the velocity is only in the overlap, how to transform the pixels out the overlap? <br><br>I am not sure if I&nbsp; make it clearly.<br>may be my understanding is wrong.<br>thanks<br>best<br><br></div>Han<br><pre>在2009-04-17&nbsp;01:12:07,"Luis&nbsp;Ibanez"&nbsp;&lt;luis.ibanez@kitware.com&gt;&nbsp;写道:<br>&gt;<br>&gt;Hi&nbsp;Han,<br>&gt;<br>&gt;<br>&gt;The&nbsp;description&nbsp;of&nbsp;your&nbsp;problem&nbsp;is&nbsp;not&nbsp;very&nbsp;clear.<br>&gt;<br>&gt;<br>&gt;You&nbsp;say&nbsp;that:<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;A)&nbsp;Your&nbsp;Fixed&nbsp;and&nbsp;Moving&nbsp;images&nbsp;have&nbsp;the&nbsp;same&nbsp;size.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;B)&nbsp;You&nbsp;are&nbsp;doing&nbsp;deformable&nbsp;registration&nbsp;using&nbsp;BSplines.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;C)&nbsp;Fixed&nbsp;and&nbsp;Moving&nbsp;images&nbsp;have&nbsp;a&nbsp;small&nbsp;overlap&nbsp;between&nbsp;them.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;D)&nbsp;That&nbsp;your&nbsp;goal&nbsp;is&nbsp;to&nbsp;deform&nbsp;the&nbsp;*fixed*&nbsp;image&nbsp;!!!<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is&nbsp;that&nbsp;right&nbsp;?<br>&gt;<br>&gt;<br>&gt;----<br>&gt;<br>&gt;Can&nbsp;you&nbsp;confirm&nbsp;if&nbsp;(A,B,C&nbsp;and&nbsp;D)&nbsp;are&nbsp;indeed&nbsp;what&nbsp;you<br>&gt;want&nbsp;to&nbsp;do&nbsp;?<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Thanks<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<br>&gt;<br>&gt;<br>&gt;-----------------<br>&gt;Han&nbsp;D.&nbsp;F&nbsp;wrote:<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;hello&nbsp;dears,<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;I&nbsp;have&nbsp;fixed&nbsp;image&nbsp;and&nbsp;moving&nbsp;image&nbsp;to&nbsp;be&nbsp;registered.<br>&gt;&gt;&nbsp;my&nbsp;goal&nbsp;is&nbsp;to&nbsp;warp&nbsp;moving&nbsp;image&nbsp;to&nbsp;fixed&nbsp;image&nbsp;and&nbsp;the&nbsp;size&nbsp;is&nbsp;equal&nbsp;to&nbsp;<br>&gt;&gt;&nbsp;moving&nbsp;image&nbsp;size.<br>&gt;&gt;&nbsp;here&nbsp;is&nbsp;the&nbsp;question:<br>&gt;&gt;&nbsp;&nbsp;the&nbsp;examples&nbsp;just&nbsp;warp&nbsp;to&nbsp;the&nbsp;results&nbsp;image&nbsp;with&nbsp;size&nbsp;of&nbsp;fixed&nbsp;image.<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;how&nbsp;to&nbsp;solve&nbsp;my&nbsp;question?<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;fixed&nbsp;image&nbsp;and&nbsp;&nbsp;moving&nbsp;image&nbsp;have&nbsp;some&nbsp;overlap&nbsp;but&nbsp;not&nbsp;very&nbsp;much.<br>&gt;&gt;&nbsp;then&nbsp;I&nbsp;just&nbsp;used&nbsp;the&nbsp;overlap&nbsp;to&nbsp;compute&nbsp;the&nbsp;b-spline&nbsp;parameters.<br>&gt;&gt;&nbsp;my&nbsp;final&nbsp;goal&nbsp;is&nbsp;to&nbsp;deformed&nbsp;the&nbsp;whole&nbsp;fixed&nbsp;image&nbsp;using&nbsp;bspline&nbsp;parameters.<br>&gt;&gt;&nbsp;&nbsp;so&nbsp;some&nbsp;problems&nbsp;I&nbsp;mentioned&nbsp;above&nbsp;will&nbsp;occur.<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;anybody&nbsp;can&nbsp;give&nbsp;me&nbsp;some&nbsp;suggestion?<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;thanks&nbsp;a&nbsp;lots.<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;best<br>&gt;&gt;&nbsp;hdf<br>&gt;&gt;&nbsp;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;------------------------------------------------------------------------<br>&gt;&gt;&nbsp;网易邮箱,中国第一大电子邮件服务商&nbsp;&lt;http://email.163.com&gt;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;------------------------------------------------------------------------<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;_____________________________________<br>&gt;&gt;&nbsp;Powered&nbsp;by&nbsp;www.kitware.com<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;Visit&nbsp;other&nbsp;Kitware&nbsp;open-source&nbsp;projects&nbsp;at<br>&gt;&gt;&nbsp;http://www.kitware.com/opensource/opensource.html<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;Please&nbsp;keep&nbsp;messages&nbsp;on-topic&nbsp;and&nbsp;check&nbsp;the&nbsp;ITK&nbsp;FAQ&nbsp;at:&nbsp;http://www.itk.org/Wiki/ITK_FAQ<br>&gt;&gt;&nbsp;<br>&gt;&gt;&nbsp;Follow&nbsp;this&nbsp;link&nbsp;to&nbsp;subscribe/unsubscribe:<br>&gt;&gt;&nbsp;http://www.itk.org/mailman/listinfo/insight-users<br></pre><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://email.163.com">网易邮箱,中国第一大电子邮件服务商</a>
</span>