Advertisement
Guest User

Untitled

a guest
May 4th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.01 KB | None | 0 0
  1.  
  2. <html>
  3.  
  4. <head>
  5.  
  6. <title>Computer Vision Mid-Term Exam 01</title>
  7.  
  8.  
  9.  
  10. <link href='http://fonts.googleapis.com/css?family=Nunito:300|Crimson+Text|Droid+Sans+Mono|Dancing+Script' rel='stylesheet' type='text/css'>
  11.  
  12.  
  13.  
  14. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  15.  
  16.  
  17.  
  18. <link rel="stylesheet" href="highlight/styles/default.css">
  19.  
  20. <script src="highlight/highlight.pack.js"></script>
  21.  
  22. <script>hljs.initHighlightingOnLoad();</script>
  23.  
  24.  
  25.  
  26. <script type="text/x-mathjax-config">
  27.  
  28. MathJax.Hub.Config({
  29.  
  30. tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
  31.  
  32. });
  33.  
  34. </script>
  35.  
  36. <script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
  37.  
  38.  
  39.  
  40. <link rel="stylesheet" href="styles.css">
  41.  
  42.  
  43.  
  44. </head>
  45.  
  46. <body>
  47.  
  48.  
  49.  
  50.  
  51.  
  52. <div id="header"><div id="headersub">
  53.  
  54. <h1>Elise White</h1>
  55.  
  56. </div></div>
  57.  
  58.  
  59.  
  60.  
  61.  
  62. <div class="container">
  63.  
  64.  
  65.  
  66. <h2>COS 351 Mid-Term Exam 01</h2>
  67.  
  68.  
  69.  
  70. <p>
  71.  
  72. Out: Saturday, 2016 April 30, 9:00pm<br>
  73.  
  74. Due: Monday, 2016 May 9, 11:55pm
  75.  
  76. </p>
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. <h3 id="instructions">Instructions</h3>
  85.  
  86.  
  87.  
  88. <div class="instructions">
  89.  
  90.  
  91.  
  92. <p>This mid-term exam will be done outside the classroom. This exam will ask questions that are generally at a higher level and more synthesizing than the problems of the regular assignments. You will be asked to write some <em>working</em> MATLAB/Octave code, write short paragraph answers, generate images, etc.</p>
  93.  
  94.  
  95.  
  96. <p>I strongly encourage you to show all of your work. If you used MATLAB/Octave to perform computations, copy-paste your log in <code>&lt;pre>&lt;code></code> tags. I also recommend inserting your images of your work captured by screenshot, camera, or scanner. If you want to include math, you are encouraged to use the included <a href="https://www.mathjax.org/" target="_blank">MathJax</a> by wrapping the math in single dollar signs for inline math (<code>$f(x) = 4x^2 + x - 2$</code> produces $f(x) = 4x^2 + x - 2$) or double dollar sign for display math (<code>$$f(x) = 4x^2 + x - 2$$</code> produces below)</p>
  97.  
  98.  
  99.  
  100. $$f(x) = 4x^2 + x - 2$$
  101.  
  102.  
  103.  
  104. <p>Be thorough in your explanation. This work is relatively easy to understand conceptually but much more challenging to implement and explain. Your job is to convince me that you understand the problem and your solution. A convincing argument may require a detailed explanation. However, be careful not to ramble either. Be clear and concise. It is perfectly fine to admit that you are not sure of your answer. It is not fine to convince yourself that you understand the problem, when it is clear by your solution that you do not.</p>
  105.  
  106.  
  107.  
  108. <p>Each question may have several parts. Be sure to answer each part, and it would help to indicate each part's solution with some mark, such as a (a), or wrap your answers with <code>&lt;ol class="answers"></code>.</p>
  109.  
  110.  
  111.  
  112. <p>Be sure to zip and upload <em>all</em> of the files necessary to view your submission correctly! For example, if you add an image to this document, be sure that the image file is located in the same folder, and that the image is included in the final zip.</p>
  113.  
  114.  
  115.  
  116. <p>You are allowed to use the following:</p>
  117.  
  118.  
  119.  
  120. <ul>
  121.  
  122. <li>your own notes, assignment solutions, assignment write ups</li>
  123.  
  124. <li>slide sets, course book</li>
  125.  
  126. <li>web to search for MATLAB/Octave commands</li>
  127.  
  128. </ul>
  129.  
  130.  
  131.  
  132. <p>You are <em>not allowed</em> to do any of the following:</p>
  133.  
  134.  
  135.  
  136. <ul>
  137.  
  138. <li>use other student's notes or assignment solutions</li>
  139.  
  140. <li>talk with other students about any part of the problems (including clarifying questions!)</li>
  141.  
  142. <li>use the Internet to look up terms or concepts</li>
  143.  
  144. </ul>
  145.  
  146.  
  147.  
  148. <p>Hint: Run the code in MATLAB/Octave. You may use the provided images, or you may use your own.</p>
  149.  
  150.  
  151.  
  152. <p>If you have any questions, you may email me or post <em>privately</em> to Piazza.</p>
  153.  
  154.  
  155.  
  156. </div>
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. <!-- ======================================================== -->
  171.  
  172. <!-- ======================================================== -->
  173.  
  174.  
  175.  
  176. <h3 id="h1">q1. Computer Vision (9pts)</h3>
  177.  
  178.  
  179.  
  180. <div class="questions" id="q1">
  181.  
  182. <p>The following is a comic by Randall Munroe of XKCD (<a href="http://xkcd.com/1425/" target="_blank">source</a>).</p>
  183.  
  184.  
  185.  
  186. <figure><img src="xkcd-1425-tasks.png" title="In the 60s, Marvin Minsky assigned a couple of undergrads to spend the summer programming a computer to use a camera to identify objects in a scene. He figured they'd have the problem solved by the end of the summer. Half a century later, we're still working on it." alt="Tasks"></figure>
  187.  
  188.  
  189.  
  190. <p>The <code>title</code> attribute of the comic contains the following text.</p>
  191.  
  192.  
  193.  
  194. <blockquote>In the 60s, Marvin Minsky assigned a couple of undergrads to spend the summer programming a computer to use a camera to identify objects in a scene. He figured they'd have the problem solved by the end of the summer. Half a century later, we're still working on it.</blockquote>
  195.  
  196.  
  197.  
  198. <ol class="questions">
  199.  
  200. <li>Explain the joke in the character's conversation.</li>
  201.  
  202. <li>Explain the joke found in the caption ("In CS, it can be hard...").</li>
  203.  
  204. <li>Marvin Minsky recently passed away. He won many awards during his career. Report something interesting about his career, his personal life, or his views of machines and humans.</li>
  205.  
  206. </ol>
  207.  
  208.  
  209.  
  210. </div>
  211.  
  212.  
  213.  
  214. <div class="answers" id="a1">
  215.  
  216. <p>Write your answers below.</p>
  217.  
  218. <ol class="answers">
  219.  
  220. <li>The joke is that it seems like it would be easy to recognize a bird in an image, as it's something that humans can do instantaneously. However, it takes hours and hours of development for a computer to do the same thing.</li>
  221.  
  222. <li>As humans, it's easy for us to recognize birds. But if we were placed in a random location in the US, depending on the situation it could be nearly impossible for us to tell whether we were in a national park or not. In CS, things that seem like they would be easy are very difficult, and things that seem difficult are very easy.
  223. </li>
  224.  
  225. <li>In 1951, Minsky built the first neural network simulator (SNARC). I learned that an artificial neural network is a system that simulates the way that neurons connect in brains.</li>
  226.  
  227. </ol>
  228.  
  229. </div>
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. <!-- ======================================================== -->
  238.  
  239. <!-- ======================================================== -->
  240.  
  241.  
  242.  
  243. <h3 id="h2">q2. Machine Learning (9pts)</h3>
  244.  
  245.  
  246.  
  247. <div class="questions" id="q2">
  248.  
  249. <p>In class, I briefly how generalization is important to classification and categorization.</p>
  250.  
  251.  
  252.  
  253. <ol class="questions">
  254.  
  255. <li>Explain what "generalization" means with respect to the model learned.</li>
  256.  
  257. <li>What is the cause of bias error? How can you eliminate it? Is that something you want to do? Why or why not?</li>
  258.  
  259. <li>What is variance? Can you eliminate it? If so, how? If not, why not, and how far can you reduce it?</li>
  260.  
  261. </ol>
  262.  
  263. </div>
  264.  
  265.  
  266.  
  267. <div class="answers" id="a2">
  268.  
  269. <ol class="answers">
  270.  
  271. <li>(write your answer here)</li>
  272.  
  273. <li>(write your answer here)</li>
  274.  
  275. <li>(write your answer here)</li>
  276.  
  277. </ol>
  278.  
  279. </div>
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. <!-- ======================================================== -->
  288.  
  289. <!-- ======================================================== -->
  290.  
  291.  
  292.  
  293. <h3 id="h3">q3. 3D Reconstruction / Structure from Motion (9pts)</h3>
  294.  
  295.  
  296.  
  297. <div class="questions" id="q3">
  298.  
  299.  
  300.  
  301. <p>We discussed in class all of the parts necessary to reconstruct a 3D scene from a set of images.</p>
  302.  
  303.  
  304.  
  305. <ol class="questions">
  306.  
  307. <li>Describe in summary what the entire system would look like. For example, what is the input to the system, the output of the system, what subsystems are within, the inputs and outputs of each subsystem, etc. Your system should be complete (not missing a subsystem).</li>
  308.  
  309. <li>Explain why each subsystem is important to the final system.</li>
  310.  
  311. <li>Detail the limitations of each subsystem, and how you would mitigate or work around these limitations if you were to implement it. For example, explain what assumptions each subsystem makes about its input.</li>
  312.  
  313. </ol>
  314.  
  315. </div>
  316.  
  317.  
  318.  
  319. <div class="answers" id="a3">
  320.  
  321. <ol class="answers">
  322.  
  323. <li>(write your answer here)</li>
  324.  
  325. <li>(write your answer here)</li>
  326.  
  327. <li>(write your answer here)</li>
  328.  
  329. </ol>
  330.  
  331. </div>
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343. <!-- ======================================================== -->
  344.  
  345. <!-- ======================================================== -->
  346.  
  347.  
  348.  
  349. <h3 id="h4">q4. 3D Reconstruction Limitations (9pts)</h3>
  350.  
  351.  
  352.  
  353. <div class="questions" id="q4">
  354.  
  355. <p>For the following configurations, explain why or why not the 3D scene can be fully reconstructed. If the scene isn't reconstructable, explain what can be done with the images</p>
  356.  
  357.  
  358.  
  359. <figure>
  360.  
  361. <img src="camera-center.png" alt="Cameras with same optical center" height="150">
  362.  
  363. <img src="satellite-aerial-photos-of-earth-1.jpg" alt="Bourtange, Vlagtwedde, Netherlands" height="150">
  364.  
  365. <img src="camera-right.png" alt="Cameras with optical lines at right angles." height="150">
  366.  
  367. <figcaption>Satellite image <a href="http://www.boredpanda.com/daily-overview-satellite-aerial-photography-earth/" target="_blank">source</a>.</figcaption>
  368.  
  369. </figure>
  370.  
  371.  
  372.  
  373. <ol class="questions">
  374.  
  375. <li>Two images taken by a single camera that has been rotated about its optical center, where fields of view overlap. (left subfigure)</li>
  376.  
  377. <li>Two images taken by cameras with telephoto lenses. For example, satellite images, such as the figure at right. (center subfigure)</li>
  378.  
  379. <li>Two images taken at right angles to each other. (right subfigure)</li>
  380.  
  381. </ol>
  382.  
  383. </div>
  384.  
  385.  
  386.  
  387. <div class="answers" id="a4">
  388.  
  389. <ol class="answers">
  390.  
  391. <li>(write your answer here)</li>
  392.  
  393. <li>(write your answer here)</li>
  394.  
  395. <li>(write your answer here)</li>
  396.  
  397. </ol>
  398.  
  399. </div>
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407. <!-- ======================================================== -->
  408.  
  409. <!-- ======================================================== -->
  410.  
  411.  
  412.  
  413. <h3 id="h5">q5. Model Fitting (9pts)</h3>
  414.  
  415.  
  416.  
  417. <div class="questions" id="q5">
  418.  
  419. <p>Use the following code to generate and visualize 100 data points.</p>
  420.  
  421.  
  422.  
  423. <pre><code class="matlab">x = ones(100,1)*50 + rand(1,100)'*0.1; % generate x values with noise
  424.  
  425. y = (-(1:100) + (rand(1,100)-0.5)*10)'; % generate y values with noise
  426.  
  427. scatter(x,y); axis([0 100 -100 0]); % visualize data points with proper scale ratio (1:1)
  428.  
  429. </code></pre>
  430.  
  431.  
  432.  
  433. <ol class="questions">
  434.  
  435. <li>Write MATLAB/Octave code to estimate the parameters of a line that best fits the data. See slides 29&ndash;30 in Feature Matching and Robust Fitting slides (<a href="http://cse.taylor.edu/~jdenning/classes/cos351/slides/09_featurematching.html#sect029" target="_blank">link</a>).</li>
  436.  
  437. <li>Draw the line over the scatter plot using the <code class="matlab">line</code> function, and post your figure.</li>
  438.  
  439. <li>In English, explain how this data set is different from the similar problem on the first take-home exam. How did you modify your model and code to better predict this data?</li>
  440.  
  441. </ol>
  442.  
  443. </div>
  444.  
  445.  
  446.  
  447. <div class="answers" id="a5">
  448.  
  449. <ol class="answers">
  450.  
  451. <li>(write your answer here)</li>
  452.  
  453. <li>(write your answer here)</li>
  454.  
  455. <li>(write your answer here)</li>
  456.  
  457. </ol>
  458.  
  459. </div>
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473. <!-- ======================================================== -->
  474.  
  475. <!-- ======================================================== -->
  476.  
  477.  
  478.  
  479. <h3 id="h6">q6. Optical Flow (12pts)</h3>
  480.  
  481.  
  482.  
  483. <div class="questions" id="q6">
  484.  
  485. <p>Below are two frames form the Blender Foundation movie Cosmos Laundromat (<a href="https://youtu.be/Y-rmzh0PI3c?t=444" target="_blank">source</a>).</p>
  486.  
  487.  
  488.  
  489. <figure><img src="cosmos-laundromat-0.png" height="150"><img src="cosmos-laundromat-1.png" height="150"></figure>
  490.  
  491.  
  492.  
  493. <ol class="questions">
  494.  
  495. <li>Write MATLAB/Octave code to estimate the optical flow from the first image to the second. Use the <code class="matlab">quiver</code> function to draw the field (see <a href="http://www.mathworks.com/help/matlab/ref/quiver.html" target="_blank">quiver</a> for ref). Refer to slide 37 of the Optical Flow slide set (<a href="http://cse.taylor.edu/~jdenning/classes/cos351/slides/15_opticflow.html#sect037" target="_blank">link</a>).</li>
  496.  
  497. <li>Describe what issues you ran into and how you worked around them.</li>
  498.  
  499. </ol>
  500.  
  501. </div>
  502.  
  503.  
  504.  
  505. <div class="answers" id="a6">
  506.  
  507. <ol class="answers">
  508.  
  509. <li><pre><code class="matlab">% write your code here</code></pre></li>
  510.  
  511. <li>(write your answer here)</li>
  512.  
  513. </div>
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520. <!-- ======================================================== -->
  521.  
  522. <!-- ======================================================== -->
  523.  
  524.  
  525.  
  526. <h3 id="honor">Honor</h3>
  527.  
  528.  
  529.  
  530. <p>Enter your name and the date in the <code>&lt;div></code> element below to indicate that you have followed all of the rules outlined in the <a href="#instructions">Instructions section</a> above, that you have maintained academic integrity, and that the work you are turning in is your own work.</p>
  531.  
  532.  
  533.  
  534. <div id="signature">Elise White, 5/2/16</div>
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542. </body>
  543.  
  544. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement