寻找外轮廓线 [英] Looking for outer contour lines

查看:74
本文介绍了寻找外轮廓线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
寻找有关如何从相交线集中找到轮廓线的想法.

例如,行集如下所示:

Hello everyone,
Looking for some ideas about how to find contour lines from intersecting lines set.

Line set for example looks like this :

+----+----------+
|    |     2    |
| 1  +----------+
|    |
+----+



其中
|
|
|
是一行,而
|
|
也是一行.从这张照片中我有6条线,它们没有任何顺序.

框1和框2均由4个线段组成,它们具有相同的一面.
结果,我想要得到的轮廓是由6个线段组成的:



where
|
|
|
is one line, and
|
|
is also one line. From this picture I have 6 lines which are not in any order.

Box 1 and box 2, each made up of 4 line segments, share a common side.

In result what i would like to get is such contour, made up of 6 line segments:

+---------------+
|               |
|    +----------+
|    |
+----+


推荐答案

查找重叠的线段.擦除其中部分重叠的部分.如果整个线段被另一个线段重叠,则该整个线段将被删除.
Find line segements that overlap. Erase the portions of them that are part of the overlap. If an entire line segment is overlapped by another, then that entire line segment will be erased.


这篇关于寻找外轮廓线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