{"id":95790,"date":"2022-07-18T00:00:00","date_gmt":"2022-07-18T00:00:00","guid":{"rendered":"https:\/\/nursingstudybay.com\/2022\/07\/18\/assignment-3-5\/"},"modified":"2022-07-18T00:00:00","modified_gmt":"2022-07-18T00:00:00","slug":"assignment-3-5","status":"publish","type":"post","link":"https:\/\/www.studyproessays.com\/help\/assignment-3-5\/","title":{"rendered":"Assignment #3"},"content":{"rendered":"<p>Assignment #3<br \/>\n\u2022 Description : You need to implement a program to detect edges in an input image using<br \/>\nLoG (Laplacian of Gaussian) method.<br \/>\no Input : The following five values from keyboard.<br \/>\n\uf0a7 Input image file name (square size, and .ppm format (P6)).<br \/>\n\uf0a7 mask size (i.e., 1(3&#215;3), 2(5&#215;5), 3(7&#215;7), or 4(9&#215;9)).<br \/>\n\uf0a7 s value for mask function (integer).<br \/>\n\uf0a7 k value for mask function (integer).<br \/>\n\uf0a7 threshold value for edge detection (integer).<br \/>\no You can use the following mask function.<br \/>\nint mask(int k, int s, int x, int y)<br \/>\n{<br \/>\ndouble temp, ans;<br \/>\ntemp = (double)(x * x + y * y) \/ (double)(s * s);<br \/>\nans = (double)k * (2.0 &#8211; temp) * exp(-temp \/ 2.0);<br \/>\nreturn(nearest_int(ans));<br \/>\n}<br \/>\no Your program needs to do the following basically:<br \/>\n\uf0a7 Get input value (image file name) above.<br \/>\n\uf0a7 Perform \u2018ReadPPM\u2019 for input image.<br \/>\n\uf0a7 Perform \u2018CreatPPM\u2019 for output image.<br \/>\n\uf0a7 Initialize all pixel values of output image as white (255).<br \/>\n\uf0a7 Generate mask (i.e., array) using input mask size, k, s, and mask function.<br \/>\n\uf0a7 Convolute input image with the mask and save the results as an array,<br \/>\n\uf0a7 Apply an input threshold value to the above array from the convolution<br \/>\nhorizontally to find edges, and apply an input threshold value to the above<br \/>\narray from the convolution vertically to find edges.<br \/>\n\uf0a7 If it satisfies the given threshold, put a black pixel into the output image<br \/>\ncreated by \u2018CreatPPM\u2019 above using \u2018PutRPixel, PutGPixel, and PutBPixel\u2019.<br \/>\n\uf0a7 Perform \u2018WritePPM\u2019 for output image.<br \/>\no Output : an image file (.ppm format, i.e., LoG.ppm) as edge detection result, in which<br \/>\nedge lines are black pixels, and all others are white pixels.<br \/>\no Testing : Some images will be provided in Canvas for your testing.<br \/>\n\u2022 Programming Language : You need to use C and the related files provided ONLY.<br \/>\n\u2022 Submission :<br \/>\no You only need to submit C file that you implement. If your first name is \u2018abcde\u2019 and<br \/>\nyour last name is \u2018fghij\u2019, then the C file name should be abcfgh3.c, which is the first 3<br \/>\nletters of your first name and the first 3 letters of your last name combined with the<br \/>\nnumber 3.<br \/>\no In the beginning of your C file, you need to provide Assignment #, your name, good<br \/>\nworking values of mask size, s value for mask function, k value for mask function,<br \/>\nthreshold value for edge detection for your program, which compiler (i.e., Tiny C, or<br \/>\nVisual Studio) used, and other comments using \/* \u2026 *\/.<br \/>\n\u2022 Grading :<br \/>\no No resubmission is allowed in any case after the due date, or after the grading.<br \/>\no If your C file is not compiled by either Tiny C or Visual Studio, then 50% will be taken<br \/>\noff. We will not compile your program using any other compiler except Tiny C or<br \/>\nVisual Studio.<br \/>\no If your program is not providing corresponding edge detection results, then 40% will<br \/>\nbe taken off.<br \/>\no If your C file is 50 % or more similar with other submitted C files, the scores of all<br \/>\nsubmissions will be ZERO %.<br \/>\no If your C file is 50 % or more similar with any copies in the internet, the score of your<br \/>\nsubmissions will be ZERO %.<br \/>\no If you do not use the provided modules (files in test.zip) in your program, then 50%<br \/>\nwill be taken off for fairness purpose even if your C file is compiled and generates<br \/>\ncorrect outputs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assignment #3 \u2022 Description : You need to implement a program to detect edges in an input image using LoG (Laplacian of Gaussian) method. o\u2026<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[479,537,172,478,6744],"tags":[7780,7779,687,7783,3504,8899,8900,7782,7785,7787,7784,7781,8901,7788,7786],"class_list":["post-95790","post","type-post","status-publish","format-standard","hentry","category-nursing-course-hero","category-nursing-essay-pro","category-nursing-study-bay","category-nursing-study-pool","category-nursing-studybay","tag-apps-to-help-with-writing-assignment","tag-assignment-help-in-australia","tag-assignment-help-website","tag-assignment-helpers-for-students","tag-essay-writing","tag-essy-help","tag-essy-pro","tag-help-students-with-assignment","tag-i-will-pay-someone-to-do-my-assignments","tag-looking-for-someone-to-do-my-assignments","tag-pay-someone-to-do-my-assignment","tag-paying-someone-to-do-assignment","tag-studbay","tag-studybay","tag-university-assignment-hacks"],"_links":{"self":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/95790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/comments?post=95790"}],"version-history":[{"count":0,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/95790\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/media?parent=95790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/categories?post=95790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/tags?post=95790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}