Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB


Steve on Image Processing with MATLAB has been archived and will not be updated.

Multidimensional interpolation with integer input

A customer asked me last week how to do multidimensional interpolation with integer inputs. The MATLAB function interpn supports only double- and single-precision inputs.

It's possible to do this using a little-known Image Processing Toolbox function called tformarray. But tformarray is a general spatial transformation engine with a complicated syntax. It isn't easy to figure out how to use it for interpolation, so I decided to write a wrapper M-file to do it.

The function iminterpn, which has a syntax similar to interpn, is now available on the MATLAB Central File Exchange. I hope some of you find it useful.

  • print


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。