0% found this document useful (0 votes)
29 views

IMP Assignment 1

This document contains an assignment on image processing given to a student. The assignment has two parts: 1) Use MATLAB to perform histogram equalization on a low contrast grayscale image. Plot the original image, histogram, equalized image, and equalized histogram. Also perform contrast adjustment by specifying the number of bins and document the observations. 2) Mathematically perform histogram equalization on a digital image with 7 gray levels. Plot the original histogram, equalized histogram, and tabulate the results. Describe the significance of histogram equalization from the results.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

IMP Assignment 1

This document contains an assignment on image processing given to a student. The assignment has two parts: 1) Use MATLAB to perform histogram equalization on a low contrast grayscale image. Plot the original image, histogram, equalized image, and equalized histogram. Also perform contrast adjustment by specifying the number of bins and document the observations. 2) Mathematically perform histogram equalization on a digital image with 7 gray levels. Plot the original histogram, equalized histogram, and tabulate the results. Describe the significance of histogram equalization from the results.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Assignment – 1

Image Processing

G Rithik Savio
ECE Department
311121106049
CEC366 – IMAGE PROCESSING

ASSIGNMENT –I
III YEAR/V SEM ECE AY 2023-24

EXPERIENTIAL LEARNING

Outcomes :

CO2 - Operate on images using the techniques of smoothing, sharpening and enhancement.

PO’s mapped :

PO1, PO2, PO3, PO4, PO5,PO10, PO12

Name of the Student :


Reg No :
Course Instructor : Dr.A.Anitha Juliette/Assoc. Prof/ECE

Assignment Given : 14.08.23


Assignment Due : 25.08.23

Assignment Submission Date :

Rubrics for Assessment of Assignment:

Note : Submissions beyond the Due date will not be considered for assessment
Criteria for Assessment Score
(10)

Number Both I & II Both I & Either I or Incorrect ___ / 6


of solved II II solved answers
questions completely solved partially ( 2 to 1
solved ( 6 marks ) partially (3 marks) marks)
(6 marks) ( 4-5 marks
)

Report Well written report Average Poor quality of ___ / 4


( 4 marks) with quality of report
images and report ( 1 marks )
comments ( 3-2
( 4 marks) marks)

TOTAL SCORE
I. Using MATLAB, experiment the following:
1. Choose any low contrast gray scale image
2. Obtain the histogram of the original image
3. Perform histogram equalization
4. Display original image, histogram of original image, modified image,equalized histogram of the
modified image.
5. Perform Contrast adjustment by specifying the number of bins
6. Document all observations and give your comments

Hint : https://in.mathworks.com/help/images/histogram-equalization.html II. Mathematically, perform

Histogram equalization of the digital image given below : Consider an with 7 gray levels

( 0 1 2 3 4 5 6 ). The histogram of this

image is given by:

Plot the original histogram. Apply Histogram Equalization. Tabulate all the results Describe

the significance of histogram equalization from the results.

1) Histogram of an Image
Matlab Code:-
lowconkid = imread("lowconkid.jpg");
figure
subplot(1,3,1)
imshow(lowconkid)
subplot(1,3,2:3)
imhist(lowconkid)

J = histeq(lowconkid);
figure
subplot(1,3,1)
imshow(lowconkid)
subplot(1,3,2:3)
imhist(J)

K = histeq(lowconkid,nbins);

figure
subplot(1,3,1)
imshow(K)
subplot(1,3,2:3)
imhist(K)
i) Histogram Visualization

Original Image Histogram

Observations:-
1) An image histogram is a gray-scale value distribution showing the
frequency of occurrence of each gray-level value. For an image size of
1024 × 1024 × 8 bits, the abscissa ranges from 0 to 255; the total number
of pixels is equal to 1024 × 1024.

ii) Histogram Equalization

Equalized Image Equalized Histogram


Observation:-
1) Histogram equalization is used to enhance contrast. It is not necessary
that contrast will always be increase in this. There may be some cases
were histogram equalization can be worse. In that cases the contrast is
decreased.

iii) Histogram Specification


Illustration 1

Illustration 2
Illustration 3

Observation:-
1) nbin value – it is nothing but the number of frequency bars between
2 Intensity Levels, for Illustration 1 we can observe that due to a low
nbin value of 4 our Image quality is low (low contrast),
2) In the Illustration 2 we can observe that due to nbin value of 15 the
image quality has improved slightly
3) Finally for a higher nbin value we can see that the image has been
returned to its original quality .
Thank You

You might also like