# Hough algorithm - thinning lines out

Hello. Function`HoughLines()`

returns a vector filled with these of lines which get enough votes during the voting process. Now, let's suppose: I have three lines very close to each other, so the differences in angles are very small, about 1 or 2 degree, so:

```
Theta = {20, 24, 25}
```

How can I manage to choose the one that is the most certain to be a line that I'm looking for (e.x the longest one)? To be specific: with the highest amount of votes out of these three above? What shall I compare?