PSNR for RGB images

版本 1.2.0.0 (166.1 KB) 作者: Youssef Khmou
PSNR for 2 RGB signals, (Peak Signal to Noise Ratio ) evaluated in dB.
2.1K 次下载
更新时间 2012/8/28

查看许可证

The function, PSNR_RGB( X,Y) computes the PSNR for two RGB images using the formula :

MSE(X,Y)=SUM(1,n)SUM(1,m)SUM(1,p) [X(i,j,k)-Y(i,j,k)]²

d= max(max(X),max(Y))|

PSNR(X,Y)=10.log( d.^2 / MSE)

with p=3, as three channels red, green and blue,

The code can be altered for gray scale image sequences , or Volume of pixels M(n,m,p) ( p > 3 ) .

Some results are in the pdf file " PSNR_RGB.pdf " for discussion .

引用格式

Youssef Khmou (2024). PSNR for RGB images (https://www.mathworks.com/matlabcentral/fileexchange/37691-psnr-for-rgb-images), MATLAB Central File Exchange. 检索来源 .

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

参考作品: PSNR, tspsa

Community Treasure Hunt

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

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

Screenshot added.

1.0.0.0