Solved–Homework #2 –Solution

$30.00 $19.00

Problem 1 (40 pts): Given the following marker and its three images, you are asked to calculate the homography matrix such that [ ] = [ ] [ ] and use it for some simple tasks. 1 ℎ 1 1.1. Write a C# function that given a set of point correspondences [ ] and […

You’ll get a: . zip file solution

 

 
Categorys:
Tags:

Description

5/5 – (2 votes)

Problem 1 (40 pts): Given the following marker and its three images, you are asked to calculate the

homography matrix such that [ ] = [

] [ ] and use it for some simple tasks.

1

1

1.1. Write a C# function that given a set of point correspondences [ ] and [ ] calculates the corresponding homography matrix.

1.2. Write another C# function that given a scene point [ ] and a homography matrix, calculates the projection of the given point onto the target image.

1.3. Write another C# function that given an image point [ ] and a homography matrix, calculates

the projection of the given point onto the scene.

1.4. You are to find at least five point correspondences manualy. Show the calculated matrices for each image using these point matches. Calculate the error for another 3 point matches you identify. Error can be calculated as the Euclidean distance between the image of the point and the projected image. Use the following coordinate system for the scene.

y

700

x

900

Input images: Homework_2_img1.jpg, Homework_2_img2.jpg, Homework_2_img3.jpg

1.5. Find the projection of the following scene points onto the image.

1 = [75..55], 2 = [63..33] and 3 = [00..11].

1.6. Find the projection of the following image points onto the scene.

= [500], = [ 86 ] and = [10].

1 400 2 167 3 10

Problem 2 (60 pts): Given a scene in 19 images (an example is shown below), place a cylinder of radius 2cm and height 15cm on the white object at the end of the cables. The center of the bottom face of the cylinder should be at the center of the red dot). As a reference you have the USB connectors which can be used to get the right dimensions of the scene. You should do this placement on all the images given in the set. The placement geometry calculation can be done off-line (you should explain how you have done it and why you have done it that way), but projection should be done programatically.

Handin you code and results in a report document (pdf).