function error = GetError(image1, image2) % function error = GetError(image1Red, image1Green, image1Blue, image2Red, image2Green, image2Blue). % This function gets the difference between the two images... Squared sum % of errors. % Author : Sasakthi Abeysinghe, Timothy Simpson % Date : 04/05/2006 error = sum(power(double(image1(:) - image2(:)),2));