📄 mserror.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -