Code covered by the BSD License
function [ out ] = MSE( pic1,pic2 ) %UNTITLED Summary of this function goes here % Detailed explanation goes here e=0; [m n]=size(pic1); for i=1:m for j=1:n e=e+double((pic1(i,j)-pic2(i,j))^2); end end out=e/(m*n); end
Contact us