[go: up one dir, main page]

CN108876834A - The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram - Google Patents

The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram Download PDF

Info

Publication number
CN108876834A
CN108876834A CN201810630897.4A CN201810630897A CN108876834A CN 108876834 A CN108876834 A CN 108876834A CN 201810630897 A CN201810630897 A CN 201810630897A CN 108876834 A CN108876834 A CN 108876834A
Authority
CN
China
Prior art keywords
node
layer
riemann
point
sampling point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810630897.4A
Other languages
Chinese (zh)
Inventor
孙殿柱
张硕
李延瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University of Technology
Original Assignee
Shandong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University of Technology filed Critical Shandong University of Technology
Priority to CN201810630897.4A priority Critical patent/CN108876834A/en
Publication of CN108876834A publication Critical patent/CN108876834A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明的目的在于提供一种适用于海量复杂采样点集数据多层黎曼图约束的曲面样本法向传播方法,属于产品逆向工程领域,首先,利用目标样点的邻域关系实现曲面样本的多层划分,构建曲面样本的多分辨率模型。然后,为该模型的结点构建黎曼图,形成多层黎曼图。最后,结合先序遍历与MST算法,采用自上而下的策略,实现法向量在多层黎曼图中的传播。实验结果表明,对于大规模实物表面曲面样本,该算法可以提高法向统一的准确度,且计算效率和内存利用率得到显著提高。The purpose of the present invention is to provide a method for normal propagation of surface samples applicable to multi-layer Riemann graph constraints of massive complex sampling point set data, which belongs to the field of product reverse engineering. Multi-layer partitioning to construct multi-resolution models of surface samples. Then, a Riemann diagram is constructed for the nodes of the model, forming a multi-layer Riemann diagram. Finally, combined with preorder traversal and MST algorithm, a top-down strategy is adopted to realize the propagation of normal vectors in multi-layer Riemann graphs. Experimental results show that for large-scale physical surface samples, the algorithm can improve the accuracy of normal uniformity, and the computational efficiency and memory utilization are significantly improved.

Description

多层黎曼图约束的曲面样本法向传播方法Surface Sample Normal Propagation Method Constrained by Multilayer Riemann Diagram

技术领域technical field

本发明提供一种多层黎曼图约束的曲面样本法向传播方法,适用于海量复杂曲面样本,属于产品逆向工程领域。The invention provides a method for normal propagation of curved surface samples constrained by multi-layer Riemann graphs, which is suitable for massive complex curved surface samples and belongs to the field of product reverse engineering.

背景技术Background technique

曲面样本法向估计是曲面重建过程中的重要问题。对曲面样本的逼近或者插值重建,重建结果的正确性以及重建过程的计算效率皆有赖于正确的样本法向估计结果。对于曲面上的任一样点的法向,可基于该样点及其邻近样点的位置信息所反映的曲面局部形状的逼近进行估计。经法向估计所得样点的法向具有二义性,即任一样点的法向与其邻近样点的法向可能相反。这一问题是曲面重建研究中的核心问题,长期以来倍受关注。The normal estimation of surface samples is an important problem in the surface reconstruction process. For the approximation or interpolation reconstruction of surface samples, the correctness of the reconstruction results and the computational efficiency of the reconstruction process all depend on the correct estimation results of the normal direction of the samples. For any sample point on the surface, the normal direction can be estimated based on the approximation of the local shape of the surface reflected by the position information of the sample point and its adjacent sample points. The normal direction of the sample points obtained by normal direction estimation is ambiguous, that is, the normal direction of any sample point may be opposite to that of its adjacent sample points. This problem is the core problem in the research of surface reconstruction and has been paid much attention for a long time.

