<<

International Journal of Research in Engineering and Science (IJRES) ISSN (Online): 2320-9364, ISSN (Print): 2320-9356 www.ijres.org Volume 4 Issue 5 ǁ May. 2016 ǁ PP. 06-10

Research of 3D Irregular Fragment Reassembly Technique in Reverse Engineering

NIE Bo-lin, ZHANG , CHE Xuan-lin (School of Mechanical Engineering, Shanghai University of Engineering Science, Shanghai, 201620)

Abstract:- in order to achieve some pieces of important research value of restructuring, this paper aiming at the shortcomings of the current existing algorithm proposed a new spatial 3 d irregular fragments stitching method. First Uses the method to establish point cloud based on kd - tree search space the topology relationship, for k neighborhood search quickly, further realize the boundary extraction of point cloud fragments; Secondly using Nurbs curve interpolation method to deal with boundary feature points, complete boundary fit at the same time the curve interpolation points of curvature and torsion; Finally based on the calculation of curvature and torsion, according to the longest common subsequence complete curve matching, and then complete the point cloud fragments of stitching. Through examples show that the proposed algorithm good robustness, high matching precision.

Keywords:- Reverse Engineering ;Curve fitting ;Curve matching ;The Longest Common uence (LCS) ; fragment reassembly

I. INTRODUCTION So-called 3 d fragments split is some irregular space debris joining together into a complete model of the initial. In our country, ceramic relics buried in the ground, because of geographical or man-made reasons, the unearthed will be destroyed into large and small pieces. As a result of these pieces of cultural relics still has the very high archaeological value, therefore how to use modern technology to restore these cultural relics has important research significance. Currently, the main space debris in the fracture restoration contour curve matching, as part of the curve matching problem. In recent years, many Chinese and foreign scholars on curve matching this sort of question to do a lot of research., the earliest Besl[1] and proposed recently to 3 d space curve matching point iteration (iterative closest point, ICP) method, but as a result of this method requires an empty a subset of the curve is another empty asked curve, but in pieces joining together, the two can match the intersection, the space curve can be not as the empty set, rather than an outline is another subset of contour, so this method is difficult to directly used for contour curve matching of fragments merging. Ucoluk G[2] the longest common subsequence algorithm is proposed, such as sampling points on the curve curvature and torsion as the characteristic, according to the similar feature points of similar matrix, using the dynamic programming algorithm to find the longest matching sequence, as the optimal matching, the algorithm deficiency is high time complexity, the ideal smooth curve matching effect is good, does not apply to any free curve shape. Wolfson[3] to curve resampling in the first place, such as computing the curvature of the sample point, the curvature to characters value, and then according to the matching hash algorithm. Steven [4] according to the curvature of the contour curve feature points such as value, take the Pearson coefficient calculation according to the similarity of two curves. Shin H[5] through statistics such as mural contour curve geometric features include information such as length, area, four crown, compare their similarity. Oxholm G[6] computing the curvature of the contour curve of sampling points, such as burning rate and the color of character string, to take the longest common substring realize contour matching. Xianfeng[7] on existing two-dimensional curve matching algorithm to carry on the induction and summary. Pan Rongjiang[8] etc is put forward based on the longest common subsequence (LCS) fragments of the contour curve matching algorithm is used to match, according to the characteristics of point contour curve segment, and find out the LCS between two piecewise curve, the curve of the spell of overlapping tests results, it is concluded that the optimal matching. Lv Ke etc[9] will outline curve segment, and put forward the measure curve segment similarity hash vector, using contour line segment matching algorithm based on Fourier transform, by comparing the two hash of the profile of the vector for the analysis of curve segment is similar. Jian wang[10], etc according to the curvature of the sampling points get two curves on match point, through the alignment of the matching point Frenet frame curve matching. -cheng zhou[11] presents a using wavelet multiscale description of contour curve matching algorithm. Zhu Yanjuan etc[12] are given based on the sampling point of curvature and torsion of the contour curve matching algorithm, according to total curvature to extract

