function [total] = pixdiffnorm(a,b);
data_rgb1 = imread(a);
data_rgb2 = imread(b);
R1 = double(data_rgb1(:,:,1));
G1 = double(data_rgb1(:,:,2));
B1 = double(data_rgb1(:,:,3));
R2 = double(data_rgb2(:,:,1));
G2 = double(data_rgb2(:,:,2));
B2 = double(data_rgb2(:,:,3));
R = (R1 - R2).^2;
G = (G1 - G2).^2;
B = (B1 - B2).^2;
sumR = sum(sum(R,1),2);
sumG = sum(sum(G,1),2);
sumB = sum(sum(B,1),2);
total = sqrt(sumR + sumG + sumB);
return;