5.0

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

image processing-zooming an image using Bilinear interpolation

by Dimuthu Senanayaka

 

25 Sep 2010

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
27 Sep 2010 Nethu Amarasinghe

Good work Dimuthu!

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 %

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Dimuthu Senanayaka 27 Sep 2010 09:52:28
mathematics Dimuthu Senanayaka 27 Sep 2010 09:52:28
matrix Dimuthu Senanayaka 27 Sep 2010 09:52:28
interpolation Dimuthu Senanayaka 27 Sep 2010 09:52:28

Contact us at files@mathworks.com