Q1: Consider the plot of a straight line in (a). Give the equation of the line in slope-intercept, double-intercept and normal form.
Q2: Consider the two points π1 = (2,1) and π2 = (β1,3) shown in (b). Using the slope-intercept form of a line (π¦ = ππ₯ + π), estimate the Hough accumulator values for detecting a straight line. For the accumulator π΄(π, π), use a range of (β1 β€ π < 5, β1 β€ π < 5), where π and π increment by values of 1. What is the detected line based on the maximum found in the accumulator and how does this compare to the true line?
(a) (b)
Coding:
β’ Apply cv2.HoughLines to Line.jpg, using 80 and 50 as thresholds and compare the results
β’ Apply cv2.HoughCircles to Circle.jpg, and investigate the influence of param1 and param2 o Blur the image with Median filter with size=5
o Set circle radius with minRadius=50, maxRadius=65 and minDist=40 o Try to set param1 and param2 as {80, 20}, {80, 10} and {50, 20}, and see the difference on outputs
o Apply circle detection on the unblurred image using the best parameters found above and check for differences in the output
Past Quiz Questions: β’ AY2122_Quiz1: Q6



