B1=imread('assignment.jpg');
B=rgb2gray(B1);
B=immultiply(B,1.5);
A1=imread('assignment1.jpg');
A=rgb2gray(A1);
A=immultiply(A,1.5);
c1=imsubtract(A, B);
c=immultiply(c,c);
c=double(c);
c=sqrt(c);
subplot(2,2,1); 
imshow(B);
subplot(2,2,2);
imshow(A);
subplot(2,2,3);
imshow(c1);
subplot(2,2,4);
imshow(c);