资源简介
BDBR表示在同样的客观质量下,较优的编码方法可以节省的码率百分比,其中BDBR越小,当前编码器的压缩性能越佳;BD-PSNR表示在同等码率下,两种编码条件下压缩后视频PSNR值的差异,其中BD-PSNR值越大,当前编码器质量损失越小。
计算视频质量BDBR 和BD-PSNR的matlab代码,运行正确。

代码片段和文件信息
function avg_diff = bjontegaard(R1PSNR1R2PSNR2mode)
%BJONTEGAARD Bjontegaard metric calculation
% Bjontegaard‘s metric allows to compute the average gain in PSNR or the
% average per cent saving in bitrate between two rate-distortion
% curves [1].
% Differently from the avsnr software package or VCEG Excel [2] plugin this
% tool enables Bjontegaard‘s metric computation also with more than 4 RD
% points.
%
% R1PSNR1 - RD points for curve 1
% R2PSNR2 - RD points for curve 2
% mode -
% ‘dsnr‘ - average PSNR difference
% ‘rate‘ - percentage of bitrate saving between data set 1 and
% data set 2
%
% avg_diff - the calculated Bjontegaard metric (‘dsnr‘ or ‘rate‘)
%
% (c) 2010 Giuseppe Valenzise
%
% References:
%
% [1] G. Bjontegaard Calculation of average PSNR differences between
% RD-curves (VCEG-M33)
% [2] S. Pateux J. Jung An excel add-in for computing Bjontegaard metric and
% its evolution
% convert rates in logarithmic units
lR1 = log(R1);
lR2 = log(R2);
switch lower(mode)
case ‘dsnr‘
% PSNR method
p1 = polyfit(lR1PSNR13);
p2 = polyfit(lR2PSNR23);
% integration interval
min_int = min([lR1; lR2]);
max_int = max([lR1; lR2]);
% find integral
p_int1 = polyint(p1);
p_int2 = polyint(p2);
int1 = polyval(p_int1 max_int) - polyval(p_int1 min_int);
int2 = polyval(p_int2 max_int) - polyval(p_int2 min_int);
% find avg diff
avg_diff = (int2-int1)/(max_int-min_int);
case ‘rate‘
% rate method
p1 = polyfit(PSNR1lR13);
p2 = polyfit(PSNR2lR23);
% integration interval
min_int = min([PSNR1; PSNR2]);
max_int = max([PSNR1; PSNR2]);
% find integral
p_int1 = polyint(p1);
p_int2 = polyint(p2);
int1 = polyval(p_int1 max_int) - polyval(p_int1 min_int);
int2 = polyval(p_int2 max_int) - polyval(p_int2 min_int);
% find avg diff
avg_exp_diff = (int2-int1)/(max_int-min_int);
avg_diff = (exp(avg_exp_diff)-1)*100;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2219 2014-02-12 13:09 bjontegaard\bjontegaard.m
文件 1318 2014-02-12 13:09 bjontegaard\license.txt
文件 445 2014-02-12 13:09 bjontegaard\test_bjontegaard.m
目录 0 2019-01-16 17:58 bjontegaard
----------- --------- ---------- ----- ----
3982 4
- 上一篇:啁啾光纤光栅的光学特征matlab
- 下一篇:改进后的互信息法
相关资源
- 读取txt文件内容matlab代码实现
- 细胞图像分割matlab代码
- 基于MP的时频分析MATLAB代码
- WCDMA matlab代码
- 图像降噪Matlab代码
- 圣诞树(matlab代码)
- 心音信号处理分析(附matlab代码)
- Pattern Recognition and Machine Learning(高清
- 均值滤波和FFT频谱分析Matlab代码
- 欧拉放大论文及matlab代码
- GPS信号的码捕获matlab代码.7z
- matlab读取SP3文件
- 图像的饱和度,亮度,色调的matlab代
- 肤色检测matlab代码
- sutton强化学习随书MATLAB代码
- 压缩鬼成像matlab代码
- 压缩感知(Compressed Sensing CS)matlab代
- 基于OFDMA系统的多用户资源分配算法,
- Allan方差分析MATLAB代码,含MPU6050八小
- 均匀球体剖面重力异常正演模拟Matl
- 印章识别matlab代码
- 连续潮流matlab代码
- 线性拟合仿真-最小二乘法、正交回归
- 矩阵填充MATLAB代码
- 大型飞机航拍图处理matlab代码
- LMS语音信号去噪matlab代码
- 卡尔曼滤波MATLAB代码
- Matlab代码编写的semi-supervised CCA 程序
- EOF分析matlab代码
- 尾灯识别matlab代码
评论
共有 条评论