Difference between revisions of "CSC111 Final Exam 2018"

From dftwiki3
Jump to: navigation, search
Line 157: Line 157:
 
</source>
 
</source>
 
<br />
 
<br />
 +
<!-- ================================================================================= -->
 +
=Problem #3=
 +
<br />
 +
Write a JES program that takes an image and generates a circular soft mask around the center of the image, as illustrated below.  On the left is the original image, and on the right the image generated by JES.
 +
<center>
 +
<br />
 +
[[Image:catmelonhelmet.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:catmelonhelmetfog.png|300px]]
 +
<br />
 +
[[Image:funnybaby.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:funnybabyfog.png|300px]]
 +
</center>
 +
<br />
 +
==Testing==
 +
<br />
 +
Run your program on the following image, and submit a copy of the processed image under the name '''finalb.jpg''' or '''finalb.png'''.
 +
<br />
 +
<center>[[File:SmithCollegeStainedGlass.jpg|300px]]<br />(click on the image twice to get to the real full size image)</center>
 +
<br />
 +
 +
==Implementation Details==
 +
<br />
 +
* The circular part of the mask should be as big as the width or the height of the image, whichever is smaller
 +
* The mask color '''must''' be white.
 +
* The resulting image should be fully white outside the circular mask.
 +
* The amount of  softness inside the circle is up to you.  But there should be some softening of the colors!  The  pixel at the very center of the foggy image should retain its original color. 
 +
* Your JES program should only ask the user for a file name, nothing else.
 +
* If you need help capturing the final image, please visit [http://www.take-a-screenshot.org/ this page].
 +
<br />
 +
==Submission==
 +
<br />
 +
* Your program should be called '''final3.py''' and the image '''final3.png''' or '''final3.jpg''', and both should be submitted in the Final Exam, PB3 section on Moodle.
 +
 
<br />
 
<br />
 
</onlydft>
 
</onlydft>

Revision as of 07:15, 27 April 2018

D. Thiebaut (talk) 11:39, 26 April 2018 (EDT)



...