[Insight-users] Help with boundary conditions in itkBSplineInterpolateImageFunction

Dženan Zukić dzenanz at gmail.com
Fri Jul 2 04:34:09 EDT 2010


Hi Monica,

if I remember correctly, Matlab has cross-compiler to C (take a look here:
http://www.mathworks.es/matlabcentral/newsreader/view_thread/5731).

Regards,
Dženan

On Thu, Jul 1, 2010 at 18:48, Monica Hernandez Gimenez <mhg at unizar.es>wrote:

> Dear itk users,
>
> I am trying to use itkBSplineInterpolateImageFunction to perform the
> composition of a function in a regular grid deformed by some
> transformation. However, mirror boundary conditions are totally wrong
> for my application and this is the only option provided by the class.
>
> I have experienced with Matlab interp2 function
>
> fI = interp2( X, Y, f, XI, YI, 'spline' )
>
> where X and Y represent the regular grid,
> XI and YI represent the deformed grid
> f is the function I am interested in interpolating. In this case,
> boundary conditions seem to be really OK for my application.
>
> I have tried very hard to understand how bspline interpolation in
> Matlab deals with pixels in the boundary in order to include it in
> itkBSplineInterpolateFunction, regretfuly I was not able to understand
> the code. It seems that both interpolation and extrapolation is
> performed at the same time in splncore.m file.
>
> Could anybody help me to understand the extrapolation method used
> in matlab in order to include it in itkBSplineInterpolateImageFunction?
>
> Does anybody know if splncore.m code is implemented somewhere in C
> like language? (I think this also may help a lot)
>
> Thanks a lot!
>
> Monica.
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100702/c7d3425e/attachment.htm>


More information about the Insight-users mailing list