<div>Hi,</div><div> </div><div>I iterate over an image, to find an index of the point that I wish to transform via the deformation field.  I then use itk&#39;s TransformIndextoPhysicalPoint and apply a transform with the deformation field to map the point.</div>
<div> </div><div>I hope this helps you.</div><div> </div><div>take care,</div><div>John<br><br></div><div class="gmail_quote">On Tue, Jul 26, 2011 at 5:15 PM, Marta Peroni <span dir="ltr">&lt;<a href="mailto:m.peroni@gmail.com">m.peroni@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Dear all, <br>I wonder if any of you knows a simply way to apply a generic vector field to a point. <br>
To have more insight in this: <br>I generate an artificial deformation by means of gaussians (i.e. the final vector field is a composition of 3 gaussians)<br>

I have a point in physical coordinates (A) and its correspondent point (B) on the final image (extracted via SIFT algorithm)<br>I want to transform A and check that is &quot;close enough&quot; to B. <br><br>The &quot;easiest&quot; way I thought about is the following: <br>


1) read point and vector field in<br>2) reconstruct the transform by means of interpulation ---&gt; I mean basically I would need to interpulate the vector field for example with Bsplines because my points can be anywhere<br>


3) derive the corresponding vector that has to be applied on the point A<br>4) distance from B<br><br>I&#39;m using itk 3.20 on win/linux :) and I would really appreciate any help :) <br>thanks<br><font color="#888888">Marta<br>

</font><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div>John Drozd<br></div>
<div>Post-Doctoral Fellow, Robarts Research Institute</div>
<div>The University of Western Ontario</div>
<div>London, ON, Canada</div><div><a href="http://publish.uwo.ca/~jdrozd2/index.htm" target="_blank">http://publish.uwo.ca/~jdrozd2/index.htm</a></div>
<div> </div><br>