File Exchange

image thumbnail

image processing-zooming an image using Bilinear interpolation

version 1.0 (1.65 KB) by

Bi linear interpolation method has been used here for zooming images by a positive integer factor.

22 Downloads

Updated

View License

An image in your root directory can be zoomed by calling the above program.

*First try with a small image. Because when the image is smaller, program response quickly.

How to Run the Program

*copy bilinear_zoom.m file and the image file to your work directory.

Example-
*if the name of image in root directory is image.jpg and the zooming factor you expect is 5.

*run following code in command window.
bilinear_zoom('image.jpg',5);

*Use the enter key always, when the display does not show any change.

*If you want to know the the algorithm used refer-:
http://en.wikipedia.org/wiki/Bilinear_interpolation

Comments and Ratings (3)

Michael Chan

Michael Chan (view profile)

Hi Dimuthu,

I tested your version with Matlab's. However, this is the result:

Matlab inbuilt
--------------
PSNR (interpolatedImage: bilinear) = +29.00789 dB

Dimuthu's version
-----------------
PSNR (interpolatedImage: bilinear) = +35.77969 dB

Error rate: 23.34466 %

Good work Dimuthu!

MATLAB Release
MATLAB 7 (R14)

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

» Watch video

Win prizes and improve your MATLAB skills

Play today