现有曲面样本法向统一方法主要分为实体法和表面法。实体法是将曲面样本分割成若干个子集,通过判断模型内外表面,确定样点法向,但此方法依赖于采样点可见性判断且曲面样本分割过程计算代价过大,不适于表面结构复杂的海量数据。表面法最早由Hoppe等人提出,该方法假设采样表面处处平滑,在此基础上,为曲面样本构建黎曼图,并以1-|ni·nj|为权函数构造无向图的边,通过遍历最小生成树实现样点法向量的传播。但此方法极易在尖锐、薄壁、近壁等曲率变化较大的区域失效。在Hoppe所提出算法的基础上,Kong等将曲面局部样本的Hermite曲面的平滑程度作为判断法向传播优先级的依据,适用于法向量在薄壁、近壁等特征区域处的传播。Lee等将点云的拉普拉斯-贝尔特拉米算法作为权函数,有效提高了法向量在尖锐特征区域传播的准确性。王醒策等在权函数的基础上增加了切向约束,确保法向沿表面切向传播,有效提高了近邻面处法向量传播的准确度。Liu等通过自动与交互式人工选取多个传播源点相结合的方式实现样点法向传播,有效提高了法向一致化的正确性。The existing methods for unifying the normal direction of surface samples are mainly divided into solid method and surface method. The solid method is to divide the surface sample into several subsets, and determine the normal direction of the sample point by judging the inner and outer surfaces of the model. However, this method relies on the visibility judgment of the sampling point and the calculation cost of the surface sample segmentation process is too high, so it is not suitable for complex surface structures. Massive Data. The surface method was first proposed by Hoppe et al. This method assumes that the sampling surface is smooth everywhere. On this basis, a Riemann diagram is constructed for the surface sample, and the edges of the undirected graph are constructed with 1-|n i n j | as the weight function , realize the propagation of sample normal vector by traversing the minimum spanning tree. However, this method is very prone to failure in areas with large curvature changes such as sharp, thin walls, and near walls. On the basis of the algorithm proposed by Hoppe, Kong et al. used the smoothness of the Hermite surface of local surface samples as the basis for judging the priority of normal propagation, which is suitable for the propagation of normal vectors in characteristic areas such as thin walls and near walls. Lee et al. used the Laplace-Beltrami algorithm of point clouds as the weight function, which effectively improved the accuracy of normal vector propagation in sharp feature regions. Wang Xingce et al. added tangential constraints on the basis of the weight function to ensure that the normal propagates along the tangential direction of the surface, effectively improving the accuracy of the normal vector propagation at the adjacent surface. Liu et al. realized the normal propagation of sample points by combining automatic and interactive manual selection of multiple propagation source points, which effectively improved the correctness of normal consistency.

发明内容Contents of the invention

为改善现有点云法向估计方法不适用于海量复杂曲面样本的情况,本发明的目的在于提出一种多层黎曼图约束的法向传播方法。该方法能兼顾法向在海量复杂曲面样本间的传播效率与准确性,其实现方案为:In order to improve the situation that the existing point cloud normal estimation method is not applicable to a large number of complex surface samples, the purpose of the present invention is to propose a multi-layer Riemann graph-constrained normal propagation method. This method can take into account the propagation efficiency and accuracy of the normal direction among a large number of complex surface samples, and its implementation scheme is as follows:

一种多层黎曼图约束的法向传播方法,其特征在于步骤依次为:(1)为曲面样本P构建k-d树,并将P中的样点状态初始化为自由点;(2)为P构建多分辨率模型T(P);(3)采用自上而下的策略遍历曲面样本多分辨率模型T(P)的各层结点,为每个结点所包含的子集构造黎曼图,构成P的多层黎曼图RG(P);(4)基于多层黎曼图对曲面样本进行法向传播。A normal propagation method constrained by a multi-layer Riemann graph, characterized in that the steps are as follows: (1) constructing a k-d tree for a surface sample P, and initializing the state of the sample point in P as a free point; (2) for P Construct a multi-resolution model T(P); (3) Use a top-down strategy to traverse the nodes of each layer of the surface sample multi-resolution model T(P), and construct a Riemannian model for the subset contained in each node Figure, the multi-layer Riemann graph RG(P) that constitutes P; (4) Perform normal propagation on surface samples based on the multi-layer Riemann graph.

为实现发明目的,所述的多层黎曼图约束的法向传播方法,在步骤(2)中点云多分辨率模型T的结构为:(1)T的每个结点存储P中的一个样点,且同层任意两个结点所存储的样点不同;(2)任意一个结点T所存储的样点是P中距T的子结点中存储的样点所构成的点集的均值点最近的样点;(3)根结点不存储样点。In order to realize the purpose of the invention, the normal propagation method of the described multi-layer Riemann diagram constraint, in step (2), the structure of the point cloud multi-resolution model T is: (1) each node of T stores the One sample point, and the sample points stored by any two nodes in the same layer are different; (2) The sample point stored by any node T is a point composed of the sample points stored in the sub-nodes of T in P The nearest sample point of the mean point of the set; (3) The root node does not store sample points.

为实现发明目的,所述的多层黎曼图约束的法向传播方法,在步骤(2)中点云多分辨率模型T(P)的树状结构从叶层结点开始向上逐层构建,若设叶结点为树的第1层结点,每个结点存储点云P中的一个样点,则第i>1层非根结点的构造方法依次包含以下过程:(1)将T(P)的第i-1层结点划分为任意两个元素的交集为空的集合{Oj i-1},j=1,2,…,ni-1,ni-1>1;(2)在T(P)的第i层构造结点Ti j;(3)提取Oj i-1中各个结点包含的样点,形成点集Pj i-1;(4)计算Pj i-1的均值点cj i-1;(5)从Pj i-1中选择距cj i-1最近的样点x;(6)将x存储于Ti j,并将Oj i-1中的结点全部作为Ti j的子结点。In order to realize the purpose of the invention, the normal propagation method of the described multi-layer Riemann graph constraint, in step (2), the tree structure of the point cloud multi-resolution model T (P) starts from the leaf layer node and builds up layer by layer , if the leaf nodes are set as the first layer nodes of the tree, and each node stores a sample point in the point cloud P, then the construction method of i>1 layer non-root nodes includes the following process in turn: (1) Divide the i-1th layer node of T(P) into the set {O j i-1 }, j=1,2,...,n i-1 ,n i-1 where the intersection of any two elements is empty >1; (2) Construct node T i j in the i-th layer of T(P); (3) Extract sample points contained in each node in O j i-1 to form point set P j i-1 ; ( 4) Calculate the mean point c j i-1 of P j i-1 ; ( 5) Select the sample point x closest to c j i-1 from P j i-1 ; (6) Store x in T i j , and take all the nodes in O j i-1 as the child nodes of T i j .

