Docsity

Programming Assignment 2 - Computers and Vision I | CAP 5416, Assignments of Computer Science

Toggle sidebar
bg1
CAP5416: Programming Assignment #2, Due Date:11/14/04
You should turn in well documented C-code or MATLAB code for the fol-
lowing programs as well as a report containing a discussion of your finidings and
display of your results. You will also send the code electronically to the TA.
Code without documentation will NOT be graded. You should also submit a
hard copy of your results, where you show 4 images of each example, the first
of which will be the intialized snake within the image, the second and third
should be intermediate stages of evolution of the snake and the last should be
the converged state of the snake.
1. Develop code for a “snake” along with a balooning force, edge-based forces
and the curvature-based forces (termination conditions in the paper). You
are expected to interpolate the discrete force-field in all the three types
of aforementioned external force fields. In your code, use a sparse storage
scheme to store the coefficient matrix of the linear system that needs
to be solved and write efficient code. Test your code on (a) the image
of UF School mascot (take an uncluttered image from the web) (b) any
closed shape/curve in an image. Write a small user interface in Matlab or
any other language of your choice (OPENGL) that allows you to switch
between each type of force field interactively as well as allows the user to
interact with the snake in other ways for e.g., apply mouse based forces.
You will be given a short 3 min. time slot to demo your program to me
during office hrs. on the due date. Bring your laptop to show the demo.
If you don’t have a laptop, bring your code+exec. on a USB.
1

Partial preview of the text

Download Programming Assignment 2 - Computers and Vision I | CAP 5416 and more Assignments Computer Science in PDF only on Docsity!

CAP5416: Programming Assignment #2, Due Date:11/14/

You should turn in well documented C-code or MATLAB code for the fol- lowing programs as well as a report containing a discussion of your finidings and display of your results. You will also send the code electronically to the TA. Code without documentation will NOT be graded. You should also submit a hard copy of your results, where you show 4 images of each example, the first of which will be the intialized snake within the image, the second and third should be intermediate stages of evolution of the snake and the last should be the converged state of the snake.

  1. Develop code for a “snake” along with a balooning force, edge-based forces and the curvature-based forces (termination conditions in the paper). You are expected to interpolate the discrete force-field in all the three types of aforementioned external force fields. In your code, use a sparse storage scheme to store the coefficient matrix of the linear system that needs to be solved and write efficient code. Test your code on (a) the image of UF School mascot (take an uncluttered image from the web) (b) any closed shape/curve in an image. Write a small user interface in Matlab or any other language of your choice (OPENGL) that allows you to switch between each type of force field interactively as well as allows the user to interact with the snake in other ways for e.g., apply mouse based forces. You will be given a short 3 min. time slot to demo your program to me during office hrs. on the due date. Bring your laptop to show the demo. If you don’t have a laptop, bring your code+exec. on a USB.