Histogram Equalization

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

clear all

close all
clc
a = imread('cun.jpg');
a = double(a);
for i = 1:size(a,1)
for j = 1:size(a,2)
for b = 1:3
histeq(i,j,b) = 255*[a(i,j,b)+1];
end
end
end
hist = uint8(hist);
figure
subplot(2,2,1);
imshow(a);
title('Original');
subplot(2,2,2);
imshow(histeq);
title('Histogram Equalization');

You might also like