Histogram equalisation using Matlab

I have started learning the Image Processing toolbox of Matlab. My second tutorial was Histogram equalisation.

I downloaded a rice grain image shown  below: Rice grain image before equalisationNow, 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:

Histogram of ImageThe image was equalised using the following commands:

I2 = histeq(I);

figure, imhist(I2)

The equalised histogram is shown below:

Histogram EqualisationAn image with an improved contrast was obtained as shown in the image below:

aftereqBingo! The contrast of the image has improved!!!


3 Responses to Histogram equalisation using Matlab

  1. Srihari says:

    Looks very interesting. Keep posting your discoveries!

  2. Hi there to every one, the contents present at this web page are actually
    awesome for people experience, well, keep up the nice
    work fellows.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: