0% found this document useful (0 votes)
3 views8 pages

Image Processing Lab7

The document provides an overview of image processing techniques using MATLAB, specifically focusing on image histograms, histogram equalization, and histogram matching. It includes code snippets for reading, displaying, and processing images, demonstrating how to enhance image quality and match histograms between images. Key examples include histogram equalization for both grayscale and color images, as well as a method for histogram matching.

Uploaded by

ayhamjahgh
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)
3 views8 pages

Image Processing Lab7

The document provides an overview of image processing techniques using MATLAB, specifically focusing on image histograms, histogram equalization, and histogram matching. It includes code snippets for reading, displaying, and processing images, demonstrating how to enhance image quality and match histograms between images. Key examples include histogram equalization for both grayscale and color images, as well as a method for histogram matching.

Uploaded by

ayhamjahgh
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/ 8

Table of Contents

image histogram ................................................................................................................................. 1


histogram Equalisation ......................................................................................................................... 2
histogram Equalisation for color image ................................................................................................... 4
histogram matching ............................................................................................................................. 6

image histogram
im = imread('pout.tif');
figure,imshow(im)
figure,imhist(im)

1
histogram Equalisation
eq_im = histeq(im);
figure,imshow(eq_im)
figure,imhist(eq_im)

2
3
histogram Equalisation for color image
I = imread('office_2.jpg');
figure,imshow(I)
figure,imhist(I)
eq_im = histeq(I);
figure,imshow(eq_im)
figure,imhist(eq_im)

4
5
histogram matching
ref = imread('office_2.jpg');
I = imread('office_4.jpg');
montage({I,ref})
title('Input Image (Left) vs Reference Image (Right)');
B = imhistmatch(I,ref);
figure,imshow(B)

6
7
Published with MATLAB® R2022a

You might also like