Code covered by the BSD License  

Highlights from
calcpsnr

3.25

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

calcpsnr

by Shahab Anbarjafari

 

25 Nov 2008

A simple function to find PSNR between two images!

| 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

Contact us at files@mathworks.com