Hi Marta,<div><br></div><div>In addition to what John said, you can use the </div><div><br></div><div>DeformationFieldSource class to generate a </div><div><br></div><div>deformation field from set of corresponding points then use the </div>
<div><br></div><div>WarpImageFilter to apply the deformation field to the source image.</div><div><br></div><div>Also, I think ITKv4 has better support for this sort of operations!</div><div><br></div><div>HTH,</div><div>
Dawood</div><div><br></div><div><br></div><div>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;</div>
<div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">Dear all,</span></div><div><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; "><pre>
I wonder if any of you knows a simply way to apply a generic vector field to
a point.
To have more insight in this:
I generate an artificial deformation by means of gaussians (i.e. the final
vector field is a composition of 3 gaussians)
I have a point in physical coordinates (A) and its correspondent point (B)
on the final image (extracted via SIFT algorithm)
I want to transform A and check that is &quot;close enough&quot; to B.

The &quot;easiest&quot; way I thought about is the following:
1) read point and vector field in
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
3) derive the corresponding vector that has to be applied on the point A
4) distance from B

I&#39;m using itk 3.20 on win/linux :) and I would really appreciate any help :)

thanks
Marta</pre></span></div>