zooming an image using nearest neighbor interpolation
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
Platform Compatibility
Windows macOS LinuxCategories
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.