zooming an image using nearest neighbor interpolation
Version 1.1.0.0 (1.91 KB) by
Dimuthu Senanayaka
nearest neighbor interpolation is used to zoom an image by any
positive real number(any n>0).
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 (2026). 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 LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Find more on Nearest Neighbors in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
