MATLAB CODE- DIGITAL IMAGE PROCESSING- Histogram Equalization

clc 
close all

mycolourimage = imread('pot.jpg');
mygrayimage = rgb2gray(mycolourimage);
mygrayimage = imsubtract(mygrayimage,60);
subplot(2,3,1);
imshow(mygrayimage);
title('Original Image');

% Find histogram of the Image
%imhist works with only 8 bit images
% Hence convert the image to unsigned 8 bit image and plot the histogram

myimage = uint8(mygrayimage);
subplot(2,3,2);
imhist(myimage);
axis off, axis tight;
title('Histogram of the Image');

% Adjust the intensity of the Image 
subplot(2,3,3);
myadjustedimage = imadjust(myimage,stretchlim(myimage),[]);
imshow(myadjustedimage);
title('Contrast adjusted Image');

% Adjust the Gamma to 0.8 
subplot(2,3,4);
myadjustedgammaimage = imadjust(myimage,[],[],0.8);  
imshow(myadjustedgammaimage);
title('Gamma Adjusted Image to 0.8');

% Histogram equalise  
subplot(2,3,5);
[equalisedimage, T] = histeq(myimage);
imhist(equalisedimage);
axis off, axis tight;
title('Histogram of the Equalized Image');

% Histogram equalise  
subplot(2,3,6);
imshow(equalisedimage);
title('Histogram-Equalized final Image');


MATLAB CODE- DIGITAL IMAGE PROCESSING- Histogram Equalization MATLAB CODE- DIGITAL IMAGE PROCESSING- Histogram Equalization Reviewed by Suresh Bojja on 8/25/2015 08:24:00 AM Rating: 5

Subjects & Labs

AC (6) ADS (2) ATMEL (6) AWP (5) C- Language (3) CAO (5) CDAC (1) Cloud Computing (1) CMC (6) CN (10) CONSERVATION & MANAGEMENT Complete Notes (1) Control Sys (2) CVSM (2) Data Analytics (1) DC (5) Digital System Design (3) DIP (17) DLD (10) DLD Lab Manual (1) DS (4) DSD&DICA (9) DSP (6) EDC (45) Electonic Components (2) Embedded (7) EMWTL (6) ENERGY AUDIT (1) Engg. Mechanics (2) Engg.Chemistry (11) Faculty Files (6) Faculty Labs (1) Fuzzy (3) II MID (1) Job Exam Papers (4) LICA (1) Linux OS (1) Materials (1) MATLAB (27) MCU IDE 8051 (1) MEMS (4) MPMC (57) MPMC LAB Manual (3) MTECH (6) MWE (2) OC (1) PDC (9) Projects (8) RADAR (1) Research (9) RVSP (3) SC (1) Softwares (1) SS (1) STLD (18) TCSS (1) TSSN (1) TV Engg (1) VHDL (4) VLSI (8) VLSI Lab manual (1) WCN (1) Wireless Commu. (1) WSN (2)

Contact Form :

Name

Email *

Message *

Theme images by enjoynz. Powered by Blogger.