%% mexinterp.m
%
% This function is a mex function based on the program developed by P.
% Thevenaz.
%
%
% Date: November 28th 2008  /  modified by P. Chainais
%
% This C program is based on the following paper:
%
% P. Thevenaz, T. Blu, M. Unser, "Interpolation Revisited",
% IEEE Transactions on Medical Imaging,
% vol. 19, no. 7, pp. 739-758, July 2000.
% 
%
%% Contact
%
% EPFL/STI/IOA/LIB/BM.4.137
%
% Philippe Thevenaz
%
% Station 17
%
% CH-1015 Lausanne VD
%
% phone (CET): +41(21)693.51.61
%
% fax: +41(21)693.37.01
%
% RFC-822: philippe.thevenaz@epfl.ch
%
% X-400: /C=ch/A=400net/P=switch/O=epfl/S=thevenaz/G=philippe/
%
% URL: http://bigwww.epfl.ch/
%
%

%% Convention repere image for Matlab

%
% --------------> Oy 
% |
% |
% |
% |
% v
%   Ox
%


%% Use
%
% [I_out] = mexinterp(I_in,xOut, yOut, SplinDegree) ;
%

%% Inputs
%
% * *I_in*: initial image, can be a vector in 1 dimension.
% * *xOut, yOut*: lists of coordinates at which the interpolation is desired,
% * *SplineDegree*: order of the spline used to interpolate (3 by default).
% 

%% Output
%
% * *I_out*: new interpolated values at positions (xOut, yOut).
%
%

 