为实现发明目的,所述的点云多分辨率模型构建步骤(1)中将T(P)的第i-1层结点划分为集合{Oj i-1}的过程依次包含以下步骤:(1)为T(P)的第i-1层结点所包含的样点构建k-d树ψ,并为ψ中的样点与T(P)的第i-1层结点建立一一对应关系;(2)设集合O为空集,对于T(P)的第i-1层结点中任一结点Tj i-1,基于ψ的k>1近邻查询方法获取距Tj i-1所包含的样点最近的k个样点所构成的集合λj i-1,设λj i-1中各样点所对应的T(P)的第i-1层结点构成集合Oj i -1,若Oj i-1中的任一结点未在O中出现,则将Oj i-1作为元素存入O;(3)对于步骤(2)所得到的集合O={Oj i-1},提取Oj i-1中各个结点包含的样点,形成点集Pj,计算Pj的均值点cj,形成均值点集{cj},并建立{cj}与O中各个结点集合的一一对应关系;(4)设不属于O的T(P)的第i-1层结点构成集合Ui-1,对于Ui-1中任一样点uj,从{cj}中选择距uj所包含的样点最近的均值点cmin,将uj存入cmin在O中对应的结点集合。In order to realize the purpose of the invention, in the described point cloud multi-resolution model construction step (1), the i-1th layer node of T(P) is divided into the process of set {O j i-1 } which comprises the following steps in turn: (1) Construct a kd tree ψ for the sample points contained in the i-1th layer node of T(P), and establish a one-to-one correspondence between the sample points in ψ and the i-1th layer node of T(P) (2) Let the set O be an empty set, for any node T j i-1 in the i-1th layer node of T(P), the k>1 neighbor query method based on ψ can obtain the distance T j i The set λ j i-1 composed of the nearest k sample points of the sample points contained in -1 , let the i- 1th layer nodes of T(P) corresponding to each sample point in λ j i-1 form a set O j i -1 , if any node in O j i-1 does not appear in O, store O j i-1 as an element in O; (3) For the set O obtained in step (2) ={O j i-1 }, extract the sample points contained in each node in O j i-1 , form a point set P j , calculate the mean point c j of P j , form the mean point set {c j }, and establish The one-to-one correspondence between {c j } and each node set in O; (4) Let the i-1th layer nodes of T(P) not belonging to O constitute a set U i-1 , for U i-1 For any sample point u j , select the mean point c min closest to the sample points included in u j from {c j }, and store u j into the node set corresponding to c min in O.

为实现发明目的,所述的多层黎曼图约束非法向传播方法,在步骤(2)中,多分辨率模型根结点的构造过程为,以样条曲面Sj i-1逼近Pj i-1,基于Sj i-1估计样点x的高斯曲率值C(x),若C(x)大于预设的曲率阈值ε,则终止T(P)的构造过程,删除第i层的全部结点,则在第i+1层构造一个结点作为T(P)的根结点,并将T(P)的第i层结点作为根结点的子结点。In order to achieve the purpose of the invention, the multi-layer Riemann diagram constraint is not a forward propagation method. In step (2), the construction process of the root node of the multi-resolution model is to approach P j with the spline surface S j i-1 i-1 , estimate the Gaussian curvature value C(x) of sample point x based on S j i-1 , if C(x) is greater than the preset curvature threshold ε, the construction process of T(P) is terminated, and the i-th layer is deleted All the nodes in the i+1th layer are constructed as the root node of T(P), and the i-th layer nodes of T(P) are used as the child nodes of the root node.

