The advantage of adapthisteq
is that it splits the image into small rectangular areas called tiles, and enhances the contrast of these areas by adjusting their local histograms. This method is also known as
contrast limited adaptive histogram equalization (CLAHE) (Zuiderveld, Karel. Contrast Limited Adaptive Histogram Equalization. Graphic Gems IV. San Diego: Academic Press Professional, 474-485, 1994). Like almost every other MATLAB function, adapthisteq
can be used with only one input (the image), with all other parameters set to default values. Such a usage is shown in the following script, in contrast to the histeq
result:
img = imread('my_image.bmp'); img_eq = histeq(img); img_clahe = adapthisteq(img) subplot(2,3,1),imshow(img),title('Original Image''); subplot(2,3,2),imshow(img_eq),title('Equalized Image'); subplot(2,3,3),imshow(img_clahe),title('CLAHE Image'); subplot(2,3,4),imhist(img,64),title('Original Image Histogram'); subplot...