on-internet
← Community

Fragmented line fitting

Stack Overflow ·

I want to fit a line to line fragments, i.e. a small number (often less than 10) of line segments that approximately belong to the line. The line has a small slope. But there are outliers: segments (usually smaller) outside the line. The figure below shows a typical case. There isn't any horizontal overlap between the pieces. I would prefer to avoid trying a fit on all subsets of segments and keeping the best. I also wouldn't rely on RANSAC as the sample is too small. Any suggestion? I now plan to recast the problem as that of fitting a line on points, namely the infinities of points on the in

Comments

Sign in or sign up to comment and upvote.

No comments yet.