为实现发明目的,所述的多层黎曼图约束非法向传播方法,在步骤(4)中基于多层黎曼图对曲面样本进行法向传播的过程为,对多层黎曼图结点进行先序遍历,以当前遍历结点为黎曼图,将黎曼图中的边的权值赋为w=1-|ni·nj|,ni、nj分别表示黎曼图中边(pi,pj)的端点对应的法向量,利用Prim算法计算黎曼图的最小生成树,将该黎曼图的关联顶点作为起始点,并以该点法向量的朝向为参考法向遍历黎曼图最小生成树进行法向量的传播,若ni·nj=-1,则进行法向翻转,遍历结束,即完成法向传播过程。In order to realize the purpose of the invention, the non-normal propagation method of the multi-layer Riemann graph constraint, in step (4), the process of carrying out normal propagation to the surface sample based on the multi-layer Riemann graph is, to the multi-layer Riemann graph node Perform preorder traversal, take the current traversal node as the Riemann graph, and assign the weight of the edge in the Riemann graph to w=1-|n i n j |, n i and n j respectively represent the Riemann graph For the normal vector corresponding to the end point of the edge (p i , p j ), use the Prim algorithm to calculate the minimum spanning tree of the Riemann diagram, use the associated vertex of the Riemann diagram as the starting point, and use the direction of the normal vector of this point as the reference method Propagate the normal vector to traverse the minimum spanning tree of the Riemann graph. If n i ·n j =-1, then perform normal vector flipping, and the traversal ends, that is, the process of normal vector propagation is completed.

本发明与现有技术相比,具有以下优点:Compared with the prior art, the present invention has the following advantages:

(1)基于聚类分析与曲率偏差控制的点云多分辨率模型构建方法,自下而上实现了海量复杂形状点云层次简化模型,在数据结构方面为样点法向传播区域的分治处理奠定了基础。(1) The point cloud multi-resolution model construction method based on cluster analysis and curvature deviation control realizes a hierarchical simplified model of mass complex shape point clouds from bottom to top, and divides and conquers the normal propagation area of samples in terms of data structure Processing lays the groundwork.

(2)基于点云多分辨率模型,提出多层黎曼图的构造方法以及样点法向在多层黎曼图中传播方法,有效提高了海量复杂形状点云法向统一过程的计算效率与准确性。(2) Based on the point cloud multi-resolution model, the construction method of the multi-layer Riemann diagram and the propagation method of the normal direction of the sample points in the multi-layer Riemann diagram are proposed, which effectively improves the calculation efficiency of the unified process of the normal direction of massive complex shape point clouds with accuracy.

(3)在法向传播过程中,分别对多层黎曼图的结点进行法向传播,降低了是时间复杂度,提高了法向传播的效率;并实时释放内存,提高了内存的利用率,增加了算法的吞吐量,适用于海量数据的处理。(3) In the normal propagation process, the nodes of the multi-layer Riemann graph are respectively propagated in the normal direction, which reduces the time complexity and improves the efficiency of the normal propagation; and releases the memory in real time, improving the utilization of the memory The rate increases the throughput of the algorithm and is suitable for the processing of massive data.

附图说明Description of drawings

图1是本发明多层黎曼图约束的法向传播方法的程序流程图;Fig. 1 is the program flow diagram of the normal propagation method of multilayer Riemann graph constraint of the present invention;

图2是多层黎曼图构建示意图;Figure 2 is a schematic diagram of the construction of a multi-layer Riemann diagram;

图3是法向统一示意图;Fig. 3 is a schematic diagram of normal direction unification;

图4是实施例一中采样数据;Fig. 4 is sampling data in embodiment one;

图5是实施例一中采样数据法向估计示意图;Fig. 5 is a schematic diagram of sampling data normal direction estimation in Embodiment 1;

具体实施方式Detailed ways

下面结合附图及实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1是本发明多层黎曼图约束的法向传播方法程序实现流程图,可采用C程序设计语言实现。多层黎曼图约束的法向传播方法程序主要模块包括对实物表面样点进行多分辨率模型构建,多层黎曼图构建以及基于多层黎曼图的法向传播等。Fig. 1 is a flow chart of the program implementation of the normal propagation method constrained by the multi-layer Riemann diagram of the present invention, which can be realized by using the C programming language. The main modules of the program for the normal propagation method constrained by multi-layer Riemann diagrams include the construction of multi-resolution models for sample points on the surface of objects, the construction of multi-layer Riemann diagrams, and the normal propagation based on multi-layer Riemann diagrams.

