Homework 1 Computer Vision (Term 3 2022-23) The purpose of this homework is to write an image filtering function to apply on input images. Image filtering (or convolution) is a fundamental image processing tool to modify the image with some smoothing or sharpening affect. You will be writing your own function to implement image filtering from scratch. More specifically, you will implement filter( ) function should conform to the following: (1) support grayscale images, (2) support arbitrarily shaped filters where both dimensions are odd (e.g., 3 × 3 filters, 5 × 5 filters), (3) pad the input image with the same pixels as in the outer row and columns, and (4) return a filtered image which is the same resolution as the input image. You should read a color image and then convert it to grayscale. Then define different types of smoothing and sharpening filters such as box, sobel, etc. Before you apply the filter on the image matrix, apply padding operation on the image so that after filtering, the output filtered image resolution remains the same. (Please refer to the end the basic image processing notebook file that you used for first two labs to see how you can pad an image) Then you should use nested loops (two for loops for row and column) for filtering operation by matrix multiplication and addition (using image window and filter). Once filtering is completed, display the filtered image. Please use any image for experiment. Submission You should submit (using Blackboard link) the source file which includes the code (Jupiter notebook) and a report containing different filters and corresponding filtered images. Deadline: May 11th, Thursday, End of the day.

Answers

Answer 1

Here is information on image filtering in spatial and frequency domains.

Image filtering in the spatial domain involves applying a filter mask to an image in the time domain to obtain a filtered image. The filter mask or kernel is a small matrix used to modify the pixel values in the image. Common types of filters include the Box filter, Gaussian filter, and Sobel filter.

To apply image filtering in the spatial domain, one can follow the steps mentioned in the prompt, such as converting the image to grayscale, defining a filter, padding the image, and using nested loops to apply the filter.

Both spatial and frequency domain filtering can be used for various image processing tasks such as noise reduction, edge detection, and image enhancement.

Learn more about frequency domain at:

brainly.com/question/14680642

#SPJ1


Related Questions

Other Questions
What was a fundamental difference between the flatboats and steamboats used to travel through canals in the early 1800s?. If f(x) = 3(5") + x and g(x) = 3cos(x), what is (f9)'()? O (3(5*) In(5) + 1)(3cos(x)) + (3(5") + x)(sin(x)) O (3(5") In(5) + 1)(3sin(x)) O (3(5") In(5) + 1)(-3sin(x)) O (3(5) In(5) + 1)(3cos(x)) + (3(5") + x)(-3sin(x)) A sequence can be generated by using an=an1+7, where a1=4 and n is a whole number greater than 1. What are the first 3 terms in the sequence? 7, 11, 15 7, 28, 112 4, 11, 18 4, 28, 196 NEED HELP PLEASE 4. Explain how you decide what is important when reading informational text. Select one resource you have used, discuss its value and why you felt it useful Of these common qualifications for Agriculture, Food, and Natural Resources careers, select those you already have or would like to gain. A) physical strength, coordination, and dexterityB) skills in working safely with equipment and machineryC) accuracy and attention to detailD) problem-solving skillsE) organizational skillsF) skills in communicating with, teaching, and supervising othersG) reliability and responsibilityAnswer: C) accuracy and attention to detail. D) problem-solving skills. G) reliability and responsibility. I didn't know the answer at first but then I figured it out and got it right. Can someone please help me ASAP? Its due tomorrow What is the greatest common what is the greatest common factor of 6a2b2 and 15a4b37a3abb3a4b36abd3a2b2 Solve for x.ASet up the proportion.XI7 What can be concluded if the reaction quotient (Q) for the reaction is 21.3 and the Keg for the reaction is 50.0? [Ha(g) + L(g) - 2HIa.The reaction is at equilibrium.b. The reaction is not at equilibrium and it will proceed toward the products.c. The reaction is not at equilibrium and it will proceed toward the reactants. d.None of the above can be concluded. 15. sound waves can be modeled by the equations of the form y1 = 20 sin (3x + (). a wave traveling in the opposdirection can be modeled by y2 = 20 sin (3x - 0). show that y + y2 = 40 sin 3x cos 0. find the first derivative x cos(14x + 13y) = y sin x Using the Pythagorean Theorem, what is the correct equation setup for a right triangle with side lengths measuring 7 in, 25 in, and 24 in?A. 25^2 + 24^2 = 7^2B. 7^2 + 25^2 = 24^2C. 7^2 + 24^2 = 25^2D. 24^2 + 25^2 = 7^2 Here is the income statement for Teal Mountain Inc. TEAL MOUNTAIN INC. Income StatementFor the Year Ended December 31, 2022Sales revenue$431,600Cost of goods sold234,300Gross profit197,300Expenses (including $16,200 interest and $22,500 income taxes)75,200Net income$ 122,100Additional information:1. Common stock outstanding January 1, 2022, was 26,700 shares, and 36,000 shares were outstanding at December 31, 2022. 2. The market price of Teal Mountain stock was $13 in 2022. 3. Cash dividends of $24,200 were paid, $6,600 of which were to preferred stockholders. Compute the following measures for 2022. (Round all answers to 2 decimal places, e. G. 1. 83 or 2. 51%)(a) Earnings per share $enter earnings per share in dollars (b) Price-earnings ratio enter price-earnings ratio in times times(c) Payout ratio enter payout ratio in percentages %(d) Times interest earned enter times interest earned times Dr. Jekyll & Mr. Hyde TestQ12. Which is a condition of Dr. Jekyll's will?Select one:a. Mr. Utterson shall receive one half of Dr. Jekyll's estate.b. Mr. Hyde is the sole beneficiary of Dr. Jekyll's estate.c. One Jason Lagary has to promise not to hide under his bed covers when he reads Dr. Jekyll's confession.d. Mr. Hyde shall receive nothing. A block is attached to a spring and executessimple harmonic motion according to x = 2.0cos(50t), where x is in meters and t is inseconds. The spring constant is k = 100 N/m.What is the mass of the block? Which shapes contain at least one obtuse angle?Select each correct answer.Responses are the pictures Complete the following sentence. Ricin moves into a cell using active transport by binding to the ________ and ________ of the cell's membrane What two areas of Tennessee supported secession What is the main role of the grand jury? The secondary structure of a protein molecule is the_____of the amino acid chains