5.0

5.0 | 1 rating Rate this file 38 Downloads (last 30 days) File Size: 1.65 KB File ID: #28832
image thumbnail

image processing-zooming an image using Bilinear interpolation

by

 

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
22 Jan 2011 Michael Chan

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 %

27 Sep 2010 Nethu Amarasinghe

Good work Dimuthu!

Contact us