![]() |
CSC320 Visual Computing
|
| Due: | Submit by: Feb 28 at 11:50 PM |
|---|---|
| Late penalty: | 20% for up to 48 hours late, not accepted after that. |
| Hand in: | Submit electronically here. |
| Marking: | Simple, clear, concise is best. It reflects the application of the right, good ideas. Take a look at my code marking scheme and marking scheme. |
| Groups: | Work in groups of 2 |
| Environment: | We will test your code under cslinux or systems in 1158 under Linux or in CC2140. |
Please read the Questions and Answers Section at the bottom!!
For this assignment, you will expand the capabilities of the Assignment 1, question 1. You can choose to use yours, your partners or someone elses A1 question 1. You must state whose you have used.
Eric N. Mortensen and William A. Barrett, "Intelligent Scissors for Image Composition", Proc. SIGGRAPH'95, Los Angeles, CA, 1995, pp. 191-198Your interface should be similar to the scissoring interface in the gimp. You should aim to have a live wire generated while you move your mouse. The live wire connects your last control point to the current mouse position.
Implement up to (and including) section 3.3 of the paper except, use the LoG instead of the Laplacian for fz in section 3.1. You should have a default Sigma, but also allow the user the option of specifying a Sigma.
Note that the Mortensen paper applies to greyscale images. Your application will work on colour images. One possibility is to first turn your colour image into a greyscale image (as in question 1) and then apply the technique there. An alternative would be to modify the definitions of l(p,q), fZ, fG, fD in section 3.1 so that they somehow apply to colour images.
A word of advice, as I have done for you in question 1, it is best to start with something simple that works. Do simple things first, get them working 100% and build on that. For example, you might want to use a simpler algorithm for 3.2 (all pairs shortest paths is simple). Worry about implementing 3.2 later. You might want to make your system work on greyscale images only to start. You might want to avoid Cursor Snap (end of 3.3) for starters. See extra features below. I also suggest that you maintain an architecture document. This ensures that you understand what you are trying to build and how the pieces fit together.
The class will vote on the best composition.