Friday, 24 May 2013

MATLAB code of Image Negation and Image Enhancement using Histogram Equilization.

Image Negation:

The negative point transformation function also known as contrast reverse. The negative transformation is used to make the output more suitable for the task at hand (e.g., by making it easier to notice interesting details in the image).

Where‘s’ is Output image after transformation
L-1 is Maximum Pixel value
r is Input Image.

Fig: Negative Image Transformation

This kind of transformation used for finding details in X-ray Images. It will gives white details in black area and black details in white area.

Histogram Equalization: 

Histogram equalization is a technique by which the gray-level distribution of an image is changed in such a way as to obtain a uniform (flat) resulting histogram, in which the percentage of pixels of every gray level is the same. To perform histogram equalization, it is necessary to use an auxiliary function, called the transformation function, T (r). Such transformation function must satisfy two criteria
1. T (r) must be a monotonically increasing function in the interval 0 r L 1.
2. 0 T (r) L 1 for 0 r L 1.
The most usual transformation function is the cumulative distribution function
(cdf) of the original probability mass function, given by

where sk is the new (mapped) gray level for all pixels whose original gray level used to be rk.
Histogram equalization is used for increasing contrast of an image. This can be achieved by using histogram stretching operation.

Implementation of both Techniques in MATLAB:
Following figure shows you MATLAB implementation of Image Negation and Histogram Equalization method

Download Respective Published paper on Histogram Equalization and Image Negation: 
Download Matlab Code for Image Negation and Histogram equalization from following link:

Download Video from following link, it will gives you idea about how to RUN that matlab code:

 Video of the above MATLAB Implementation is as follows:

Note: Play only in windows media player...


  1. Hey, mr. i'm very interest with this project. Can u send me the paper and matlab code. I also try to download on this link. But, just reload and reload again.

    Iam very thanksfull, if u wanna send it to me
    God bless u :)

    1. Ok bro.....I will send it to you on your mail ID...

    2. Good Project! Can you send me the code of this project...I am very thanksfull!

  2. i need simple code how to select image in gui of matlab and then open it in axes with its original size?

  3. You just visit following will get your answer

  4. can you send me a project about image enhancement on

  5. can you send me tha EXPLANATION: of this code

  6. can you send me a project about this code

  7. You have a good project, and I`m so interest about it. I want to learn about that project, so, can you send paper and matlab source code to my email address, please ? This is my email address :
    Thank you.

  8. hey, the project is nice. Unfortunately, the link you have provided does not provide the source code. Please send me the link for the code so that i can study and use as a reference for my project. The email id is

  9. hi sir,i want matlab code of this project.please send me the code of this project...
    my email address

  10. hi,i want matlab code of this project.please send me the code of this project...
    my email address thanks

  11. Sir the code is not available. Please if you can provide it. My address is I'll be very thankful

  12. Hai sir will yu plz send this code to my mail

  13. hi mr.ARJU NICHAL
    I saw your video on YouTube (about compression jpeg) named "matlab implementation of jprg2000 compression standard" and I have sent an email to you but I have got nothing so really I need MATLAB code for this Project it will be kind of you if you send it to me and thanks this is my mail address 

  14. Hi sir, im new to matlab.can i get the code for this project? Thank you so much.
    my email:

  15. hi sir can email me your matlab code?

  16. Asala mo alikum.sir plz send me this code.the web site is not opening .,my gmail id is this: