Competition (Due 11/30 @ 11:59:59 PM)
Optimize your depth map generator using any techniques you know. Please remember, that the code provided is not a guarantee of correctness and we expect you to test your code yourself. Code that is incorrect will be disqualified from the competition.
The submissions with the highest performance will receive extra credit (including EPA) and winners will be annnounced in class. We will be running your code on a variety of images and features of various different sizes, which are not guaranteed to be similar to those in benchmark.c
.
Getting started
The only file you need to modify and submit is calcDepthOptimized.c
.
The rest of the files are part of the framework. A description of these files is provided below, as a reminder. It may be helpful to look at and modify some of the other files to more thoroughly test your code.
Makefile
: Defines all the compilation commands.check.c
: TestscalcDepthOptimized
on various size randomly generated inputs and compares the results withcalcDepthNaive
.benchmark.c
: TestscalcDepthOptimized
on increasingly large images and reports the speedup between Naive and Optimized.depthMap.c
: Loads bitmap images and calls calcDepthOptimized() to quickly calculate the depth map.utils.c
: Defines bitmap loading, printing, and saving functions along with other utilities.test/
: Contains the a set of images for testing. You can run your code on these images with depthMap.
Test your changes by compiling your files with make
and running the benchmark
or check
executable.
make ./check ./benchmark
Submission
Competition submissions are due Monday 11/30 @ 11:59:59 PM. Late submissions will not be accepted, and please make sure only ONE partner submits. To submit proj3-competition, enter in the following:
submit proj3-competition