calcpsnr

A simple function to find PSNR between two images!
3.1K 次下载
更新时间 2008/11/25

查看许可证

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

引用格式

Gholamreza (Shahab) Anbarjafari (2024). calcpsnr (https://www.mathworks.com/matlabcentral/fileexchange/22241-calcpsnr), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0