function compIms(im1, im2)

A = imread(im1); %read first image
B = imread(im2); %read second image

Ar = A(:,:,1); %red vector for first image
Ag = A(:,:,2); %green vector for first image
Ab = A(:,:,3); %blue vector for first image

Br = B(:,:,1);
Bg = B(:,:,2);
Bb = B(:,:,3);

dr = norm( imabsdiff( double(Ar) , double(Br) ) ); 
dg = norm( imabsdiff( double(Ag) , double(Bg) ) );
db = norm( imabsdiff( double(Ab) , double(Bb) ) );

td = norm( [dr, dg, db] )

end