zooming an image using nearest neighbor interpolation

nearest neighbor interpolation is used to zoom an image by any positive real number(any n>0).
1.6K Downloads
Updated 6 Oct 2010

View License

zooming a given image by a given positive factor can be done..
copy nearest_neighbor_zoom.m file and the image file that should be zoomed to your work directory.
if the name of the image file is image.jpg and the zooming factor needed is 2.23,
run following command on command window.
nearest_neighbor_zoom('image.jpg',2.23);

Leave your comments...

Cite As

Dimuthu Senanayaka (2024). zooming an image using nearest neighbor interpolation (https://www.mathworks.com/matlabcentral/fileexchange/28965-zooming-an-image-using-nearest-neighbor-interpolation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

edited the description.

1.0.0.0