多分辨率模型是树状结构从叶层结点开始向上逐层构建,若设叶结点为树的第1层结点,每个结点存储点云P中的一个样点,则第i>1层非根结点的构造方法依次包含以下过程,构建过程的主要步骤为:(1)初始化i←1,设定阈值ε;(2)将T(P)的第i-1层结点划分为任意两个元素的交集为空的集合{Oj i-1},j=1,2,…,ni-1,ni-1>1;(3)j←1;(4)在T(P)的第i层构造结点Ti j;(5)提取Oj i-1中各个结点包含的样点,形成点集Pj i-1;(4)计算Pj i-1的均值点cj i-1;(5)从Pj i-1中选择距cj i-1最近的样点x;(6)计算x高斯曲率值C(x);(7)若C(x)大于预设的曲率阈值ε,则执行步骤(11);(8)将x存储于Ti j,并将Oj i-1中的结点全部作为Ti j的子结点;(9)若i<ni-1,则i←i+1,执行步骤(2);(10)j←j+1;(11)重复(3)-(10);(11)删除第i层的全部结点,在第i+1层构造一个结点作为T(P)的根结点,获得多分辨率模型T(P)。The multi-resolution model is a tree structure that starts from the leaf layer node and builds up layer by layer. If the leaf node is set as the first layer node of the tree, and each node stores a sample point in the point cloud P, then the i-th The construction method of non-root nodes >1 layer includes the following processes in turn. The main steps of the construction process are: (1) Initialize i←1 and set the threshold ε; The point is divided into the set {O j i-1 },j=1,2,…,n i-1 , where the intersection of any two elements is empty, and n i-1 >1;(3)j←1; (4 ) Construct node T i j in the i-th layer of T(P); (5) Extract the sample points contained in each node in O j i-1 to form a point set P j i-1 ; (4) Calculate P j The mean point c j i- 1 of i-1 ; (5) select the sample point x closest to c j i-1 from P j i-1 ; (6) calculate the x Gaussian curvature value C(x); (7 ) If C(x) is greater than the preset curvature threshold ε, execute step (11); (8) store x in T i j , and set all nodes in O j i-1 as children of T i j node; (9) if i<n i-1 , then i←i+1, execute step (2); (10) j←j+1; (11) repeat (3)-(10); (11 ) Delete all the nodes in the i-th layer, construct a node in the i+1-th layer as the root node of T(P), and obtain the multi-resolution model T(P).

上述步骤(2)中,将T(P)的第i-1层结点划分为任意两个元素的交集为空的集合{Oj i-1}的具体步骤是:(1)初始化O,C为空集;(2)为T(P)的第i-1层结点所包含的样点构建k-d树ψ,并为ψ中的样点与T(P)的第i-1层结点建立一一对应关系;(3)j←1(4)基于ψ查询Tj i-1所包含的样点近邻集合λj i-1;(5)在T(P)的第i-1层结点中搜索λj i-1中各样点所对应结点构成集合Oj i-1(6)若O存在Oj i-1中的结点,执行步骤(9);(7)O←O∪Oj i-1;(8)提取Oj i-1中各个结点包含的样点,形成点集Pj,计算Pj的均值点cj(9)C←C∪cj,并建立C中元素与O中各个结点集合的一一对应关系;(9)j←j+1;(10)重复(2)-(9);(11)设不属于O的T(P)的第i-1层结点构成集合Ui-1,对于Ui-1中任一样点uj,从C中选择距uj所包含的样点最近的均值点cmin,将uj存入cmin在O中对应的结点集合;(12)得到任意两个元素的交集为空的集合{Oj i-1}。In the above step (2), the specific steps of dividing the i-1th layer node of T(P) into the set {O j i-1 } whose intersection of any two elements is empty are: (1) Initialize O, C is an empty set; (2) Construct a kd tree ψ for the sample points contained in the i-1th layer node of T(P), and construct the kd tree ψ for the sample points in ψ and the i-1th layer node of T(P) (3) j←1 (4) Based on ψ query the sample point neighbor set λ j i- 1 contained in T j i-1 ; (5) at the i-1th of T(P) In the layer nodes, search for the nodes corresponding to each sample point in λ j i-1 to form a set O j i-1 (6) If O exists in the node in O j i-1 , perform step (9); (7) O←O∪O j i-1 ; (8) Extract the sample points contained in each node in O j i-1 to form a point set P j , and calculate the mean point c j of P j ( 9)C←C∪c j , and establish a one-to-one correspondence between elements in C and each node set in O; (9) j←j+1; (10) repeat (2)-(9); (11) set T that does not belong to O The i-1th layer nodes of (P) form a set U i-1 , for any sample point u j in U i-1 , select the mean point c min closest to the sample point contained in u j from C, and set Store u j into the node set corresponding to c min in O; (12) Get the set {O j i-1 } where the intersection of any two elements is empty.

图2是基于曲面样本的多分辨率模型构造多层黎曼图的示意图。在获得曲面样本的多分辨率模型之后,自上而下遍历该模型中的各层结点,为每个结点所包含的子集构造黎曼图,并选择此结点为该黎曼图的关联顶点。Fig. 2 is a schematic diagram of constructing a multi-layer Riemann diagram based on a multi-resolution model of surface samples. After obtaining the multi-resolution model of the surface sample, traverse the nodes of each layer in the model from top to bottom, construct a Riemann diagram for the subset contained in each node, and select this node as the Riemann diagram associated vertices.

