

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A problem set for a computer graphics course, focusing on 3d point projection using matlab. Students are required to write functions for perspective and weak perspective projection, test the functions, and analyze the image difference between the two. They will also explore the effect of distance on the accuracy of weak perspective projection. Additionally, there is a pen and paper exercise on perspective and a reflection exercise.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Due: Tuesday, February 18, 2003, 11:00, at the start of class. Readings: Forsyth & Ponce: Chapter 1 (you need not follow all equations in 1.2), Chapter 4 (all), Chapter 5 (sections 5.1, 5.2, and 5.3). The programming in this assignment may take a while. Please don’t wait till the night before, especially if you’re unfamiliar with Matlab, and may need to ask questions.
function axis may also be helpful. You should show projections of different objects or different projections of the same object by using different shapes or colors with plot. Label everything. e. Image Difference: Write a function to compute the sum of square differences (SSD) between two sets of image points. That is, for point sets: ( p 1 , , p n ), ( q 1 ,, qn ) compute: 2 1
n i p i qi. Test it on the images generated in parts b and c. f. Write a function that takes an object and translates it further and further away from the camera. Decide how to measure the distance from the object to the camera and document your choice. For ten different distances, compute the SSD between O ’s projection using perspective and its projection using weak perspective. Make a plot showing how the SSD varies with the distance to the camera. Before plotting, try the command: plot([1,2,3], [5,3,7],'o’,'LineWidth',3). g. Write-up: Write about half a page describing your experiment and what it tells you about the accuracy of the weak perspective approximation to perspective projection. In your experiment you measured error as distance varied. What other factors might you vary in future experiments? Turn in all code written, the plots from parts d and f , and the write-up from part g.