"Shalin Mehta" <shalinDOTmehtaHATESSPAM@gmail.com> wrote in message <email@example.com>... > Just found a useful solution: Use interp2 with '*linear' option. Works factor of 2.5 faster than imtransform. Any other ideas? =================
Yes, interp2 will still be quite slow because of all the different functionality it has to support, for example, interpolation on non-uniform grids. It is much faster to express the interpolation as a separable convolution and use conv2().
Namely if your shift in x and y are 0<sx<1 and 0<sy<1 respectively, then you can do