You are on page 1of 6

Question 1

In the first question the function izoom is capable of zooming the image by any factor assigned to him in the function call. In the return, we will get the zoomed image. The function is: function[y]=izoom(I,m) [R,C]=size(I); a=m*R; y=zeros(a,C); b=1; for i=1:R for j=1:C if(i==m+1) b=b+1; end y(i,j)=I(b,j); end end;

Question 2
In this question firstly we will load the gray scale image and then find its edges. Firstly we have the horizontal edges. With the figure.

The vertical edges are given as:

Question 3 In question 3, we have the speed measurement of the car. Step1 In first step, we will take the car image and find edges. Step2 In the second step, we will again take the car image and find edges. Step3 In this, we will measure the displacement in which the car goes to the second point. Step4 We will measure the instants at which car disappear from one point and move towards another point. Step5

Using the formula of speed of car we have: V=S/T

Question 3 First after encryption we will have the following image:

Again when we will do the encryption then:

NAME

M HASSAN JAVED

ROLL NO

L104536

ASSIGNMENT 1

DIGITAL IMAGE PROCESSING

You might also like