MATLAB - Image histograms



i= imread('Z:\landsat 2010\a-jan2010.jpg');
h=imadjust(i,stretchlim(i));


f = figure
set(f,'name','2010  satellite image','numbertitle','off')



subplot(5,5,1)

imshow(i)
title('Jan - 2010')
subplot(5,5,2)
imhist(h(:,:,3))
title('Histogram of Red Band')

subplot(5,5,3)
imhist(h(:,:,2))
title('Histogram of green Band')
subplot(5,5,4)
imhist(h(:,:,1))
title('Histogram of blue Band')
j = decorrstretch(i, 'Tol', 0.01);
subplot(5,5,5)
imshow(j)
title('Truecolor Composite')


i= imread('Z:\landsat vellore2010\b-feb2010.jpg');
subplot(5,5,6)
imshow(i)
title('Feb - 2010')
h=imadjust(i,stretchlim(i));
subplot(5,5,7)
imhist(h(:,:,3))

subplot(5,5,8)
imhist(h(:,:,2))

subplot(5,5,9)
imhist(h(:,:,1))

j = decorrstretch(i, 'Tol', 0.01);
subplot(5,5,10)
imshow(j)



i= imread('Z:\landsat vellore2010\c-mar2010.jpg');
subplot(5,5,11)
imshow(i)
title('Mar - 2010')
h=imadjust(i,stretchlim(i));
subplot(5,5,12)
imhist(h(:,:,3))

subplot(5,5,13)
imhist(h(:,:,2))

subplot(5,5,14)
imhist(h(:,:,1))

j = decorrstretch(i, 'Tol', 0.01);
subplot(5,5,15)
imshow(j)



i= imread('Z:\landsat vellore2010\d-apr2010.jpg');
subplot(5,5,16)
imshow(i)
title('April - 2010')
h=imadjust(i,stretchlim(i));
subplot(5,5,17)
imhist(h(:,:,3))

subplot(5,5,18)
imhist(h(:,:,2))

subplot(5,5,19)
imhist(h(:,:,1))

j = decorrstretch(i, 'Tol', 0.01);
subplot(5,5,20)
imshow(j)




i= imread('Z:\landsat vellore2010\e-may2010.jpg');
subplot(5,5,21)
imshow(i)
title('May - 2010')
h=imadjust(i,stretchlim(i));
subplot(5,5,22)
imhist(h(:,:,3))

subplot(5,5,23)
imhist(h(:,:,2))

subplot(5,5,24)
imhist(h(:,:,1))

j = decorrstretch(i, 'Tol', 0.01);
subplot(5,5,25)
imshow(j)