在构建黎曼图的过程中,将最小生成树算法简化为:在顶点v的k邻域的范围内,通过将顶点之间的欧氏距离作为边的权值来构造黎曼图,但此方法构造的黎曼图易产生大量的冗余边。为确保黎曼图中不含有冗余边,需要验证每条边的唯一性,即如果两个顶点之间存在两条边,则必有一条边是冗余边。为此,遍历黎曼图中的每条边,若存在ei,j、ej,i,则删除其中一条。随着多层黎曼图中剖分层次的递进,对原始数据集的表达也越详细。顶层黎曼图覆盖整个模型,其下层黎曼图是对顶层黎曼图中结点处的详细表述,且层数越大,其黎曼图反映的局部表面细节越精确,如图2所示,其中,不同大小的样点表示位于不同层次的黎曼图中的样点。In the process of constructing the Riemann diagram, the minimum spanning tree algorithm is simplified as: within the range of the k neighborhood of the vertex v, the Riemann diagram is constructed by using the Euclidean distance between the vertices as the weight of the edge, but this The Riemann diagram constructed by this method tends to generate a large number of redundant edges. In order to ensure that there are no redundant edges in the Riemann graph, the uniqueness of each edge needs to be verified, that is, if there are two edges between two vertices, one edge must be a redundant edge. To do this, traverse each edge in the Riemann graph, and if e i,j , e j,i exist, delete one of them. With the advancement of the subdivision level in the multi-layer Riemann diagram, the expression of the original data set is more detailed. The top Riemann diagram covers the entire model, and the lower Riemann diagram is a detailed description of the nodes in the top Riemann diagram, and the larger the number of layers, the more accurate the local surface details reflected by the Riemann diagram, as shown in Figure 2 , where samples of different sizes represent samples located in different levels of the Riemann diagram.

为保证法向量朝向与上层结点的法向量朝向一致,可采用自上而下的方法实现黎曼图间的法向传播,即从根结点出发,通过依次遍历多层黎曼图结点实现曲面样本的法向传播。先序遍历算法能够较好的解决结点遍历问题。首先输入多层黎曼图,并将根结点作为当前结点,在遍历过程中对当前结点进行访问操作,然后依次访问当前结点的子结点。迭代执行这一过程,直到完成所有结点的访问。In order to ensure that the direction of the normal vector is consistent with the direction of the normal vector of the upper node, a top-down method can be used to realize the normal propagation between the Riemann diagrams, that is, starting from the root node, traversing the nodes of the multi-layer Riemann diagram in turn Implements normal propagation of surface samples. The preorder traversal algorithm can better solve the node traversal problem. First, input a multi-layer Riemann diagram, and use the root node as the current node, perform access operations on the current node during the traversal process, and then access the child nodes of the current node in turn. This process is iteratively performed until all nodes have been visited.

对于多层黎曼图中每个结点的访问即为对该黎曼图的法向量统一。对于每个黎曼图,给出如下法向传播方法:(1)将黎曼图的边的权赋值为w=1-|ni·nj|式中,ni、nj分别表示黎曼图中边(pi,pj)的端点对应的法向量。(2)利用Prim算法计算黎曼图的最小生成树。(3)将该黎曼图的关联顶点作为起始点,并以该点法向量的朝向为参考法向遍历黎曼图最小生成树并进行法向量的传播。若ni·nj=-1,则进行法向翻转。The access to each node in the multi-layer Riemann graph is the unification of the normal vectors of the Riemann graph. For each Riemann graph, the following normal propagation method is given: (1) Assign the weight of the edge of the Riemann graph to w=1-| n i n j | The normal vector corresponding to the endpoint of the edge (p i ,p j ) in the Mann graph. (2) Use the Prim algorithm to calculate the minimum spanning tree of the Riemann diagram. (3) The associated vertex of the Riemann diagram is used as a starting point, and the direction of the normal vector of the point is used as a reference to traverse the minimum spanning tree of the Riemann diagram and propagate the normal vector. If n i ·n j =-1, perform normal flipping.

设λ(p)为p∈P的近邻样点集合,以λ(p)中样点作为控制点,则设双三次Bézier曲面逼近函数为:Let λ(p) be the set of neighboring sample points of p∈P, and take the sample points in λ(p) as control points, then set the bicubic Bézier surface approximation function as:

m=n=3,基于局部样本可计算出三次Bézier曲面,利用高斯曲率公式计算p的曲率为:m=n=3, The cubic Bézier surface can be calculated based on local samples, and the curvature of p is calculated using the Gaussian curvature formula as:

式中,n表示样点p的法向量,Su、Sv为基于λ(p)拟合的参数曲面的一阶偏导,Suv、Suu、Svv为二阶偏导。基于样点p的高斯曲率可实现误差控制,若c(p)>ε,ε为误差控制阈值,则终止多分辨率模型的构造过程。In the formula, n represents the normal vector of the sample point p, Su and S v are the first - order partial derivatives of the parametric surface fitted based on λ(p), and S uv , Suuu and S vv are the second-order partial derivatives. Error control can be realized based on the Gaussian curvature of the sample point p. If c(p)>ε, ε is the error control threshold, the construction process of the multi-resolution model will be terminated.

