clear all;
close all;

B1=imread('assignment.jpg');
B=rgb2gray(B1);
A1=imread('assignment1.jpg');
A=rgb2gray(A1);
[nb,nb1]=imhist(B);
%figure 
%imhist(B);
[na,na1]=imhist(A);
figure, imhist(A);
figure, imhist(B);
d=(na-nb).^2
e=sqrt(d)/100000;
figure
imhist(e);