Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB

Multidimensional interpolation with integer input

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

It's possible to do this using a little-known Image Processing Toolbox function calledtformarray. Buttformarrayis 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 functioniminterpn, which has a syntax similar tointerpn, is now available on theMATLAB Central File Exchange. I hope some of you find it useful.

|
  • print
  • send email

Comments

To leave a comment, please clickhereto sign in to your MathWorks Account or create a new one.