Friday, 27 November 2015

HISTOGRAM EQUALIZATION TO ENHANCE THE CONTRAST OF AN IMAGE USING MATLAB


Query=> How to enhance contrast of image using histogram equalization in MATLAB?...

Ans=> To enhance contrast using histogram equalization we have to use the syntax “histeq”...An example is given below for reference...

a=imread('cameraman.tif');        %reading an image
b=histeq(a);                      %taking complement
figure,                           %opening figure window
subplot(1,2,1),subimage(a);title('original image');              %display gray image
subplot(1,2,2),subimage(b);title('hist equalized image');        %display histeq 
 image



 FOR MORE DETAILS
                  click here


No comments:

Post a Comment