Aim: To perform histogram equalization of an image
Operating System: - Windows XP
Software: - Matlab 7.5, Image Processing Toolbox.
Program:
clc;
clear all;
close all;
f=imread('coins.png');
figure, imshow(f);
title('input image');
h=imhist(f);
h1=h(1:10:256);
horz=1:10:256;
figure, bar(horz,h1);
figure, plot(horz,h1);
title('histogram equalized image');
Result:
0 comments:
Post a Comment