X = imread('pout.tif');
Y = histeq(X);
Z = adapthisteq(X, 'NumTiles', [8 8]);
figure
imshow(X)
title('Original image');
figure
imshow(Y)
title('Histogram equalization');
figure
imshow(Z)
title('Adaptive histogram equalization');
