Image Processing with either Python or Matlab. Implement a Hough detector for circles. 1. Edge Detection (5
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Implement a Hough detector for circles. 1. Edge Detection (5 points) Write a function that will accept an image as input and output a binary edge image. You can use any edge detector you like, and you don't have to implement it yourself, but keep in mind that if you use a filter like Sobel, you will need to apply a threshold, so that the resulting edge image is binary. For this assignment, an image with many circular objects is a good one. Try using Balloon images; Matlab has a "coins" image which works; a micrograph of red blood cells, etc. 2. Create and populate the accumulator (15 points) The accumulator for circles will be three dimensional, as you need x-center, y-center and radius. This will make it hard to visualize, so consistent with my recommendation for a good test image above, include in your homework a view of the accumulator at an appropriate" (one that will show your circles) fixed radius. Please choose a radius that shows something interesting. A brute force algorithm is perfectly ok for this section. 3. Plot circles on your original image (5 points) Write a function that accepts your original image and the accumulator from step 2 and outputs the original image with circles drawn on it. This will require you to find maxima in the accumulator and then use the coordinates of the maxima (x-center, y-center and radius) to draw a circle on the original image. Again, you can use built in functions to draw the circle. 4. CSC482: Non-integral accumulator (10 points) It turns out that there isn't really a need to have a binary edge image. You can use a straight edge-strength image and a real-valued accumulator. Rewrite your code from steps 1-2 to use real values for edge strength and accumulators. Not having a binary edge detector does make the run-time longer, as you need to consider all pixels in the image, rather than those which "have an edge, in the binary case. Explain what differences you see between the binary edges and the real-valued edges. If you see no differences, explain why. 5. CSC482: Polar coordinates (5 points): Because the slope-intercept form of a line can produce unbounded slopes, the trigonometric parameterization of a line makes the Hough line detector more robust. Notice that we also have a trigonometric parameterization of a circle, (r cos 0 a) + (r sin 0 - b) = r, which we could use. Explain concisely why this doesn't make the Hough circle detector any more robust than the standard form of a circle. Your answer must be precise. Hand- waving is not acceptable! - Implement a Hough detector for circles. 1. Edge Detection (5 points) Write a function that will accept an image as input and output a binary edge image. You can use any edge detector you like, and you don't have to implement it yourself, but keep in mind that if you use a filter like Sobel, you will need to apply a threshold, so that the resulting edge image is binary. For this assignment, an image with many circular objects is a good one. Try using Balloon images; Matlab has a "coins" image which works; a micrograph of red blood cells, etc. 2. Create and populate the accumulator (15 points) The accumulator for circles will be three dimensional, as you need x-center, y-center and radius. This will make it hard to visualize, so consistent with my recommendation for a good test image above, include in your homework a view of the accumulator at an appropriate" (one that will show your circles) fixed radius. Please choose a radius that shows something interesting. A brute force algorithm is perfectly ok for this section. 3. Plot circles on your original image (5 points) Write a function that accepts your original image and the accumulator from step 2 and outputs the original image with circles drawn on it. This will require you to find maxima in the accumulator and then use the coordinates of the maxima (x-center, y-center and radius) to draw a circle on the original image. Again, you can use built in functions to draw the circle. 4. CSC482: Non-integral accumulator (10 points) It turns out that there isn't really a need to have a binary edge image. You can use a straight edge-strength image and a real-valued accumulator. Rewrite your code from steps 1-2 to use real values for edge strength and accumulators. Not having a binary edge detector does make the run-time longer, as you need to consider all pixels in the image, rather than those which "have an edge, in the binary case. Explain what differences you see between the binary edges and the real-valued edges. If you see no differences, explain why. 5. CSC482: Polar coordinates (5 points): Because the slope-intercept form of a line can produce unbounded slopes, the trigonometric parameterization of a line makes the Hough line detector more robust. Notice that we also have a trigonometric parameterization of a circle, (r cos 0 a) + (r sin 0 - b) = r, which we could use. Explain concisely why this doesn't make the Hough circle detector any more robust than the standard form of a circle. Your answer must be precise. Hand- waving is not acceptable! -
Expert Answer:
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date:
Students also viewed these databases questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
In Exercises show that the function y = (x) is a solution of the differential equation. y = 4e-x y" - y = 0
-
In studies examining the effect of humor on interpersonal attractions, McGee and Shevlin (2009) found that an individual's sense of humor had a significant effect on how the individual was perceived...
-
In Fig P2.71 gate AB is 3 m wide into the paper and is connected by a rod and pulley to a concrete sphere (SG = 2.40). What sphere diameter is just right to close the gate? Concrete phere SG 2.4 6 m...
-
Brian worked as a painter for a major U.S. corporation. Over a period of nearly a decade, he was responsible for painting different aspects of the corporations plant, including the floors, walls, and...
-
Castro Company makes and sells a single product. Castro incurred the following costs in its most recent fiscal year. Cost Items Appearing on the Income Statement Materials cost ($9 per unit)...
-
1. Electric potential is given by V=6x-8xy-8y+6yz - 4z Then magnitude of electric force acting on 2C point charge placed on origin will be :- (1) 2N (2) 6N (3) 8N (3) 8N (4) 20 N 2. Figure shows...
-
JamCo, a domestic corporation, operates abroad through three wholly - owned foreign corporations, JamFor 1 , JamFor 2 , and JamFor 3 . Each entity is organized in a different foreign country. During...
-
Consider the bank you have a relationship with. List all the brand touchpoints. Evaluate which are the most important to you and why.
-
H. Smith is employed at a rate of 10 per hour. During the week to 18 May 2012 he worked his basic week of 40 hours. According to the requisite tables the income tax due on his wages was 54, and...
-
Work out how the answers in Tables 5.3 and 5.4 would change if the inventory levels were rising. Then check with the next section. Tables 5.3 Tables 5.4 Month of August Sales (10,400 at 20) Opening...
-
Explain the meaning of overhead cost recovery.
-
Walgreens is trying to better understand its customer experience from the perspective of its elderly customers. What can it do in order to achieve this goal?
-
1) In the 2-factor, 2 good Heckscher-Ohlin model, trade will the owners of a country's factor and will the good that uses that factor intensively. B) harm; abundant; import A) benefit; abundant;...
-
Calculate the electrical conductivity of a fiber-reinforced polyethylene part that is reinforced with 20 vol % of continuous, aligned nickel fibers.
-
Use Strassen?s algorithm to compute the matrix product Show your work. 1 3 7 5 6 8 4 2
-
Why do we require that w i i = 0 for all 1 i n?
-
Suppose that the adders within the butterfly operations of the FFT circuit sometimes fail in such a manner that they always produce a zero output, independent of their inputs. Suppose that exactly...
-
If we imagine a full cycle of the oscillation, with the woman bouncing up and down and the tendon providing the restoring force, what will her oscillation period be? A. \(0.10 \mathrm{~s}\) B. \(0.15...
-
Assuming that the web acts like a spring, what is the spring constant of the web? A. \(0.039 \mathrm{~N} / \mathrm{m}\) B. \(0.39 \mathrm{~N} / \mathrm{m}\) C. \(3.9 \mathrm{~N} / \mathrm{m}\) D....
-
Given what you have calculated for the period of the full oscillation in this model, what is the landing-to-liftoff time for the stretch and rebound of the sprinter's foot? A. \(0.050 \mathrm{~s}\)...
Study smarter with the SolutionInn App