www.ijres.org 6 | Page Research Of 3d Irregular Fragment Reassembly Technique In Reverse Engineering the feature points, and the contour curve segment, according to the feature point on the piecewise curve curvature and torsion judgment piecewise curves is similar, and then according to the method of vector for further verification, the curve of the high similarity of 3 d transform at the same time, they are aligned, so as to realize the splice pieces.

II. FRAGMENT REASSEMBLY 2.1 boundary extraction and boundary fitting 2.1.1 boundary extraction This article adopts the method of tree search based on kd - a point cloud space the topology relationship, k neighborhood search quickly. In the mining point P and the search for k neighboring points Mj (j = 0,..., k - 1) as a local reference data, using the least squares fitting out the tangent plane. Assume that F (x, y, z) = a1 + a2 + a3 y z + a4 x = 0, for the micro tangent plane of k + 1 point, written in matrix form is:

x0 y0 z0 1  a1  x y z 1  a   1 1 1   2  = 0 (1)     a3      x y z 1 a  k k k   4 

T ,a=[a1,a2,a3,a4] 。So the Aa = 0.Singular value A=

decomposition of ATA: ∆ 0 퐴 = 푈 푉퐻 (2) 0 0 Type in the U and V as the unitary matrix, ∆= 푑푖푎푔[ 휆1, 휆2, ⋯ , 휆푟 ] and the singular value of matrix A T is 휆푖 (i=1,2,3,…,r), which are characteristic values for A A. r is the number of singular values, and that number is eigenvalue of the matrix. ATA eigenvectors corresponding to the minimum eigenvalue is the least squares solution of Aa = 0.The micro tangent plane normal vector is n = (a1, a2, a3). The sampling points and their neighborhood K corresponding to the projection plane microdissection to ′ ′ obtain the projected point 푃푖 and 푀푖 (j = 0,1,2, ⋯, k -1), the point set scattered into general distribution. Calculated projection coordinates, assuming space unorganized points coordinates Ni (, yi, zi) (i = 0,1, ⋯, n), ′ ′ ′ which coordinates the micro-projection plane is cut (푥푖 , 푦푖 , 푧푖 ), so there are: ′ ′ ′ 푎1푥푖 + 푎2푦푖 + 푎3푧푖 + 푎4 = 0 (3)

푥′ − 푥 푦′ − 푦 푧′ − 푧 푖 푖 = 푖 푖 = 푖 푖 = 푘 (4) 푎1 푎2 푎3 In the equation, 푎 푥 + 푎 푦 + 푎 푧 푘 = 1 푖 2 푖 3 푖 2 2 2 푎1 + 푎2 + 푎3 ′ ′ ′ Simultaneous equations (1) and (2) can be obtained projection point coordinates (푥푖 , 푦푖 , 푧푖 ). Construction xP'x plane coordinate system, the micro-cut plane to P'i origin to P'i to the vector direction from the farthest point P'i posed for the x-axis direction, perpendicular to the x-axis direction the y direction, the projection on the tangent plane of the micro-sample point, if its K neighbors projection points evenly distributed around the sample point, then the sampling point non-boundary characteristic points; if K neighborhood projection points around the sampling point unevenly distributed, it is considered that the sampling point for the [13] boundary characteristic point . In P'i as a starting point for its K points in the neighborhood on the micro- projection tangent plane as the end point defined vectors P'iM'j, the three-dimensional coordinates of the projection point conversion to cut the micro plane, and the plane parameters microdissection of. Projection points x, y coordinates are in P'iM'j vector corresponding to the projected length Mjx and Mjy of x-axis and y- axis, thereby obtaining projection point coordinates M'j the parameterized (Mjx, Mjy). Since Scattered clouds in the form of discrete spatial distribution of vector projected point is generally composed of random distribution, in order to facilitate the calculation, the first projection vector is normalized:

www.ijres.org 7 | Page Research Of 3d Irregular Fragment Reassembly Technique In Reverse Engineering

