mserror.m
来自「零树编码用于128*128图象压缩算法」· M 代码 · 共 16 行
M
16 行
function mse = MSERROR(A, B)
% The function takes two equal images and calculates the mean square
% difference inbetween the two.
% Usage: MSE = MSERROR(A, B, NSIZE);
% where A: first image
% B: second image
% NSIZE: size of the images
diff = A - B; % difference
diff_sq = diff .^ 2; % difference squared
mse_clmn = mean(diff_sq); % means square diff. of the columns;
mse = mean(mse_clmn);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?