CMP 161 -- Programming Assignment 1
Due date:
10:00am, THUR, 1/24/2002
Objectives:
Implement the
Beier and Neely
field morphing algorithm.
To Do:
-
As usual,
it's best to decompose the problem into smaller chunks.
First,
provide an interface where the user can easily specify
line-pairs using click-drag interactions.
Initially, the same line pair is drawn on both source
and target images.
The user can then modify the line segment in either image.
You may also want to color each line pair differently to
make it easier for the user to edit each line pair later on.
-
Now that you have your line pairs,
it's time to start implementing the algorithm.
Easiest is to assume that there's only one pair of line segments.
-
Then, assume you have the full N line-pairs.
At this point, you may also want to add some more
animation controls like number of frames in between
pairs of images; utility for saving animation;
utility for saving line-pair and image sequence, etc.
Here are some examples of what the output may look like.
Image Files:
-
Mug shots of the class.
Here are the
usual suspects
. Right click to download.
-
Here's some info on how to handle SGI
rgb files
as input images.
Grading.
This program nominally accounts for 6% of your final grade.
We must be able to compile/test your code.
Make sure that
code and accompanying make/project files, etc. must be tested for
successful compilation at least on the suns in the lab. For PC's, we will be
using Visual C++. Also be sure to include a README in your submission as to
which platform to use.
By the way,
if you're your development on PC's,
you should be able to recompile your fltk/opengl code
on the suns
with little or no modifications to your source.
Programs turned in at least a full day early will earn 1% bonus credit. Late
programs will be charged 1% late points. In addition, late programs will not
be accepted 24 hours past due date. Late programs and reports will not be
accepted for the final project. The bonus credits may be accumulated up to a
total of 50% toward program and final project credits. Programs are graded 80%
for functionality and correctness and 20% for style, readability,
documentation/writeup, and efficiency. Additional points may also be earned
for extra features.
Submission.
Submission must be done using the submit or xsubmit utility from CATS.
Run "quickhelp submit" on a CATS machine to find out more info.
- To submit use: submit cmps161-ap.w02 prog1 files
- To verify submission use: peek cmps161-ap.w02 prog1
These commands should work from any cats machine, but if there is a
problem try from teach.ic. Create and submit a subdirectory called
"prog1". It should contain all the files you have in make your
program compile/run.
Last modified
Tuesday, 22-Jan-2019 09:42:15 PST.