Code covered by the BSD License  

Highlights from
Image Quality Measures

image thumbnail
from Image Quality Measures by Athi
Image quality measures are calculated for a distorted image with reference to an original image

MaximumDifference(origImg, distImg)
%Program for Maximum Difference Calculation

%Author : Athi Narayanan S
%M.E, Embedded Systems,
%K.S.R College of Engineering
%Erode, Tamil Nadu, India.
%http://sites.google.com/site/athisnarayanan/
%s_athi1983@yahoo.co.in

function MD = MaximumDifference(origImg, distImg)

origImg = double(origImg);
distImg = double(distImg);

error = origImg - distImg;

MD = max(max(error));

Contact us at files@mathworks.com