<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><span>Hi,</span><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div id="yiv671437258"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br><span></span></div><div><span>You can take reference to ITK </span><span>"DeformableRegistration"</span><span> example codes for your case, and use "SetInitialDeformationField" to use the initial displacements. </span></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span
 style="font-weight: bold;">From:</span></b> Prateep Mukherjee &lt;pmukherj@umail.iu.edu&gt;<br> <b><span style="font-weight: bold;">To:</span></b> insight-users@itk.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 16, 2012 4:23 AM<br> <b><span style="font-weight: bold;">Subject:</span></b>
 [Insight-users] deformable registration in 2D<br> </font> </div> <br>
Hello,<br><br>&nbsp;  I am new to ITK. I am writing an application for deformable registration between two images.&nbsp; I have two images and have overlayed a 4x4 grid on them.<br><br>&nbsp;  I also have an array of displacements. I want to apply the displacements to each grid, compute the deformed image, and calculate mutual information between the actual image and the deformed image.&nbsp; Hope I am clear as to what I am doing.<br><br>&nbsp;  Can someone please direct me to a sample code in ITK that does something similar ?<br><br>-- Thanks,<br>Prateep.<br><br>_____________________________________<br>Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br>http://www.kitware.com/opensource/opensource.html<br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages
 on-topic and check the
 ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>