Matlab – imadjust, histeq, adapthisteq and Image Histogram


This post will describe the use of imadjust, histeq and adapthisteq in image processing. Basically these three matlab command will give different results in adjusting image based on their method of adjusting an image. Imadjust to adjust the intensity values or colormap. Histeq to enhance contrast using histogram equalization while adapthisteq to contrast-limited adaptive histogram equalization (CLAHE). From all these three command, you can see the different of result image or their output between them when you execute the command. You can see how different type of image adjustment will give different result of an image.

In addition i will include another command which is imhist to display histogram of an image so you can clearly see the different between the three images with the original image based on histogram view of the image.

Below is simple matlab command so that you can see the different between those three and with the original image. You may also understand how we can use imadjust, histeq and adapthisteq command.



imadjust, histeq, adapthisteq

This matlab command will results in four image from figure 1 to figure 4. Figure 1 will show the original image, figure 2 is resulting image from imadjust command, figure 3  is output of histeq command and figure 4 will display original image after the usage of adapthisteq command.

If you execute the command above you can see the different on each of the images However, to make this more clear, i will provide you with another command which is imhist. The purpose of imhist is to display histogram of image data. With imhist command, you can see the output of each image in histogram view.

Continue Matlab command above with Matlab command below


With this command, you will be able to see the histogram view of each imadjust, histeq, adapthisteq and original image.


That’s all. Thank You


Sharing is Caring

Leave a Reply

Your email address will not be published. Required fields are marked *