EE1390 Introduction to Image Processing Computer Project #1 (Due Date by 5:00 PM, Monday, September 26 )

breezebongΤεχνίτη Νοημοσύνη και Ρομποτική

6 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

80 εμφανίσεις

EE1390 Introduction to Image Processing


Computer Project

#1


(Due Date by 5:00 PM,
Monday, September 26
th
)


1)
-
Zooming and Shrinking Images by Pixel Replication



(a) Write a
Matlab

program capable of zooming and shrinking an image by pixel
replication. A
ssume that the desired zoom/shrink factors are integers.


You may ignore
aliasing effects.



(b)
Download
flower
.jpg
and use your program to shrink the image from 1024 x 1024
to 256 x 256 pixels.

(c) Use your program to zoom the image in (b) back to 1024 x

1024.


Explain the
reasons for their differences.

2)
-
Zooming and Shrinking Images by Bilinear Interpolation



(a) Write a
Matlab

program capable of zooming and shrinking an image by bilinear
interpolation. The input to your program is the desired size of
the resulting image in the
horizontal and vertical direction.


You may ignore aliasing effects.

(b)
Download
flower
.jpg

and use your program to shrink this image

from 1024 x 1024
to 256 x 256 pixels.

(c) Use your program to zoom the image in (b) back to 1
024 x 1024.


Explain the
reasons for their differences.

3)
-
Projection on Image Plane


Consider a camera with the origin of the image plane located at (x
a
0
, y
a
0
, z
a
0
) with reference
to world coordinates as shown in the above figure. The camera access pass
es through a point
(x
a
c
,y
a
c
,
z
a
c
) in world coordinates. The lens center is located at a distance "f" from the origin
of the image coordinates along the z
c

direction.


Now consider a
n imaging system
with
the following specifications:
-



U
nit cube
with
one of
it's corners located at the o
rigin and three of its edges along the
positive x
a
, y
a
, z
a

directions.



An image plan
e
with the
origin located at (10,
1
0,10)



A
camera
with an f =3
pointing towards (0,0,0).



Coordinates of each vertex :

0 0 0; 0 0 1; 0 1 0; 1

0 0; 1 1 1; 1 1 0; 1 0 1; 0 1 1;



Connected vertices:

1 2, 1 3, 1 4, 5 6, 5 7, 5 8, 2 7, 2 8, 3 6, 3 8, 4 6, 4 7


Write a
Matlab
program which will generate the image formed on the image place. Assume
that the cube is transparent (i.e. don't be concerned
with hidden lines). The image plane is
limited in extent to +1 and
-
1 along both x' and y' directions. Rescale the image to a 256 x
256 image.


Your output needs to include images for the cube at the origin, cube on the image plane, re
-
scaled image of the
cube.