0% found this document useful (0 votes)
60 views5 pages

Histogram Maching: First Image

The document discusses histogram matching on two images. It performs histogram equalization on each image to match their histograms and displays the matched histograms and images.

Uploaded by

Rohan Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views5 pages

Histogram Maching: First Image

The document discusses histogram matching on two images. It performs histogram equalization on each image to match their histograms and displays the matched histograms and images.

Uploaded by

Rohan Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

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

You might also like