푃′푀′ 푀′ , 푀′ ′ " 푖 푗 푗푋 푗푌 푃푖 푀푗 = ′ " = = 푋푖 , 푌푗 (5) 푃푖 푀푗 ′ 2 ′ 2 푀푗푋 + 푀푗푌 ′ " In the equation, j =0,1,2,⋯,k-1. and j≠i. For vector 푃푖 푀푗 , giving it a force 퐹푖푗 , the direction of the force vector in ′ " the same direction, the size of the force is equal to | 푃푖 푀푗 |, then by calculating the K points in the neighborhood of sampling points for force 퐹푖푗 in component A and B on X and Y axes to identify the boundaries of the feature point, component calculated by the following equation:

퐾−1 퐾−1 퐾−1 ′ " 퐹푖푗 = 푃푖 푀푗 = 푋푗 (6) 푗 =0 푗 =0 푗 =0 푗 ≠푖 푗 ≠푖 푗 ≠푖 푋 푋

퐾−1 퐾−1 퐾−1 ′ " 퐹푖푗 = 푃푖 푀푗 = 푌푗 (7) 푗 =0 푗 =0 푗 =0 푗 ≠푖 푗 ≠푖 푗 ≠푖 푌 푌 First, set a threshold σ, when

퐾−1 푗 =0 퐹푖푗 푗 ≠푖 푋 > 휎 퐾 or

퐾−1 푗 =0 퐹푖푗 푗 ≠푖 푌 > 휎 퐾 it can be determined that the sample point as a boundary point.

2.1.2 Boundary Fitting Sort boundary point Boundary point of the feature extraction algorithm was presented random distribution, in order to obtain a continuous boundary line, the need for border feature points are sorted to facilitate subsequent processing point cloud data. Using the nearest point search algorithm to sort the boundary points,

The steps are as follows: (1)Take any centralized point Ps at boundary points extracted as a starting point to find the point of focus from the nearest point Pe and Ps as the growth end; (2)Ps (Pe) end, to find the distance Ps (Pe) of the nearest point P, P to calculate Ps and Pe distance ds and de, if ds (de) ≤de (ds), will be inserted into the P Ps before (Pe), and the point P as a new starting point (end point); otherwise, to the other end of the growth; (3)all point set points to determine whether the completion is the end of the sort; otherwise, go to step (2). Boundary characteristic points sorted though a simple straight line connecting faster, but the boundary line was simply C0 continuous (position continuous), not smooth enough, is not conducive to the subsequent processing, and for the most complex parts and molds, which boundary lines are generally curved, so this paper the method of NURBS curve interpolation boundary feature point processing. 1) knot vector solution In order to make a k-th B-spline curve by setting values to the point (i = 0,1, ..., n), its inverse process is generally the first end of the curve to make the two endpoints and data points corresponding to the beginning and end points consistent, each node data points Pi curve corresponding to the domain of definition [10] . k times (here take k = 3) B spline curve control vertices by the n+3 di (i = 0,1, ⋯, n +2) controls its [14] corresponding node vector U = [u0, u1, ⋯ , un +6] according to Hartley - Judd method to calculate the knot vector 푢0 = 푢1 = 푢2 = 푢3 = 0 (8) 푖−1 푗 =푖−푘 푙푗 푢푖 − 푢푖−1 = 푛+1 푠−1 (9) 푠=푘+1 푗 =푠−푘 푙푗 In the equation,i = k + 1, k + 2, ⋯, n + 3, lj controlling each side of the polygon. un +3 = un +4 = un +5 = un +6 = 1 (10) www.ijres.org 8 | Page Research Of 3d Irregular Fragment Reassembly Technique In Reverse Engineering

2) control points and weights factor solution First, to solve the unknown control points for interpolating data points Pi (i = 0,1, ..., n) of k (k = 3) B- spline curve is expressed as: 푖

푃 푢 = 푑푗 푁푗 ,3 푢 (11) 푗 =푖−3 Equation domain of u∈ [ui, ui +1] fry [u3, un +3]. The node values are substituted into the curve defined within the above equations, interpolation must meet the following conditions: 푖+3

푃 푢푖+3 = 푑푗 푁푗 ,3 푢푖+3 (12) 푗 For the period closed cubic B-spline curve P0 = Pn, the above equation a little, then closed curve represents unity to an open curve, so there d0 = dn, d1 = dn +1, d2 = dn +2. Thus, the solution of the above- mentioned equations contains n equations to obtain all control points.

