Starting from:

$25

EE5175-Lab 1 Solved

A. Geometric Transforms
1.   Translate the given image (lena_translate.pgm) by (tx=3.75,ty=4.3) pixels.

2.   Rotate the given image (pisa_rotate.pgm) about the image centre, so as to straighten the Pisa tower.

3.   Scale the given image (cells_scale.pgm) by 0.8 and 1.3 factors.

B. Occlusion detection
Given are two aerial images (IMG1.pgm, IMG2.pgm) of an airport parking bay. These images were captured using two cameras placed at different locations and at different instants of time but overlooking the same area. It is known that the images are related by an in-plane rotation and translation. The following point correspondences are given:

Correspondence
IMG1 (x, y)
IMG2 (x, y)
1
(125,30)
(249,94)
2
(373,158)
(400,329)
Determine the changes in IMG2 with respect to IMG1.

 

NOTE : Use bilinear interpolation during target-to-source mapping.

NOTE for occlusion detection : Co-ordinate convention followed to represent the above points,

1.    Origin (1,1) at top left corner of the image

2.    x-axis = along the columns of the image

3.    y-axis = along the rows of the image

How to read and write pgm images in Scilab?

1.   demo.sci : demo file that shows how to read images into Scilab, write images to a file and display the image files from Scilab.

2.   pgmread.sci : the file that contains functions to read (pgmread) and write (pgmwrite) the images. Please use this function in subsequent assignments also.

3.   To execute a file (say, file.sci), type the following in Scilab command window:

cd ’PATH’ // where PATH is the location of the file exec file.sci

More products