首页 > 其他分享 > alpha shape algorithm

alpha shape algorithm

时间:2023-01-21 12:22:50浏览次数:38  
标签:algorithm 三角网 shape 圆内 alpha 三角形 Delaunay boundary

一个求轮廓的算法

an alpha value (0< α < ∞) is a parameter imposing the precision of the final boundary.

A large value(α->∞) results in the alpha boundary of a convex hull while a

small value (α->0) means that every point can be the boundary point.

 

 暴力思想:

预定义圆的半径r,遍历点集P内的任意两点,如果经过这两点画成的圆内没有其它点,则这两个点为轮廓点

做法:求两圆圆心,如果其它点到圆心的距离大于r,就说明不在圆内呗

(注意:如果这两个点的的距离小于2r,会画出两个圆,只要任意一个圆内没有其它点,即为轮廓点,如下图所示)

 

 

优化方法:

根据点集P建立Delaunay三角网
若三角形中某条边的长度大于2r,则删除该三角形
对三角网每条边进行判断:若过某条边的两点且半径为r的圆包含其他点,则删除该三角形
求出剩余三角网的边缘,该边缘即为点集P的边缘线

 

Delaunay三角网是一个符合以下两个条件的三角剖分

1.空圆特性:Delaunay三角网是唯一的(任意四点不能共圆),在Delaunay三角形网中任一三角形的外接圆周围内不会有其它点存在。

 

2.最大化最小角特性:在散点集可能形成的三角剖分中,Delaunay三角剖分所形成的三角形的最小角最大。从这个意义上讲,Delaunay三角网是“最接近于规则化”的三角网。具体的说是指在两个相邻的三角形构成凸四边形的对角线,在相互交换后,六个内角的最小角不再增大。

 

标签:algorithm,三角网,shape,圆内,alpha,三角形,Delaunay,boundary
From: https://www.cnblogs.com/WTSRUVF/p/17063699.html

相关文章

  • Algorithm 4 - 字符串 (Seriously)
    主讲一些自动机相关、高级技巧相关。Part1AC自动机是最好理解的一个自动机捏。Part1.1性质与探索方向AC自动机本身基于Trie,即去掉后面说的fail指针,它就是一棵......
  • Python中reshape函数(-1表示什么)
    https://blog.sciencenet.cn/blog-3428464-1247194.html reshape函数(-1表示什么)1.当原始数组A[4,6]为二维数组,代表4行6列。A.reshape(-1,8):表示将数组转换成8列的数组......
  • 【每日一读】SWOPE:Efficient Approximate Algorithms for Empirical Entropy and Mut
    目录​​简介​​​​简介​​​​ABSTRACT​​​​1INTRODUCTION​​​​2PRELIMINARIES​​​​2.1ProblemDefinition​​​​2.2ExistingSolutions​​​​6EXPER......
  • python:reshape()函数
    a.reshape(m,n)表示将原有数组a转化为一个m行n列的新数组,a自身不变。m与n的乘积等于数组中的元素总数reshape(m,n)中参数m或n其中一个可写为"-1","-1"的作用在于计算机根据......
  • Android画布(二)ShapeDrawable常用函数
    ShapeDrawable常用函数setBounds()用来指定当前ShapeDrawable在当前控件中的显示位置setBounds(intleft,inttop,intright,intbottom)setBounds(Rectbounds)getPaint......
  • caffe 打印出Forward 函数输入输出的shape
    voidMyLossLayer<Ftype,Btype>::Forward_cpu(constvector<Blob*>&bottom, constvector<Blob*>&top){ // bottom[0]:"depth"1x1x36x64 // bottom[1]:"data"......
  • Shank's Baby-Step-Giant_Step Algorithm(BSGS)
    解模方程(\(n\)为素数)\[a^x\equivb(\bmodn)\]因为欧拉定理\(a^{\phi(n)}\equiv1(\bmodn)\)(\(n\)为素数)。有\[0\lex\len-1\]设\(m=\sqrt{n+......
  • [Typescript] Extract the Result From Several Possible Function Shapes
    Let'simagineyou'rebuildingatypehelpertoextractoutthevaluefromseveraldifferent'parsers'.Hereareafewdifferentexamplesofwhataparsercanb......
  • [Algorithm] Stable internships
    AcompanyhashiredNinternstoeachjoinoneofNdifferentteams.Eachinternhasrankedtheirpreferencesforwhichteamstheywishtojoin,andeachteam......
  • Algorithm 3 - 数据结构
    数据结构是该好好补补拉。1.线段树2.平衡树3.莫队3.1普通莫队莫队解决的问题一般是区间查询,并且可以离线。利用一种排序区间的方式,保证暴力移动最有指针的复杂度......