Intersection of all line segments-Primary article __ Computer vision

Source: Internet
Author: User
Intersection of all line segments-primary articles

tags (space-delimited): Computer vision, Graphic science

Intersection of all line segments-primary articles

Reference: "Computational geometry-Algorithms and Applications" Deng Junhui translation Tsinghua University Press

This paper presents a small example of how to compute the intersection point of all line segments without considering the use of position relationships in the horizontal x direction to reduce complexity, for example:

The State structure S (1) scan line first passes the upper point of Line 1, and the segment 1 enters S={1}

(2) The scan line calculates the intersection point of line segment 2 with s in the upper end of Line 2, gets a segment 2 enters s={1,2}

(3) The scan line passes the upper point of line 4 to compute the intersection line between 4 and S of all segments: Wireless segment 4 enters s={1,2,4}
(4) The scan line passes the top point of line 3
Calculates the intersection point of Line 3 with all line segments in S: B and C segment 3 entering s4={1,2,4,3}
(5) Scan line through the lower point of line 1
Segment 1 out State structure, s={2,4,3}
(6) Scan line through the lower point of line 2
Segment 2 out state structure, s={4,3}
(7) Scan line through the lower point of line 3
Segment 3 out state structure, s={4}
(8) Scan line through the lower point of line 4
Line 4 out of state structure, s={}, that is, the state structure is empty
(9) Scan line first through the end point of line 5
Segment 5 into S={5}
(10) The scan line passes the top point of line 6
Calculates the intersection of line 6 with all segments in S: D segment 6 enters s={5,6}
(11) The scan line passes the top point of line 7
Calculates the intersection of Line 7 with all line segments in S: Wireless segment 7 enters s={5,6,7}
(12) The scan line passes the top point of line 8
Calculates the intersection point of Line 8 with all line segments in S: E segment 8 enters s={5,6,7,8}
(13) The scanning line passes the lower point of line 5, the line segment is 5 out, s={6,7,8}
(14) The scanning line passes the lower point of line 7, the line segment is 7 out, s13={6,8}
(15) The scanning line passes the lower point of line 8, the line segment is 8 out, s14={6}
(16) The scanning line passes the lower point of line 6, the line segment is 8 out, s15={}
At this point, all corner points are solved, and the {A, B, C, D, E}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.