Cubic NURBS curve is defined by the n +3 control points to control: 푛+2 푗 =0 휔푗 푁푗 ,3(푢)푑푗 푃 푢 = 푛+2 (13) 푗 =0 휔푗 푁푗 ,3(푢) ωj as a control point weight factor; Nj, 3 (u) is a decision node vector U 3 specification B-spline basis functions, dj control vertices. Weighting factor is the very nature NURBS curve, both in power factor ωj 1:00, NURBS curve degenerated into a cubic B-spline curves. 2.2 curve fitting By Ding pieces of the complexity of the case two fracture surfaces exact match is usually small, that is, their profile curve rarely identical, in most cases, two fragments of broken lines only partially overlap, that is only part of the outline of fracture match, so the match-inch based on the contour curve, you need to contour segmentation, two fault line as long as there is a segment contour overlap, they may have overlapped partial fragment. It became a segmentation contour curve shows feature string, you can use string matching the idea to feature string of horses Hotels, thereby calculating the similarity of the two curves. String matching algorithms include two, one is to find the longest common substring of two strings, require the original substring is a contiguous string of characters, which can not insert or delete characters, another algorithm is to find two longest common subsequence of string, a string of sub-sequence refers substring delete the original part of the character string obtained, showing sub-sequence of consecutive characters in the original string is not necessarily continuous. For example, define two strings X = "1232432" and Y = "243123", then their longest common strings have two "123" and "243", and also has the longest common subsequence of two "2432 "and" 2323 " If finding the longest common substring matching the contour of the curve, the two curves corresponds to looking in the same period of the curve. The use of the longest common subsequence contour curve matching, looking for the equivalent of two curves in the interval of a similar period of the curve, of course, the separation distance can not be made too large, because of the complexity, as well as discrete sampling error of the fracture surface contour curves, exact match interval may be very small, so we have to match two contour curves by finding the longest common subsequence. The contour segmentation curve l1 provided a total of m vertices, denoted by l1={p1,p2,…,pm}, calculate 1 2 푚 the curvature and torsion of each vertex of the string get wherein: 푙1 = 푝(휅,휏), 푝(휅,휏), ⋯ , 푝(휅,휏) , piecewise curve l2 there are n vertices, denoted as l2={p1,p2,…,pm} features to curvature and torsion indicated string as: 푙2 = 1 2 푚 푝(휅,휏), 푝(휅,휏), ⋯ , 푝(휅,휏) , the vertex p1 curve l1 and l2 on a similar distance on a vertex p1 is defined as follows: 푥 푦 2 푥 푦 2 푑 = 휅1푖 − 휅1푖 + 휏1푖 − 휏1푖 (14)

Theoretically, if l1 and l2 two curves match the corresponding point on which all similar distance should be0, that is, the two curves are equal. But in practice, because the data collection and calculation errors, matching the actual profile curve is not exactly the same, so the need to set a threshold error ε, so long as a similar distance between two points is less than the error threshold ε, considered two points Similarity. Seek sequence X = (x1, x2, ..., xm) and Y = {y1, y2, ... yn} basic methods longest common subsequence is calculated[15] according to the following recursive method: 0 푖 = 0, 푗 = 0 퐿 푖 푗 = 퐿 푖 − 1 푗 − 1 + 1 푖, 푗 > 0; 푥푗 = 푦푗 (15) 푀푎푥 퐿 푖 푗 − 1 , 퐿 푖 − 1 푗 푖, 푗 > 0; 푥푗 ≠ 푦푗 www.ijres.org 9 | Page Research Of 3d Irregular Fragment Reassembly Technique In Reverse Engineering

Wherein the length 퐿 푖 푗 for the X and Y of the longest common subsequence defined X, Y similarity is: 퐿 푖 푗 ξ = min m, n Vaguely defined as the maximum distance factor indices i and j allowed, that is, two matching characters allowed number of other characters, through the fuzzy matching factor can control the accuracy of the two feature strings, when the fuzzy factor is equal to 0, is the most long common substring. The time complexity of the method is O (mn), as used herein, Xin and other methods[16] calculated the similarity of sub-curves l1 and l2, fuzzy factor size is set to 2, when the similarity is greater than a given threshold, think both similar. The algorithm time complexity is O (p (m-p)), where p is the length of the longest common substring.

