Hi Monica,<div><br></div><div>if I remember correctly, Matlab has cross-compiler to C (take a look here: <a href="http://www.mathworks.es/matlabcentral/newsreader/view_thread/5731">http://www.mathworks.es/matlabcentral/newsreader/view_thread/5731</a>).</div>
<div><br></div><div>Regards,</div><div>Dženan<br><br><div class="gmail_quote">On Thu, Jul 1, 2010 at 18:48, Monica Hernandez Gimenez <span dir="ltr"><<a href="mailto:mhg@unizar.es">mhg@unizar.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear itk users,<br>
<br>
I am trying to use itkBSplineInterpolateImageFunction to perform the<br>
composition of a function in a regular grid deformed by some<br>
transformation. However, mirror boundary conditions are totally wrong<br>
for my application and this is the only option provided by the class.<br>
<br>
I have experienced with Matlab interp2 function<br>
<br>
fI = interp2( X, Y, f, XI, YI, 'spline' )<br>
<br>
where X and Y represent the regular grid,<br>
XI and YI represent the deformed grid<br>
f is the function I am interested in interpolating. In this case,<br>
boundary conditions seem to be really OK for my application.<br>
<br>
I have tried very hard to understand how bspline interpolation in<br>
Matlab deals with pixels in the boundary in order to include it in itkBSplineInterpolateFunction, regretfuly I was not able to understand<br>
the code. It seems that both interpolation and extrapolation is<br>
performed at the same time in splncore.m file.<br>
<br>
Could anybody help me to understand the extrapolation method used<br>
in matlab in order to include it in itkBSplineInterpolateImageFunction?<br>
<br>
Does anybody know if splncore.m code is implemented somewhere in C<br>
like language? (I think this also may help a lot)<br>
<br>
Thanks a lot!<br>
<br>
Monica.<br>
<br>
<br>
<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>
</blockquote></div><br></div>