Psnr Calculation In Matlab For Mac

Posted on  by 

PSNR is very common in image processing. A sample use is in the comparison between an original image and a coded/decoded image. Typical quoted PSNR figures are in the range +25 to +35dB. The syntax for this file is PSNR (A,B), where A and B are MATLAB Intensity Images, with matrix-elements in. I wann to calculate MSE & PSNR. Learn more about mse, psnr Image Processing Toolbox. Calculation of video quality metrics, such as PSNR, APSNR, SSIM, DELTA, MSE, MSAD, VQM, NQI, VMAF and VMAF phone, VIF. All necessary functionality for effective in-depth analysis of encoded video sequences. Stream Analyzer. Syntax analysis of encoded media streams. Showing YUV data sequence in YUV.

Psnr Calculation In Matlab For Machine Learning

Evaluation of PSNR

Lin Zhang, Dept. Computing, The Hong Kong Polytechnic University

Introduction

PSNR (Peak Singal-to-Noise Ratio) index is a traditional IQA metric.

Source Code

We used the PSNR implementation provided by Dr. Zhou Wang, which can be downloaded here https://ece.uwaterloo.ca/~z70wang/research/iwssim/psnr_mse.m.

Usage Notes

1. This implementation can only deal with gray-scale images. So, you need to convert the RGB image to the grayscale version, which can be accomplished by rgb2gray in Matlab.

Evaluation Results

Psnr Calculation In Matlab For Mac Free

The results (in Matlab .mat format) are provided here. Each result file contains a n by 2 matrix, where n denotes the number of distorted images in the database. The first column is the PSNR values, and the second column is the mos/dmos values provided by the database. For example, you can use the following matlab code to calculate the SROCC and KROCC values for PSNR values obtained on the TID2008 database:

%%%%%%%%%%%%%%%

matData = load('PSNROnTID.mat');
PSNROnTID= matData.PSNROnTID;
PSNR_TID_SROCC = corr(PSNROnTID(:,1), PSNROnTID(:,2), 'type', 'spearman');
PSNR_TID_KROCC = corr(PSNROnTID(:,1), PSNROnTID(:,2), 'type', 'kendall');

%%%%%%%%%%%%%%%

The source codes to calculate the PLCC and RMSE are also provided for each database. This needs a nonlinear regression procedure which is dependant on the initialization of the parameters. We try to adjust the parameters to get a high PLCC value. For different databases, the parameter initialization may be different. The nonlinear fitting function is of the form as described in [1].

Evaluation results of PSNR on seven databases are given below. Besides, for each evaluation metric, we present its weighted-average value over all the testing datasets; and the weight for each database is set as the number of distorted images in that dataset.

Database

Results

Nonlinear fitting codeSROCCKROCCPLCCRMSE

TID2008

PSNROnTID

NonlinearFittingTID0.55310.40270.57341.0994

CSIQ

PSNROnCSIQ

NonlinearFittingCSIQ0.80580.60840.80000.1575

LIVE

PSNROnLIVE

NonlinearFittingLIVE0.87560.68650.872313.3597

IVC

NonlinearFittingIVC0.68840.52180.71960.8460

Toyama-MICT

0.6132

0.4443

0.6429

0.9585

A57

0.6189

0.4309

0.7073

0.1737

WIQ

0.6257

0.4626

0.7939

14.1381

Weighted-Average

0.68740.51610.7020

Reference

[1] H.R. Sheikh, M.F. Sabir, and A.C. Bovik, 'A statistical evaluation of recent full reference image quality assessment algorithms', IEEE Trans. on Image Processing, vol. 15, no. 11, pp. 3440-3451, 2006.

Created on: May. 08, 2011

Last update: Aug. 04, 2011

Evaluation of PSNR

Lin Zhang, Dept. Computing, The Hong Kong Polytechnic University

Introduction

PSNR (Peak Singal-to-Noise Ratio) index is a traditional IQA metric.

Source Code

We used the PSNR implementation provided by Dr. Zhou Wang, which can be downloaded here https://ece.uwaterloo.ca/~z70wang/research/iwssim/psnr_mse.m.

Psnr Mse

Usage Notes

1. This implementation can only deal with gray-scale images. So, you need to convert the RGB image to the grayscale version, which can be accomplished by rgb2gray in Matlab.

Evaluation Results

Psnr Calculation In Matlab For Mac

The results (in Matlab .mat format) are provided here. Each result file contains a n by 2 matrix, where n denotes the number of distorted images in the database. The first column is the PSNR values, and the second column is the mos/dmos values provided by the database. For example, you can use the following matlab code to calculate the SROCC and KROCC values for PSNR values obtained on the TID2008 database:

%%%%%%%%%%%%%%%

matData = load('PSNROnTID.mat');
PSNROnTID= matData.PSNROnTID;
PSNR_TID_SROCC = corr(PSNROnTID(:,1), PSNROnTID(:,2), 'type', 'spearman');
PSNR_TID_KROCC = corr(PSNROnTID(:,1), PSNROnTID(:,2), 'type', 'kendall');

%%%%%%%%%%%%%%%

The source codes to calculate the PLCC and RMSE are also provided for each database. This needs a nonlinear regression procedure which is dependant on the initialization of the parameters. We try to adjust the parameters to get a high PLCC value. For different databases, the parameter initialization may be different. The nonlinear fitting function is of the form as described in [1].

Evaluation results of PSNR on seven databases are given below. Besides, for each evaluation metric, we present its weighted-average value over all the testing datasets; and the weight for each database is set as the number of distorted images in that dataset.

Database

Results

Nonlinear fitting codeSROCCKROCCPLCCRMSE

TID2008

PSNROnTID

NonlinearFittingTID0.55310.40270.57341.0994

CSIQ

PSNROnCSIQ

NonlinearFittingCSIQ0.80580.60840.80000.1575

LIVE

PSNROnLIVE

NonlinearFittingLIVE0.87560.68650.872313.3597

IVC

NonlinearFittingIVC0.68840.52180.71960.8460

Toyama-MICT

0.6132

0.4443

0.6429

0.9585

A57

0.6189

0.4309

0.7073

0.1737

WIQ

0.6257

0.4626

0.7939

14.1381

Weighted-Average

0.68740.51610.7020

Reference

[1] H.R. Sheikh, M.F. Sabir, and A.C. Bovik, 'A statistical evaluation of recent full reference image quality assessment algorithms', IEEE Trans. on Image Processing, vol. 15, no. 11, pp. 3440-3451, 2006.

Created on: May. 08, 2011

Last update: Aug. 04, 2011

Coments are closed