www.pudn.com > Arnold.rar > erms.m, change:2014-07-11,size:203b


% MSE = E( (img-Eimg)^2 )  
%     = SUM((img-Eimg)^2)/(M*N); 
function ERMS = erms(f1, f2) 
%计算f1和f2均方根误差 
e = double(f1) - double(f2); 
[m, n] = size(e); 
ERMS = sqrt(sum(sum(e.^2))/(m*n));