Sei sulla pagina 1di 1

ICS 2412:-DIGITAL IMAGE PROCESSING ASSIGNMENT

PART A
INSTRUCTIONS: In groups of three members attempt the following practical questions. You need
MATLAB installed in your computers
Each question attracts 10 marks. There will be a group presentations on 29/10/2019 during class time.

a) (i)Write Matlab code for Sobel operator with 3x3 sized window and run the program on an image
of your choice, and compare the result with that of the Sobel filter function in Matlab.
(ii) Write Matlab code for Laplacian operator with 3x3 sized window and run the program on an image of
your choice and compare the result with that of the Laplacian filter function in Matlab.
(iii) Compare the result of Sobel with that of Laplacian from your program results.
b) Write Matlab code for the following and capture the input and the processed outputs in the process,
and use them in the report.
(i) First, read any color image file you took yourself (smartphone) and make a gray image. Take the
image negative transformation and display it. Describe what happens with your image.
(ii) Then, take a log transformation and the power law transformation of gamma=5.0 and explain the
results.
c) Kenyan national flag has four colors (all colors are at maximum intensity and saturation).
(i)Sketch each RGB component image as the flag would appear on a monochrome monitor.
(ii)Sketch each CMY component image as the flag would appear on a monochrome monitor.
d) (i) Write your own Matlab code to convert RGB to HIS, and compare it with the color conversion
function in the Matlab
(ii) Generate the following 512 x512 RGB color image and convert the generated image to HSI. Blur the H
component with 21x21 averaging filter and convert the image back to RGB. Repeat the same process to the S
component and the I component, respectively. Discuss the three results on the images.

RED GREEN
BLUE RED

PART B
INSTRUCTIONS: Attempt the following questions individually. The assignment will be submitted on
22/10/2019 after class. Each question attracts 10 marks

a) Describe in detail the histogram equalization steps for the small image (input image) below and draw the
output image and its histogram manually. What happens with the input image and its histogram?

0 0 1 2
1 0 1 0
2 2 0 0
5 1 7 7
b) Some 256 gray level images sized 1024x1024 should be sent to another place through a digital transmission
system. The transmission measure for digital data is baud rate which is the number of the bits transmitted per
second. Information is transmitted in packets which consists of a start bit, a byte information and a stop bit.
(i) If we use a 192kbps DSL (digital subscriber line) connection, how many minutes would it take to send
it?
(ii) If the same sized truth color (24 bit) images should be transmitted through a 1Mbps DSL connection,
how many images can we transmit in a second?
c) A man took a picture of a tree located 5m away by his digital camera. The camera has CCD sensor of
8x8mm, and having 1024x1024 elements. It has 35mm lens. He recognized that the height of the tree image
occupied 256 pixels on the camera display. How tall is the tree approximately?

Potrebbero piacerti anche