0
6.1kviews
Given set of points use Hough transform to joint these points. $A (1,4), B (2,3), C (3,1), D (4,1), E (5,0)$
1 Answer
0
643views

Line equation can be given as,

$y = ax +b$

which can be expressed as, $b = - ax + y$

Points(x,y) $b = - ax + y$ Line slope points (a,b)
A (1,4) $b = - a + 4$ (4, 4)
B (2,3) $b = - 2a + 3$ (1.5, 3)
C (3,1) $b = - 3a + 1$ (0.33, 1)
D (4,1) $b = - 4a + 1$ (.25, 1)
E (5,0) $b = - 5a$ (0, 0)

Plotting line slope points, refer Graph 1

From the graph, it is clear that a maximum pf three-line pass through point $(- 1, 5). i.e. a = - 1, b = 5$

Putting a and b values in line equation,

$$y = ax +b \\ y = - x + 5$$

enter image description here

i.e. x = 5 and y = 5

therefore, final plot can be plotted as,

enter image description here

Please log in to add an answer.