1 | initial version |
(Suggestion) - loop over all lines one by one and compare slop with other lines . (If they have same slop and their perpendicular distance ≈ 0 ) use LineIterator -> get their points --> Use fitLine to fit those points to 1 single line .