File Exchange

image thumbnail

Zooming and Shrinking of an Image

version 1.0 (1.33 KB) by

This code explains how an Image can be resized by u user entered zooming or shrinking factor.

10 Downloads

Updated

View License

The code is self-explanatory.

Comments and Ratings (3)

Franky Dsouza

smily

smily (view profile)

Jurgen

Jurgen (view profile)

Hi, I have a question.

Why is your output is different from matlab's imresize()? E.g. if I use factor 2 it gives 511x511 instead of 512x512. And why does the zoom version have a 'raster' pattern--shouldn't it use nearest neighbor interpolation?

Incidentally, what you call zoom is technically called enlarging. Zoom = cropping && enlarging.

MATLAB Release
MATLAB 7.6 (R2008a)

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

» Watch video