⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mserror.m

📁 本代码经过本人多次调试运行过
💻 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 + -