实施例一:应用本文所述方法对采样数据进行法向统一,其中,法向计算由PCA算法计算获得。该模型规模大且结构复杂,包含尖锐特征、过渡表面等复杂几何特征区域,可作为验证本文所述方法有效性的模型数据。通过观察图4可知,本文方法能正确的实现尖锐特征、过渡表面区域的法向统一。Embodiment 1: apply the method described herein to unify the normal direction of the sampled data, wherein the normal direction is calculated by the PCA algorithm. The model has a large scale and complex structure, including sharp features, transition surfaces and other complex geometric feature areas, which can be used as model data to verify the effectiveness of the method described in this paper. By observing Figure 4, it can be seen that the method in this paper can correctly realize the normal unification of sharp features and transitional surface regions.

以上所述,仅是本发明的较佳实施例而已,并非是对本发明作其他形式的限制,任何熟悉本专业的技术人员可能利用上述解释的技术内容加以变更或改型为等同变化的等效实施例。但是凡事未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同变化与改型,仍属于本发明技术方案的保护范围。The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention to other forms. Any skilled person who is familiar with this profession may use the technical content explained above to change or remodel it into an equivalent change. Example. But everything does not depart from the content of the technical solution of the present invention, and any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention still belong to the protection scope of the technical solution of the present invention.

Claims (7)

