CS 663 : Assignment-Submission Instructions
For Each Question Do the Following :
Generate a report describing your ndings and images / graphs. The report should be in electronic
format (pdf / odt / html / doc).
Submit the images generated by your code in a lossless electronic format, e.g., as mat les, that can
handle negative and real numbers.
Submit your code and a readme.txt le that describes how to run the code. Structure your code so
that it can be run and tested easily by the evaluator.
The images generated by your code must match the images that you submit as part of your report.
Directory and File Structure for the Submission :
Submit a zip le, via http://moodle.iitb.ac.in, with a name that includes the roll numbers of all
members of the group, separated by underscores, e.g. 123_132_321.zip.
The zip le must contain a numbered folder for each question in the assignment; so, if there are 2
questions, then there should be 2 folders named 1 and 2. The zip le must be smaller than 20
MB for moodle to accept the submission.
Within each of these folders, i.e., for every question, include a readme.txt le and 3 subfolders named
report, images, and code to organize the corresponding les.
If using Matlab, submit each image as (part of) a mat le; the le-name prex should be same as the
image name. Do NOT submit entire Matlab workspaces that contain data structures NOT asked for
in the question.
Regarding the code, include a le named myDriver.m that generates all images / plots / numbers
required for the question.
Ensure that the code is well documented to receive partial credit, if need be. Use meaningful and
self-explanatory names for variables and functions, even if they are long.
Example of Directory Structure within .zip File :
1/readme.txt
1/report/report.pdf
1/images/myImageA.mat
1/images/myImageB.mat
1/code/myDriver.m
1/code/myFunctionA.m
1
1/code/myFunctionB.m
2/readme.txt
2/report/report.html
2/report/myImage.png
2/images/myImage.mat
2/code/myDriver.m
2/code/myFunction.m
Instructions on Generating Images (tiff / png) for the Report :
You can use the exportg program to automatically capture the contents within the gure window
in Matlab as an image. See:
http://www.mathworks.in/matlabcentral/leexchange/23629-exportg
https://github.com/ojwoodford/export_g
Never use lossy compression while generating images for the report. Do use lossless compression,
whenever possible, e.g., with the tiff image format. The .mat data les written by Matlab automati-
cally use lossless compression. Avoid using the jpeg format for submitting images in assignments.
As far as possible, show the colormap when showing images in a report, unless it is clearly unnec-
essary. If using Matlab, this is done using the colorbar funcction.
If youd like to show 2 images (say, side by side) for direct comparison, then please ensure that they
use the same colormap.
If using Matlab, use daspect() or axis equal to set the pixel dimensions or, equivalently, the aspect
ratio.
If using Matlab, use impixelinfo to interactively probe intensities in a displayed image, e.g., while
debugging.
The default colormap in Matlab typically uses 64 colors, which may create artifacts during visual-
ization. To avoid this, use at least 200 colors. This can be done by the following lines of code:
myNumOfColors = 200;
myColorScale = [ [0:1/(myNumOfColors-1):1] , [0:1/(myNumOfColors-1):1] , [0:1/(myNumOfColors-
1):1] ];
imagesc (single (phantom)); colormap (myColorScale); colormap jet; daspect ([1 1 1]); axis tight;
colorbar;
General :
If there are any issues with the version of Matlab that you use, please let the instructor know at the
earliest.
For any questions or clarications, please meet or email the instructor at the earliest.
Late-Submission Policy : Loss of 25% of the maximum-possible marks per day; thus, zero credit
earned for submitting after 3 days past the due date.
2
Group-Submission Policy : You can perform the assignment alone or in a group (as described in
class). If you do any of the assignments in a group, there will be an additional viva at the end of the
semester covering the entire material taught within the semester.
3