You are on page 1of 1

BITS-Pilani, K. K.

Birla Goa Campus


Digital Image Processing (EEE F435)
Test-1, Semester-I (2020-21)
Date: 15/9/2020 Duration: 30 Minutes
Maximum marks: 30 Time: 9.05 AM-9.35 AM

Note: Upload a single word file (e.g. 2016B3A80390G.doc or 2016B3A80390G.docx) containing the
handwritten solution screenshot of Q.1 ; and working codes and result screenshots for MATLAB
questions.

Q.1. Imagine a 64 x 64 image with 4 gray levels. The gray levels are 0,1,2,3 and corresponding number of
pixels are 1813, 1506, 574 and 303 respectively. Apply histogram equalization to achieve a contrast
enhanced image. What will happen if the histogram equalization is applied again on the resultant image?
[6]

Q.2. Write a MATLAB program to apply 5 x 5 averaging filter on the image ‘peppers.png’ after gray
conversion. Compare the result of using zero padding and boundary pixel replication with original image.
Display all three images in a single figure window with captions. [without fspecial() and imfilter()] [8]

Q.3. Write a MATLAB program to reduce the size of image ‘cameraman.tif’ using imresize() to 128 x
128 from 256 x 256. Then create an approximately double size (256 x 256) image from the reduced size
image, by placing average of consecutive pixels in the blank locations (without using direct inbuilt
function imresize()). Display all three images in a single figure window with captions. [8]

Q.4 Write a MATLAB program to create an image of size 256 x 256 with three concentric annular discs
(20 pixel wide strips) with starting radius and intensities 60, 80, 100 respectively. The background in
image can be purely black. Display the image. [Hint functions : mat2gray(), im2uint8(), uint8()] [8]

You might also like