Thanks, should have looked in the examples dir :-) A question to the BSplineWarping1.cxx file. It has the following 5 inputs:<br><br>coefficientsFile fixedImage movingImage deformedMovingImage [deformationField]<br><br><br>
<br>But I don&#39;t understand what I should supply as the movingImage. As I understand only the coeff. file and the original image should be supplied followed by paths where the deformedImage and the deformation field should be stored.<br>
<br>Why is it necessary to supply a moving image?<br><br><br><div class="gmail_quote">2009/7/20 Ramón Casero Cañas <span dir="ltr">&lt;<a href="mailto:ramon.casero@comlab.ox.ac.uk">ramon.casero@comlab.ox.ac.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">motes motes wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have an image that I would like to warp and store using the<br>
BsplineTransform. Are there examples showing how to do this?<br>
</blockquote>
<br></div>
Hi Motes,<br>
<br>
I haven&#39;t looked into them myself, but these look promising<br>
<br>
Examples/Registration/BSplineWarping1.cxx<br>
Examples/Registration/BSplineWarping2.cxx<br>
<br>
The file header says: &quot;This example illustrates how to deform a 2D image using a BSplineTransform.&quot;<br>
<br>
If you are using linux, you could have searched the examples directory to look for the files you were looking for with something like this:<br>
<br>
$ find /usr/share/doc/insighttoolkit3-examples/examples/ -iname &quot;*bspline*&quot;<br>
<br>
Cheers,<br>
<br>
Ramon.<br>
<br>
-- <br>
Ramón Casero Cañas, DPhil<br>
<br>
Computational Biology, Computing Laboratory<br>
University of Oxford<br>
Wolfson Building, Parks Rd<br>
Oxford OX1 3QD<br>
<br>
tlf     +44 (0) 1865 610807<br>
web     <a href="http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas" target="_blank">http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas</a><br>
photos  <a href="http://www.flickr.com/photos/rcasero/" target="_blank">http://www.flickr.com/photos/rcasero/</a><br>
</blockquote></div><br>