2.3 Examples of verification and analysis The method according to the paper a lot of point cloud fragments were verified the following results:

Table 1 segment profile curve matching results curve 1 feature points curve 2 feature points the length of the LCS similarityξ C11 149 C21 147 121 0.823 C11 149 C22 120 39 0.325 C11 149 C23 109 19 0.174 C11 149 C24 97 16 0.164

II. summary In order to achieve some pieces of important research value of restructuring, this paper aiming at the shortcomings of the current existing algorithm proposed a new spatial 3 d irregular fragments stitching method. First uses the method to establish point cloud based on kd - tree search space the topology relationship, for k neighborhood search quickly, further realize the boundary extraction of point cloud fragments; secondly using nurbs curve interpolation method to deal with boundary feature points, complete boundary fit at the same time the curve interpolation points of curvature and torsion; finally based on the calculation of curvature and torsion, according to the longest common subsequence complete curve matching, and then complete the point cloud fragments of stitching. Through examples show that the proposed algorithm good robustness, high matching precision.

References [1]. Besl P McKay N D. A method for registration of 3D shapes J .IEEE Transactions on Pattern Analysis and Machine Intelligence 1992 14( 2) : 239-256; [2]. Ucoluk G, TorosluI H. Automatic reconstruction of broken 3-D surface objects. Computers and Graphics, 1999, 23(4); [3]. Wolfson, H. J. On curve matching[J], IEEE Trans. Pattern Anal. Machine Intell. 12(5) (1990), 483–497; [4]. Steven E, Pierre B. Algorithm Reconstruction of Broken Fragments[J]; [5]. Shin H,Doumas C,Funkhouser T. et al.Analyzing fracture patterns in Theran wallpaintings.Proceedings of the 11th International Conference on Virtual Reality, Archaeology and Cultural Heritage Pages 71-78; [6]. G. Oxholm, and K. Nishino. Reassembling Thin Artifacts of Unknown Geometry. In Vast 2011. The 12th VAST International Symposium on Virtual Reality, Archaeology and Cultural Heritage Pages 49-56; [7]. DING Feng Hong and ZHANG Hong Jiang. Review on Shape Matching[J]. Acta Automatica Sinica,2001,27(5):678-694; [8]. PAN Rong Jiang , MENG Xiang Xu, and TU ChangHe. Fragment Re-Assembly Based on LCS Matching[J]. Chinese Journal of Computers,2005,28(3):350-356; [9]. Ke, GENG Guo , ZHOU Ming . Matching of 3D Curve Based on the Hash Method[J]. Acta Electronica Sinica,2003,31(2):294-296; [10]. , Zhou shui ,Zhang Li . A Novel Algorithm on Space Curve Matching[J]. China Mechanical Engineering,2006,17(16):1744-1747; [11]. Zhou Shu chneg. On Mosaicing of 3D Complex Shape and Restoration of fragmented Objects[D]. Xi’an Northwest University,2008; [12]. ZHU Yan juan,ZHOU Lai shui,ZHANG Li yan Algorithm for Three-Dimensional Fragments Reassembly[J]. Journal of Image and Graphics,1(12):164-170; [13]. Yiren,Wang Yibin,Peng and Zhang Jie. Improved algorithm for extraction of boundary characteristic point from scattered point cloud[J]. Computer Engineering and Applications, 2012,48(23):177-179; [14]. Hartley D J, Judd C J.Parametrization of Bezier-type B-spline curves and surfaces[J].Computer Aided Design,1978,10(1):130 134; [15]. Daniel S. Hirschberg. Algorithms for the Longest Common Subsequence Problem[J]. J.ACM,1977,24(4):664-675; [16]. and Shu Feng di. Improved Longest Common Subsequence Problem Fast Algorithm[J]. Application Research of Computers,2000,2:28-30; www.ijres.org 10 | Page