1. a kind of curved surface sample normal direction transmission method of multilayer Riemann constraint diagram, it is characterised in that step is followed successively by:It (1) is curved surface Sample P constructs kd tree, and is free point by the sampling point state initialization in P;(2) multi-resolution models T (P) is constructed for P;(3) Using each layer node of top-down strategy traversal curved surface sample multi-resolution models, the subset structure for including by each node Riemann's figure is made, the multilayer Riemann for constituting P schemes RG (P);(4) normal direction propagation is carried out to curved surface sample based on multilayer Riemann figure.
2. the multi-resolution models T (P) as described in step (2) in claim 1, it is characterised in that:(1) each node of T (P) A sampling point in P is stored, and the sampling point that same layer any two node is stored is different;(2) any one node T is stored Sampling point is the nearest sampling point of the average point for the point set that the sampling point stored in child node in P away from T is constituted;(3) root node is not deposited Sample storage point.
3. point cloud multi-resolution models T (P) as described in claim 2, it is characterised in that:Tree is opened from leaf layer node Begin successively building upwards, if setting the 1st layer of node that leaf node is tree, a sampling point in each node storage cloud P, then i-th> The building method of 1 layer of non-root node successively includes following procedure:(1) (i-1)-th layer of node of T (P) is divided into any two member The intersection of element is empty set { Oj i-1, j=1,2 ..., ni-1, ni-1>1;(2) in i-th layer of structural knot of T (P)(3) it mentions Take Oj i-1In each node sampling point for including, form point set Pj i-1;(4) P is calculatedj i-1Average point cj i-1;(5) from Pj i-1Middle selection Away from cj i-1Nearest sampling point x;(6) x is stored in Ti j, and by Oj i-1In node whole conductChild node.
4. point cloud multi-resolution models T (P) as described in claim 2, it is characterised in that:If the construction process of T (P) is i>1 layer of termination then constructs root node of the node as T (P) in i+1 layer, and using i-th layer of node of T (P) as root knot The child node of point.
5. putting the building method of i-th layer of node in cloud multi-resolution models T (P) as described in claim 3, feature exists In:(i-1)-th layer of node of T (P) is divided into set { O in step (1)j i-1Process successively comprise the steps of:It (1) is T (P) sampling point that (i-1)-th layer of node is included constructs k-d tree ψ, and (i-1)-th layer of node for sampling point and T (P) in ψ establishes one One corresponding relationship;(2) set O is set as empty set, for any node T in (i-1)-th layer of node of T (P)j i-1, the k based on ψ>1 is close Adjacent querying method is obtained away from Tj i-1The set λ that k nearest sampling point of the sampling point for being included is constitutedj i-1If λj i-1In each sampling point institute (i-1)-th layer of node of corresponding T (P) constitutes set Oj i-1If Oj i-1In any node do not occur in O, then by Φj i-1Make O is stored in for element;(3) set O={ O obtained for step (2)j i-1, extract Oj i-1In each node sampling point for including, Form point set Pj, calculate PjAverage point cj, form mean value point set { cj, and establish { cjWith O in each node set one by one Corresponding relationship;(4) the (i-1)-th layer of node composition set U for being not belonging to the T (P) of O is seti-1, for Ui-1In any sampling point uj, from { cj} Middle selection is away from ujThe nearest average point c of the sampling point for being includedmin, by ujIt is stored in cminThe corresponding node set in O.
6. point cloud multi-resolution models T (P) i-th as claimed in claim 3>The building method of 1 layer of non-root node, feature exist In:With spline surface Sj i-1Approach Pj i-1, it is based on Sj i-1The Gaussian curvature value C (x) for the sampling point x that estimating step (5) obtains, if C (x) it is greater than preset curvature threshold ε, then terminates the construction process of T (P), i-th layer of whole nodes is deleted, with claim 4 institute It states method and constructs root node at i-th layer for T (P).
7. the normal direction transmission method of multilayer Riemann constraint diagram as described in claim 1, it is characterised in that in step (4):To more Layer Riemann's figure node carries out preorder traversal, is Riemann's figure with current traversing nodes, the weight on the side in Riemann's figure is assigned to w=1- |ni·nj|, ni、njRespectively indicate side (p in Riemann's figurei,pj) the corresponding normal vector of endpoint, utilize Prim algorithm calculate Riemann The minimum spanning tree of figure, using the incident vertex of Riemann's figure as starting point, and being oriented with reference to normal direction with the normal vector It traverses Riemann and schemes the propagation that minimum spanning tree carries out normal vector, if ni·nj=-1 then carries out normal direction overturning, and traversal terminates, i.e., complete Normal communication process.
CN201810630897.4A 2018-06-19 2018-06-19 The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram Pending CN108876834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810630897.4A CN108876834A (en) 2018-06-19 2018-06-19 The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810630897.4A CN108876834A (en) 2018-06-19 2018-06-19 The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram

Publications (1)

Publication Number Publication Date
CN108876834A true CN108876834A (en) 2018-11-23

Family

ID=64339513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810630897.4A Pending CN108876834A (en) 2018-06-19 2018-06-19 The curved surface sample normal direction transmission method of multilayer Riemann's constraint diagram

Country Status (1)

Country Link
CN (1) CN108876834A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069445A1 (en) * 2003-03-07 2008-03-20 Martin Weber Image processing apparatus and methods
CN107610228A (en) * 2017-07-05 2018-01-19 山东理工大学 Curved surface increment topology rebuilding method based on massive point cloud

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069445A1 (en) * 2003-03-07 2008-03-20 Martin Weber Image processing apparatus and methods
CN107610228A (en) * 2017-07-05 2018-01-19 山东理工大学 Curved surface increment topology rebuilding method based on massive point cloud

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
HIROSHI MASUDA,等: "Reconstruction of Polygonal Faces from Large-Scale Point-Clouds of Engineering Plants", 《COMPUTER-AIDED DESIGN AND APPLICATIONS》 *
王永波: "基于点云的空间对象表面重建及其多分辨率表达方法研究", 《博士学位论文》 *
薄志成等: "海量点云曲面增量拓扑重建", 《计算机辅助设计与图形学学报》 *
邹万红等: "一种新的点云数据特征骨架提取方法", 《浙江大学学报(工学版)》 *
魏江,等: "多视点三维数据合并中的定标球球心算法", 《计算机辅助设计与图形学学报》 *

Similar Documents

Publication Publication Date Title
Crane et al. A survey of algorithms for geodesic paths and distances
CN106023298B (en) Point cloud Rigid Registration method based on local Poisson curve reestablishing
Xie et al. Point clouds learning with attention-based graph convolution networks
Dimitrov et al. Non‐uniform B‐spline surface fitting from unordered 3D point clouds for as‐built modeling
Salinas et al. Structure‐aware mesh decimation
CN110941261B (en) Autonomous underwater vehicle multi-zone traversal path planning method
CN113065594A (en) Road network extraction method and device based on Beidou data and remote sensing image fusion
CN112699623A (en) High-precision heat flow calculation method based on unstructured grid regularized reconstruction technology
CN108230452B (en) A Model Hole Filling Method Based on Texture Synthesis
CN110176071A (en) A 3D Point Cloud Reconstruction Method Based on Feature Template
CN115249298A (en) Disordered point cloud curved surface reconstruction method based on adaptive learning neural network
Ohrhallinger et al. An efficient algorithm for determining an aesthetic shape connecting unorganized 2d points
CN118485798A (en) A method for generating three-dimensional pipeline models based on sparse point clouds
CN120373183A (en) River three-dimensional water flow numerical simulation method
CN112967333B (en) Complex point cloud skeleton extraction method and system based on grading
CN106157371A (en) The efficient gridding method of dispersion point cloud based on self adaptation adjacent circumferential expansion strategy
CN117172399B (en) An automatic wire laying trajectory planning method based on heuristic algorithm
CN118628384A (en) A multi-scale point cloud fusion denoising method for cultural relics digitization
CN117454502A (en) Three-dimensional mesh quality optimization method based on modified Newton method based on Wolfe criterion
CN108876834A (en) The curved surface sample normal direction transmission method of multilayer Riemann&#39;s constraint diagram
CN104318594B (en) Quadrilateral meshing method for plane vector field
Gu et al. D3-td3: deep dense dueling architectures in td3 algorithm for robot path planning based on 3d point cloud
Quadros et al. 3 D discrete skeleton generation by wave propagation on PR-octree for finite element mesh sizing
Loseille et al. Developments on the P^ 2 cavity operator and Bézier Jacobian correction using the simplex algorithm.
CN107578821A (en) A real-time efficient GPU rendering method for virtual surgery system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181123

WD01 Invention patent application deemed withdrawn after publication