Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB

Note

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 계정에 로그인하거나 계정을 새로 만드십시오.