C
C#6mo ago
skeewg

Extending line segment to edge of picture.

I'm struggling to wrap my head around this issue. I have a picture with a buuunch of line segments (EmguCV / OpenCV and Houghlines). For "reasons", I want to extend these lines until they hit the edge of the image on both sides, but no further. I have the angle of each line within +/- pi/4 (i.e. +/-90 deg) and both endpoints available. Size of image is also known. The line class I'm using currently is EmguCV class LineSegment2D How do I go about this the best way? The added complexity is that I need to determine if the line hits the left border or the bottom border first etc...
0 Replies
No replies yetBe the first to reply to this messageJoin