IMP Assignment 1
IMP 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 :
Note : Submissions beyond the Due date will not be considered for assessment
Criteria for Assessment Score
(10)
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
Histogram equalization of the digital image given below : Consider an with 7 gray levels
Plot the original histogram. Apply Histogram Equalization. Tabulate all the results Describe
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
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.
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