cd D:\Courses\Image\Website
diary('example1');
[a,map]=imread('darkimage.jpg');
imshow(a)
aa = rgb2gray(a);
imhist(aa)
b=histeq(aa);
imshow(b);
pause
%
[x,map]=imread('blackbird.jpg');
imshow(x);
xx=rgb2gray(x);
imshow(xx);
pause
%
imhist(xx);
i=imhist(xx);
y=histeq(xx);
figure(2);
imshow(y);
pause
%
c=histeq(aa,i);
d=adapthisteq(aa);
imshow(aa)
figure
imshow(c)
figure
imshow(d)
%
ha=imhist(aa);
hb=imhist(b);
hc=imhist(c);
hd=imhist(d);
subplot(2,4,1), imshow(aa)
sunplot(2,4,2), imshow(b)
subplot(2,4,3), imshow(c)
subplot(2,4,4), imshow(d)
subplot(2,4,5), plot(ha)
subplot(2,4,6), plot(hb)
subplot(2,4,7), plot(hc)
subplot(2,4,8), plot(hd)
