function [final_sum] = pixel(filea,fileb);
data_rgb1 = imread(filea);
data_rgb2 = imread(fileb);

x1 = double(data_rgb1(:,:,1));
y1 = double(data_rgb1(:,:,2));
z1 = double(data_rgb1(:,:,3));
x2 = double(data_rgb2(:,:,1));
y2 = double(data_rgb2(:,:,2));
z2 = double(data_rgb2(:,:,3));
     
x = (x1 - x2).^2;
y = (y1 - y2).^2;
z = (z1 - z2).^2;

sumx_col = sum(x,1);
sumx = sum(sumx_col,2);

sumy_col = sum(y,1);
sumy = sum(sumy_col,2);

sumz_col = sum(z,1);
sumz = sum(sumz_col,2);

final_sum = sumx + sumy + sumz;

final_sum = sqrt(final_sum);

return;
