File Exchange

image thumbnail

nanimresize

version 1.0 (5.83 MB) by

Use the imresize function without losing data at NaN boundaries.

0 Downloads

Updated

View License

The Image Processing Toolbox offers a great function called imresize, which conveniently rescales gridded datasets and automatically applies antialiasing. However, because imresize interpolates data, imresize output tends to lose data near NaN boundaries. This function uses John D'Errico's inpaint_nans function before applying imresize, then re-masks NaN output.

Comments and Ratings (0)

MATLAB Release
MATLAB 8.0 (R2012b)
Acknowledgements

Inspired by: inpaint_nans

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

nanimresize/

nanimresize/html/