I have started learning the Image Processing toolbox of Matlab. My second tutorial was Histogram equalisation.
I downloaded a rice grain image shown below: Now, the following code was used:
I = imread(‘rice.png’) // The image is in the working directory.
The histogram of the image is shown in the figure below:
The image was equalised using the following commands:
I2 = histeq(I);
The equalised histogram is shown below:
An image with an improved contrast was obtained as shown in the image below:
Bingo! The contrast of the image has improved!!!