3.25

3.2 | 14 ratings Rate this file 15 downloads (last 30 days) File Size: 1.56 KB File ID: #22241

calcpsnr

by Shahab Anbarjafari

 

25 Nov 2008

Code covered by BSD License  

A simple function to find PSNR between two images!

Download Now | Watch this File

File Information
Description

This function PSNR = calcpsnr(f,F), will compute the PSNR of two given images. The function accepts as inputs, the 2 images where the first image is the source image f(x,y) containing N by M pixels and the second is the reconstructed image F(x,y). [note f and F must be between 0 and 255]
The function also calculates the Error image by taking the difference between the reconstructed and original pixels.
The typical construction of the error image multiples the difference by a constant to increase the visible difference and translates the entire image to a gray level. Formulas for these computations have been gotten from
http://bmrc.berkeley.edu/courseware/cs294/fall97/assignment/psnr.html on
July 26th 2007. The code was put together by me Toritseju Okpotse same day.
The code has been modified on 11-11-2008 by me, Gholamreza Anbarjafari

Best
Shahab

Eastern Mediterranean University
http://faraday.emu.edu.tr/hdemirel
http://faraday.emu.edu.tr/shahab
hasan.demirel[at]emu.edu.tr
shahab.jafari[at]emu.edu.tr
toritseju.ookpotse[at]cc.emu.edu.tr

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
30 Nov 2008 i posh

it eased the process!!!!!

01 Dec 2008 Shahab Anbarjafari

Lutfen, rating yapmayin!!! Bazi arkadaslar'e rahatsiz ediyor! :-)

12 Dec 2008 alain boyer  
25 Mar 2009 Xu Wings

Thanks for the code.

30 Mar 2009 Kemal  
04 Apr 2009 Ziba

Thank you

05 Apr 2009 V. Poor  
05 Apr 2009 Xing Yu  
05 Apr 2009 Robin Torres  
15 Apr 2009 Mustafa  
22 Apr 2009 Xu Wings  
24 Apr 2009 Xu Wings  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Shahab Anbarjafari 25 Nov 2008 15:02:47
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com