Histogram Maching
Table of Contents
First Image ........................................................................................................................
Histogram of matched image ................................................................................................
Matched image ..................................................................................................................
Second Image ....................................................................................................................
Histogram of matched image ................................................................................................
Matched image ..................................................................................................................
First Image
a = imread('Sat_512_512.jpg');
hist_a = histo(a);
cdf_sc = hist_equal(a,hist_a);
for i = 1:512
for j = 1:512
a(i,j) = (norminv((cdf_sc(a(i,j)+1)/255),122,30));
end
end
Histogram of matched image
hi = histo(a);
x = 0:255;
plot(x,hi);
1
1
2
3
3
4
Histogram Maching
Matched image
imshow(a);
Histogram Maching
Second Image
a = imread('Sat2_512_512.jpg');
hist_a = histo(a);
cdf_sc = hist_equal(a,hist_a);
for i = 1:512
for j = 1:512
a(i,j) = (norminv((cdf_sc(a(i,j)+1)/255),122,30));
end
end
Histogram of matched image
hi = histo(a);
x = 0:255;
plot(x,hi);
Histogram Maching
Matched image
imshow(a);
Histogram Maching
Published with MATLAB 7.14