[go: up one dir, main page]

TW201007618A - Computer system and method for extracting boundary elements - Google Patents

Computer system and method for extracting boundary elements Download PDF

Info

Publication number
TW201007618A
TW201007618A TW97130282A TW97130282A TW201007618A TW 201007618 A TW201007618 A TW 201007618A TW 97130282 A TW97130282 A TW 97130282A TW 97130282 A TW97130282 A TW 97130282A TW 201007618 A TW201007618 A TW 201007618A
Authority
TW
Taiwan
Prior art keywords
boundary
point
triangle
judgment
points
Prior art date
Application number
TW97130282A
Other languages
Chinese (zh)
Other versions
TWI450216B (en
Inventor
Chih-Kuang Chang
Xin-Yuan Wu
Hua Huang
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW097130282A priority Critical patent/TWI450216B/en
Publication of TW201007618A publication Critical patent/TW201007618A/en
Application granted granted Critical
Publication of TWI450216B publication Critical patent/TWI450216B/en

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention provides a method for extracting boundary elements. The method includes: obtaining point data and a maximum side length of triangles composed of triangular grids of point clouds; constructing the triangular grids; extracting boundary points from the triangular grids; grouping the boundary points; fitting each group of boundary points to a beeline and a circle; selecting an appropriate boundary characteristic for each group, wherein the boundary characteristic includes the beeline and the circle; outputting all boundary characteristics. A related computer system for extracting boundary elements is also disclosed.

Description

201007618 九、發明說明: 【發明所屬之技術領域】 本灰明涉及種邊界元素提取方法及其 其涉及一種從雜亂點雲中接 糸統,尤 統。 -中棱取邊界兀素的方法及其電腦系 【先前技術】 產品品質驗證的程中,誤差分析已經成為 ❹ 置獲取工件㈣ 卩°,_做法是使用點雲獲取裝 合),而後將點二:夕個三維離散點組成的點的集 料進行處理,‘二=電腦,執行相應軟體對點雲資 絲㈣似^取农對應的邊界元素,也就是工件的 蚤、\杜所^徵。然後,透過迭代擬合法將實際工件和 量測工件所得的 貝丨不工件和 與理論設計圖擒中行對齊’以痛定實際工件 做法的對齊效否存在誤差,是’此種 &不间且特殊位置還不能完全對齊。 另外隨著影像技術的發展,人臉識別、特徵匹配 有限元分析等徒術的引用,業界人員對邊界元素的:: 度和提取速度h求也越來越高,而傳統技術 元素提取的以還不能達到此#要求。 订邊界 【發明内容】 鑒於以上内&,有必要提供-種邊界元素提取方法及 其電腦糸統’ ^自動提取雜亂點雲的邊界元素,包括提 邊界點和触邊界特徵,提高了料元素的提取精度和提 取速度。 6 201007618 ❹ -種邊界元素提取方法,該方法包括:獲取量測工件 所產生的點雲資料及組成點雲三角網格化曲面的三角形的 最大邊長;根據該最大邊長將所獲取的點雲建立成三角網 格化曲面;從上述三角網格化曲面中提取邊界點;根據邊 界點的向量變化情況對所述邊界點進行分組;將每組邊界 點分別擬合成直線和圓;在進行直線容差判斷和圓容差判 $後確定適合每組邊界點的邊界特徵;及輸出所述邊界特 :種提取邊界元素的電腦系統,該電腦系統包括:獲 心格I:獲取量測工件所產生的點雲資料及組成點雲 -角網格化曲面的三角形的最大邊長; 用於根據所述最大邊長將所媒兩认—角網格化早70 ’ *面;邊界二=:::=立成三角網格化 取邊界點;及創建單元用^述—角網格化曲面令提 圓,在合成直線或 界點的邊界特徵,並μ所確定適合每組邊 统,====,述邊界元素提取方法及其電腦系 ::層紙點雲的邊界元素 =2,還可以提 速度。 n了邊界疋素提取精度和 【實施方式】 佳實施境:、本 運购翻包括—影像量測機 201007618 台1及與該影像量測機台1相連接的電腦2。 ^ 所述影像量測機台1用於對工件3進行量測,獲取該 • 工件3的點雲資料。該點雲資料包括點的三維座標、點的 . 標識和點雲總數。在本實施例中,由於工件3每個部位的 密度不同、結構不同,所以,影像量測機台1所獲取的點 雲為雜亂點雲。 電腦2内存儲一邊界元素提取系統20,如圖2所示, 該邊界元素提取系統20包括獲取單元21、三角網格化單 ⑩ 元23、邊界點提取單元25和創建單元27,用於從雜亂點 雲中提取邊界元素,該邊界元素包括邊界點和邊界特徵。 因此,本實施例中的提取邊界元素包括提取邊界點和創建 邊界特徵,具體而言,邊界元素提取系統20對所獲取的點 雲建立三角網格化曲面(以下簡稱為“三角網格面”),從三 角網格面中提取邊界點,並根據所提取的邊界點創建點雲 的邊界特徵。 參閱圖3,係本發明邊界元素提取方法較佳實施例之 作業流程圖。 步驟S1,獲取單元21獲取影像量測機台1量測工件 3所產生的點雲資料及獲取用戶輸入的組成三角網格面的 三角形的最大邊長。其中,所述獲取包括獲取單元21接收 影像量測機台1線上量測工件3的點雲資料,及透過打開 資料檔案的形式獲取影像量測機台1先前量測工件3所得 到的點雲資料。所述最大邊長為用戶自定義的邊長,其約 等於點雲中相鄰點之間距離的平均值。 201007618 獲取輯料最大邊長將所 取邊界Γ,邊界點提取單元25從上述三角網格面中提 步驟S7,創建蕈开4 的邊界特徵,並輸出所創麵邊的邊界點創建點雲 參閱圖4,係圖3中步驟 業流程圖。 建二角網袼面的具體作 -维S300’三角網格化單元23根據點雲資料十點的 :=計算得到所述點雲的包圍盒,對該包園盒= 所社〜雲㈣中每個點的標識填人到相應的分組中。 所心組絲料元小正方㈣邊長可 點雲總數計算得$。 長及 步驟S302,獲取點雲中尚未與其他點組成三角形刊 的任-點’作為三角形T0的第一頂點m ❹ 第一頂點m最近的點,作為三角形τ〇的第二頂點 ν驟S304 ’連接第一頂點D1和第二頂點D2得到一 條邊B0,且將該邊B0加入一邊佇列中。 々步驟S306,根據所述最大邊長找出組成該三角形τ〇 的第三頂點D3,構建該三角形τ〇且將該三角形τ〇的另 外兩條邊添至所述邊佇列,即除了邊Β〇外的另外兩條邊。 其中’二角形Τ0的内角不能太小’如1度、2度’在尋找 第二頂點D3時,要優先考慮所組成的角大於25度的點, 然後再考慮所組成的角小於25度但角度卻不能太小的 201007618 點。在本較佳實施财,雜成㈣、於3产。 步驟謂,對上述三㈣T〇進行外接球判斷和純角 判斷,以找出除了上述第三頂點%外能與邊則構成三角 形的點D、。所述外接球判斷是指利用數學法則如最小二乘 法,將三角形T(m合成一個球,三角形τ〇透過其三個頂 點與所述球連接’且該球内沒有點存在,三角網格化 23利用純角原則在該球上尋找點〇、,點D、與邊β〇組成三 角形τ、,該三角形r與三角形τ〇之門的201007618 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a method for extracting a boundary element and relates to a system for picking up a cloud from a messy point cloud. - The method of taking the boundary element in the middle edge and its computer system [Prior technology] In the process of product quality verification, the error analysis has become the acquisition of the workpiece (4) 卩 °, _ the practice is to use the point cloud to obtain the assembly), and then the point Two: The aggregate of the points consisting of three-dimensional discrete points is processed, 'two = computer, the corresponding software is applied to the point cloud (4) to take the corresponding boundary element of the farmer, that is, the workpiece's 蚤, \杜所^征. Then, through the iterative fitting method, the actual workpiece and the measured workpiece are not aligned with the theoretical design map, and there is an error in the alignment effect of the actual workpiece. It is 'this kind of & Special locations are not yet fully aligned. In addition, with the development of image technology, face recognition, feature matching finite element analysis and other references, the industry's people: the degree of: and the speed of extraction of the boundary elements are getting higher and higher, while the traditional technical elements are extracted. This # requirement cannot be reached yet. Boundary [Invention] In view of the above &, it is necessary to provide a kind of boundary element extraction method and its computer system ' ^ automatically extract the boundary elements of the chaotic point cloud, including the boundary point and touch boundary features, improve the material elements Extraction accuracy and extraction speed. 6 201007618 ❹ - A method for extracting a boundary element, the method comprising: obtaining a point cloud data generated by the measuring workpiece and a maximum side length of a triangle constituting the triangular cloud meshing surface of the point cloud; the obtained point according to the maximum side length The cloud is formed into a triangular meshed surface; the boundary points are extracted from the triangular meshed surface; the boundary points are grouped according to the vector variation of the boundary points; each set of boundary points is respectively fitted into a straight line and a circle; The linear tolerance judgment and the round tolerance judgment determine the boundary feature suitable for each set of boundary points; and output the boundary special: a computer system for extracting boundary elements, the computer system includes: obtaining the heart I: obtaining the measurement workpiece The generated point cloud data and the maximum side length of the triangle constituting the point cloud-angle meshed surface; for meshing the two media-accepting angles according to the maximum side length by 70 '* faces; boundary two= :::=Organize the triangle mesh to take the boundary point; and create the unit with the angle-corner mesh surface to make the circle, in the boundary of the synthetic line or boundary point, and μ determined to suit each group of sides, = ===, the boundary Pigment coated paper :: method and computer-based point cloud boundary element = 2, the speed can be improved further. n The accuracy of boundary element extraction and [Embodiment] Good implementation: This shipment includes: Image measuring machine 201007618 Table 1 and computer 2 connected to the image measuring machine 1. ^ The image measuring machine 1 is used for measuring the workpiece 3, and acquiring the point cloud data of the workpiece 3. The point cloud data includes the three-dimensional coordinates of the point, the point of the marker, and the total number of point clouds. In the present embodiment, since the density of each part of the workpiece 3 is different and the structure is different, the point cloud acquired by the image measuring machine 1 is a messy point cloud. A boundary element extraction system 20 is stored in the computer 2. As shown in FIG. 2, the boundary element extraction system 20 includes an acquisition unit 21, a triangular meshing unit 10 element 23, a boundary point extraction unit 25, and a creation unit 27 for The boundary element is extracted from the clutter point cloud, and the boundary element includes a boundary point and a boundary feature. Therefore, extracting the boundary element in the embodiment includes extracting the boundary point and creating the boundary feature. Specifically, the boundary element extraction system 20 establishes a triangular meshed surface for the acquired point cloud (hereinafter referred to as a “triangular mesh surface”). ), extracting boundary points from the triangular mesh surface, and creating boundary features of the point cloud according to the extracted boundary points. Referring to Figure 3, there is shown a flow chart of a preferred embodiment of the boundary element extraction method of the present invention. In step S1, the acquiring unit 21 acquires the point cloud data generated by the image measuring machine 1 for measuring the workpiece 3 and obtains the maximum side length of the triangle of the triangular mesh surface input by the user. The obtaining includes the acquiring unit 21 receiving the point cloud data of the measuring workpiece 3 on the image measuring machine 1 on the line, and acquiring the point cloud obtained by the image measuring machine 1 previously measuring the workpiece 3 by opening the data file. data. The maximum side length is a user-defined side length that is approximately equal to the average of the distances between adjacent points in the point cloud. 201007618 Obtaining the maximum side length of the piece to take the boundary Γ, the boundary point extracting unit 25 extracts the step S7 from the above triangular mesh surface, creates the boundary feature of the split 4, and outputs the boundary point of the created side edge to create a point cloud. Figure 4 is a flow chart of the steps in Figure 3. The specific work of the built-in two-dimensional network-dimensional S300' triangular meshing unit 23 calculates the bounding box of the point cloud according to the point cloud data:======================================= The identification of each point is filled into the corresponding group. The core group of the silk element is small square (four) side length can be calculated by the total number of points cloud. In step S302, a point in the point cloud that has not been formed into a triangle with other points is obtained as the point closest to the first vertex m 三角形 of the first vertex m of the triangle T0, as the second vertex of the triangle τ〇, step S304 ' Connecting the first vertex D1 and the second vertex D2 to obtain one side B0, and adding the side B0 to the side array. Step S306, finding a third vertex D3 constituting the triangle τ 根据 according to the maximum side length, constructing the triangle τ 〇 and adding the other two sides of the triangle τ 添 to the side 伫 column, that is, except for the edge Β The other two sides of the raft. The inner angle of the 'diopter Τ0 cannot be too small' such as 1 degree, 2 degrees. When looking for the second vertex D3, priority should be given to the point where the angle formed is greater than 25 degrees, and then the angle formed is less than 25 degrees. The angle is not too small for 201007618 points. In this preferred implementation, it is produced in four (four) and three. The step is to perform a circumscribed ball judgment and a pure angle judgment on the above three (four) T , to find a point D which is a triangle shape except for the third vertices. The circumscribed ball judgment refers to using a mathematical rule such as a least square method to combine a triangle T (m is a ball, a triangle τ 〇 is connected to the ball through its three vertices) and no point exists in the ball, and the triangle meshes 23 using the pure angle principle to find the point 〇 on the ball, the point D, and the edge β 〇 to form the triangle τ, the triangle r and the triangle τ 〇

<間的夾角必須為鈍角。 步驟S3H),點IT與邊B0組成三角形τ',三角網格化 單元23將該三角形r的另外兩條邊,即除了邊Β〇的另外 兩條邊,添加到所述邊仔列中。 步驟S312,三角網格化單元23迴圈邊仔列中的邊, 並重複執行步驟S308至步驟S312 ’直至所有的邊被迴圈 完,完成構建的三角形組成了點雲的三角網格面。 於步驟S308中,在進行純角判斷時,本較佳實施例 優先考慮與三角形T0組成120度夹角的三角形。然而, 三角網格化單元23利用外接球判斷和鈍角判斷的方法可 能會同時找到多個點D、,但其最終只能確定—個點D、為 最佳點,與邊Β0組成三角形Τ、。例如,若三角網格化單 元23利用外接球判斷和鈍角判斷的方法同、 和點D2、,邊Β〇與點Dl、可組成三角形打、、邊則淑點 D2、可組成三角形打、’則三角網格化單元23需確定在三 角形ΤΓ和Τ2、中邊Β〇的對角哪個更大,若邊Β〇在三角 形H、中的對角大於在三角形Τ2、中的對角,則最終較點 201007618 〃 D1是所要找到的最佳點;反之,若邊BO在三角形T2、中 .的對角大於在三角形ΤΓ中的對角,則最終確定點取、是 要找到的最佳點。 • 參閱圖5,係圖3中步驟S5提取邊界點之具體作業流 . 程圖。 >步驟S500,邊界點提取單元25從所述三角網格面中 獲取當前判斷點週圍的三角形及每個三角形的頂點。 步驟S5〇2,計算每個頂點被當前判斷點週圍的三角形 所佔用的次數,如圖6和圖7所示,點工、點2、點3、點 4和點5分別為當前判斷點〇週圍的三角形的頂點。在圖6 :’點1、點2、點3、點4和點5被當前判斷點〇週圍的 三角形所佔用的次數分別為2 ;在圖7中,點2、點3和點 4被當前判斷點〇週圍的三角形所佔用的次數 1和點5被佔用的次數分別為1。 一步驟S504,依次判斷所述頂點被當前判斷點〇週圍的 ❹二角形所佔用的次數是否均大於1。 若步驟S504的判斷結果為是,即所述頂點被佔用的 次數均大於!,則步驟S5〇6確定該當前判斷點為内點,芦 $直接進人步驟關。如圖6所示,由於所有的頂點被當 則判斷點0週圍的三角形所佔用的次數均大於卜 圖6所示的當前觸點〇被確定為内點。、 若步驟S504的判斷結果為否’即所述頂點中存在至 少一個頂點被佔用的次數等Μ,則步驟⑽確定該當前 判斷點為邊界點,如圖7所示,由於點工和點5被佔用的 11 201007618 次數分別為1,因此,圖7所示的當前判斷點〇被確定為 邊界點。 ~ 步驟S510,邊界點提取單元25判斷三角網格面十的 ' 點是否都被進行了邊界點判斷。若是’則直接結束流程; . 若還有點未進行邊界點判斷,則返回步驟S500,將該點作 為當前判斷點,重新執行步驟S5〇〇至步驟S51〇直至所有 的點均被進行了邊界點判斷。The angle between the < must be an obtuse angle. In step S3H), the point IT and the side B0 form a triangle τ', and the triangular meshing unit 23 adds the other two sides of the triangle r, that is, the other two sides except the edge, to the side row. In step S312, the triangular meshing unit 23 loops back the edges in the side row, and repeats steps S308 to S312' until all the edges are looped, and the completed triangle constitutes a triangular mesh surface of the point cloud. In step S308, in the case of performing the pure angle determination, the preferred embodiment preferentially considers a triangle which forms an angle of 120 degrees with the triangle T0. However, the triangle meshing unit 23 may use the method of circumscribed ball judgment and obtuse angle judgment to find multiple points D at the same time, but it can only determine that the point D is the best point and the triangle 组成 is formed by the edge Β0. . For example, if the triangular meshing unit 23 uses the method of the circumscribing ball judgment and the obtuse angle judgment, and the point D2, the edge Β〇 and the point Dl, can form a triangle, and the edge can be a D2, can form a triangle, ' Then, the triangular meshing unit 23 needs to determine which of the diagonals of the triangles ΤΓ and Τ2 is larger, and if the diagonal of the edge 三角形 in the triangle H is greater than the diagonal of the triangle Τ2, then the final Point 201007618 〃 D1 is the best point to be found; conversely, if the diagonal of the edge BO in the triangle T2, the middle is greater than the diagonal in the triangle ,, then the point is determined to be the best point to find. • Refer to Figure 5, which is the specific job flow for extracting the boundary points in step S5 in Figure 3. > In step S500, the boundary point extracting unit 25 acquires a triangle around the current judgment point and a vertex of each triangle from the triangular mesh plane. Step S5〇2, calculating the number of times each vertex is occupied by the triangle around the current judgment point, as shown in FIG. 6 and FIG. 7, the point, point 2, point 3, point 4, and point 5 are the current judgment points respectively. The vertices of the surrounding triangles. In Figure 6: 'Point 1, Point 2, Point 3, Point 4, and Point 5 are occupied by the triangle around the current judgment point 分别 respectively; in Figure 7, point 2, point 3, and point 4 are currently The number of times 1 and 5 occupied by the triangle around the point 〇 is 1 respectively. In step S504, it is sequentially determined whether the number of times the vertex is occupied by the ❹-triangle around the current judgment point 均 is greater than 1. If the result of the determination in step S504 is YES, that is, the number of times the vertex is occupied is greater than! Then, step S5〇6 determines that the current judgment point is an inner point, and the re-$ directly enters the step. As shown in Fig. 6, since all the vertices are judged, the number of times occupied by the triangle around the point 0 is larger than the current contact 所示 shown in Fig. 6 is determined as the inner point. If the result of the determination in step S504 is no, that is, the number of times at least one vertex in the vertex is occupied is equal, step (10) determines that the current judgment point is a boundary point, as shown in FIG. 7, due to the point and point 5 The number of occupied 11 201007618 is 1, respectively, so the current judgment point 图 shown in Fig. 7 is determined as the boundary point. ~ In step S510, the boundary point extracting unit 25 judges whether or not the 'points of the triangular mesh surface ten are subjected to the boundary point determination. If it is 'then, the flow is directly ended. If there is still a point where the boundary point judgment is not made, the process returns to step S500, and the point is taken as the current judgment point, and step S5〇〇 to step S51〇 are performed again until all the points are subjected to the boundary point. Judge.

參閱圖8’係圖3中步驟S7創建邊界特徵之具體作 流程圖。 業 步驟S700 ,創建單元27分別以圖5中提取的邊界點 為當前點,並以該當前點為中心層層向外展開,計算所展 開的邊界點在三角網格面上的向量之間的角度關係。 步驟S702,創建單元27根據角度變化情況對所有邊 界點進行分組,並將每組邊界點分別擬合成直線。具體而 吕,創建單元27於步驟S702中將角度變化相差很小的邊 ©界點放在一個組中,並由此得到了多組邊界點,然後將每 組邊界點擬合成直線。例如,若邊界點a與邊界點b在三 角網格面上的向量之間的角度為60度,邊界點a與邊界: c在三角網格面上的向量之間的角度為1度,則表明邊界 點a與b的向量之間的角度變化很大,而邊界點a鱼邊界 點c的向量之間的角度變化很小,因此,邊界點&與邊界 點b會被分在不同組中,而邊界點&與邊界點c 同一個組中。 刀 步驟S704,判斷用於擬合所述直線的點與該擬合後的 12 201007618 •直線之間的差值是否均小於—個預設的直線容差。 . #㈣,4 斷結果為是,則直接進入步驟 S714;若步驟S704中的判斷結果為否,則表明所擬合的 .直線不適合該組邊界點’步驟S7〇6,創建單元27利用最 • 小二乘法將該組邊界點擬合成圓。 步驟S708,判斷用於擬合成圓的點與該擬合後的圓之 間的差值是否均小於一預設的圓容差。 #步驟漏巾㈣斷結果衫,職接進入步驟 S714 ;好驟S7〇8中的判斷結果為是,且步驟s寫中擬 ,了至少兩個圓,則步驟S71〇中創建單元27根據圓的半 徑、圓的向置及圓心連線與所述向量之間的關係來判斷所 擬合的圓之間是否能構建圓柱。在本實施例中,創建單元 2曰7構建圓柱的條件為:上述擬合的圓的半徑相同、圓的向 !之間的角度為〇度或18〇度,且圓心連線與所述向量之 間的角度也為0度或18〇度。 Φ 若步驟S710中的判斷結果為否,則直接進入步驟 S7^4 ;若步驟S71〇中的判斷結果為是則步驟奶2,創 建單元27將滿足上述條件的圓構建成圓柱。 步驟S7H ’創建單元27輸出適合每組邊界點的邊界 特徵4邊界特徵包括直線、圓和圓柱。例如,若邊界點 提取單元25所提取的所有邊界點如圖9 (a)所示,則創 建單元27所創建的邊界特徵如圖9 (b)所示。 上—在本實施例中,所述直線容差和圓容差可由用戶提前 什算出,其約等於點雲中相鄰點之間距離的平均值。另外, 13 201007618 不同區域的點雲的密度可能會不同,在點雲密度較大的區 * 域,可以將所述平均值乘以一個係數,以得到該區域的直 • 線容差和圓容差。其中,所述係數可能為0.1、0.2或0.3。 . 另外,在本實施例中,所述創建單元27還可以先將 . 每組邊界點擬合成圓。若用於擬合成圓的點與該擬合後的 圓之間的差值不小於所述圓容差,則表明所擬合的圓不適 合該組邊界點,創建單元27利用最小二乘法將該組邊界點 擬合成直線,然後進行直線容差判斷。當創建單元27所擬 〇 合的圓至少為兩個時,才判斷所擬合的圓之間能否構建圓 柱。 本發明雖以較佳實施例揭露如上,然其並非用以限定 本發明。任何熟悉此項技藝之人士,在不脫離本發明之精 神及範圍内,當可做更動與潤飾,因此本發明之保護範圍 當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 圖1係本發明提取邊界元素的電腦系統較佳實施例之 營 運行環境圖。 圖2係本發明邊界元素提取系統之功能單元圖。 圖3係本發明邊界元素提取方法較佳實施例之作業流 程圖。 圖4係圖3中步驟S3建立三角網格化曲面之具體作 業流程圖。 圖5係圖3中步驟S5提取邊界點之具體作業流程圖。 圖6和圖7係本發明獲取當前判斷點週圍的三角形及 14 201007618 每個三角形的頂點之示意圖。 圖8係圖3中步驟S7創建邊界特徵之具體作業流程 圖。 圖9係本發明創建邊界特徵之示意圖。 【主要元件符號說明】 影像量測機台 1 電腦 2 工件 3Referring to Figure 8', a specific flow chart for creating a boundary feature in step S7 of Figure 3 is shown. In step S700, the creating unit 27 respectively uses the boundary point extracted in FIG. 5 as the current point, and expands outwardly with the current point as a center layer, and calculates the boundary point of the expanded boundary point between the vectors on the triangular mesh surface. Angle relationship. In step S702, the creating unit 27 groups all the boundary points according to the angle change condition, and fits each set of boundary points to a straight line. Specifically, the creating unit 27 places the edges of the angle change with little difference in the step S702 in a group, and thereby obtains a plurality of sets of boundary points, and then fits each set of boundary points into a straight line. For example, if the angle between the boundary point a and the vector of the boundary point b on the triangular mesh surface is 60 degrees, the boundary point a and the boundary: c the angle between the vectors on the triangular mesh surface is 1 degree, then It is shown that the angle between the vectors of the boundary points a and b varies greatly, and the angle between the vectors of the boundary point a of the fish boundary point c is small, so the boundary point & and the boundary point b are divided into different groups. Medium, while the boundary point & is in the same group as the boundary point c. The knife step S704 determines whether the difference between the point for fitting the straight line and the fitted line 12 201007618 • the straight line is less than a preset straight line tolerance. If the result of the determination in step S704 is no, it indicates that the fitted line is not suitable for the set of boundary points 'step S7〇6, and the creation unit 27 utilizes the most. • The least squares method fits the set of boundary points into a circle. In step S708, it is determined whether the difference between the point for fitting the circle and the circle after the fitting is less than a preset circular tolerance. #Step missing towel (4) breaks the result shirt, the job proceeds to step S714; the judgment result in the good step S7〇8 is YES, and at least two circles are written in the step s, then the creation unit 27 according to the circle in step S71 The radius, the orientation of the circle, and the relationship between the center line and the vector determine whether a cylinder can be constructed between the fitted circles. In this embodiment, the condition that the creating unit 2曰7 constructs the cylinder is that the radius of the circle fitted above is the same, the angle between the directions of the circle is 〇 or 18〇, and the center line is connected with the vector. The angle between them is also 0 degrees or 18 degrees. Φ If the result of the determination in step S710 is NO, the process proceeds directly to step S7^4; if the result of the determination in step S71 is YES, the step milk 2, the creation unit 27 constructs a circle satisfying the above condition into a cylinder. The step S7H' creating unit 27 outputs a boundary feature 4 suitable for each set of boundary points. The boundary features include a straight line, a circle, and a cylinder. For example, if all the boundary points extracted by the boundary point extracting unit 25 are as shown in Fig. 9(a), the boundary features created by the creating unit 27 are as shown in Fig. 9(b). Upper - In the present embodiment, the linear tolerance and the round tolerance can be calculated by the user in advance, which is approximately equal to the average of the distances between adjacent points in the point cloud. In addition, 13 201007618 the density of point clouds in different regions may be different. In the region* where the point cloud density is large, the average value can be multiplied by a coefficient to obtain the direct line tolerance and roundness of the region. difference. Wherein, the coefficient may be 0.1, 0.2 or 0.3. In addition, in this embodiment, the creating unit 27 may also first fit each set of boundary points into a circle. If the difference between the point used to fit the circle and the fitted circle is not less than the circle tolerance, it indicates that the fitted circle is not suitable for the set of boundary points, and the creating unit 27 uses the least squares method to The group boundary points are fitted to a straight line, and then the line tolerance is judged. When the circle to be merged by the creating unit 27 is at least two, it is judged whether or not the circle can be constructed between the fitted circles. The present invention has been described above by way of a preferred embodiment, and is not intended to limit the invention. Any person skilled in the art will be able to make changes and refinements without departing from the spirit and scope of the invention, and the scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing the operating environment of a preferred embodiment of a computer system for extracting boundary elements of the present invention. Figure 2 is a functional unit diagram of the boundary element extraction system of the present invention. Fig. 3 is a flow chart showing the preferred embodiment of the boundary element extraction method of the present invention. Figure 4 is a flow chart showing the specific operation of creating a triangular meshed surface in step S3 of Figure 3. FIG. 5 is a flow chart showing the specific operation of extracting the boundary point in step S5 of FIG. 3. 6 and 7 are schematic diagrams showing the triangles around the current judgment point and the vertices of each triangle of 201007018. Figure 8 is a flow chart showing the specific operation of creating a boundary feature in step S7 of Figure 3. Figure 9 is a schematic illustration of the creation of boundary features in accordance with the present invention. [Main component symbol description] Image measuring machine 1 Computer 2 Workpiece 3

邊界元素提取系統 20 獲取單元 21 三角網格化單元 23 邊界點提取單元 25 創建單元 27 獲取量測工件所得到的點雲資料 S1 將所獲取的點雲建立成三角網格化曲面 S3 從所述三角網格化曲面中提取邊界點 S5 根據所提取的邊界點創建點雲的邊界特徵 S 7 15Boundary element extraction system 20 acquisition unit 21 triangle meshing unit 23 boundary point extraction unit 25 creation unit 27 acquires the point cloud data S1 obtained by measuring the workpiece, and establishes the acquired point cloud into a triangular meshed surface S3 from the Extracting boundary points in a triangular meshed surface S5 Creating boundary features of a point cloud based on the extracted boundary points S 7 15

Claims (1)

201007618 十、申請專利範園: • h 一種邊界元素提取方法,其中,該邊界元素包括 和邊界特徵,該方法包括: 界點 . (a)獲取量測工件所產生的點雲資料及組成點雲— 網格化曲面的三角形的最大邊長; 角 (b) 根據該最大邊長將所獲取的點雲建立= 化曲面; —用網格 (c) 從上述三角網格化曲面中提取邊界點; (d) 根據邊界點的向量變化情況對邊界點進行分紐 (e) 將每組邊界點分別擬合成直線和圓; 且, (f) 在進行直線容差判斷和圓容差判斷後確定適人^ 組邊界點的邊界特徵;及 〇母 (g) 輸出所述邊界特徵。 2·如申請專·圍第1項所述之邊界元素提取方法,其中 所述步驟(b)包括如下步驟: 、 _ (b 1 )根據點雲資料中點的三維座標計算得到所述點雲 的包圍益’對該包圍盒進行分組,並將點雲資料 點的標識填入到相應的分組中; (b2^獲取點雲中尚未與其他點組成三角形的任一點, 作為一㈣的第-頂點,並求取距離該第—頂點最近的 點,作為三角形的第二頂點; /b3)連接第一頂點和第二頂點得到-條邊B0,且將 該邊B0加入邊佇列中; (b4)根據所述最大邊長找出組成該三角形的第三頂 16 201007618 添至上述 構建該三㈣且㈣三角形的另外兩條邊 邊仔列中; ㈤)對上述三角形進行外接球騎和鈍㈣斷, 出除了上述第三頂點外能與邊B〇構成三角形的點·201007618 X. Patent application garden: • h A boundary element extraction method, in which the boundary element includes and boundary features, the method includes: a boundary point. (a) obtaining point cloud data generated by the measurement workpiece and forming a point cloud – the maximum side length of the triangle of the meshed surface; the angle (b) the acquired point cloud based on the maximum side length = the curved surface; - the mesh point (c) is used to extract the boundary point from the triangular meshed surface (d) Binding the boundary points according to the vector variation of the boundary points (e) Fitting each set of boundary points into straight lines and circles; and, (f) determining after straight line tolerance judgment and round tolerance judgment The boundary feature of the boundary point of the aptitude group; and the 〇 mother (g) outputs the boundary feature. 2. The method for extracting a boundary element according to Item 1 of the application, wherein the step (b) comprises the following steps:, _ (b 1 ) calculating the point cloud according to a three-dimensional coordinate of a point in the point cloud data. The enveloping box of the enveloping box is filled in and the identifier of the point cloud data point is filled into the corresponding group; (b2^ obtains any point in the point cloud that has not formed a triangle with other points, as the first (four) - a vertex, and finding a point closest to the first vertex as a second vertex of the triangle; /b3) connecting the first vertex and the second vertex to obtain a strip edge B0, and adding the edge B0 to the edge array; (b4 Finding a third top 16 201007618 constituting the triangle according to the maximum side length, adding to the other two sides of the triangle constructing the three (four) and (four) triangles; (5) performing an external ball ride and a blunt (four) break on the triangle , except for the above third vertex, which can form a triangle with the edge B〇. 3. ⑽所Μ的點與邊B〇組成另一三角形’添加除了 邊BO外該另_三角形的另外兩條邊至所述邊件列·及 ㈤)迴圈所述邊仵列中的邊並重複執行步驟㈤)至 =46),直至所有的邊都完成了構建三角形的任務。 申睛專利範㈣!項所述之邊界元素提取方法, 所述步驟(c)包括如下步驟: 八 (c 1)獲取三角網格化曲面中當前判斷點週圍的三 及每個三角形的頂點; / it十异母個頂點被#㈣斷闕圍的三㈣所佔用的 數, 的次數均大於1 ’則峰定該當前 (c3)若所述頂點被佔用 判斷點為内點; (c4)右所述概巾有頂點被佔用的缝等於卜 該當前判斷點為邊界點; 崎疋 (C5)判斷三角網格面中的點是否都被進行了邊界點判 :6)右步驟(e5)判斷的結果為是,則直接結束流程,若 :驟㈣判斷的結果為還有點未進行邊界關斷,則返 2驟U1)’將該點作為當前判斷點,重新執行步驟 c 1)至步驟(e 5)直至所有的點均被進行了邊界點判斷。 17 201007618 .4.如申請專利範圍帛1項所述之邊界元素提取方法,其中 , 所述邊界特徵包括直線、圓和圓柱。 5·如申請專利範㈣4項所述之邊界元素提取方法,盆 I ’在所述步驟⑴與步驟(g)之間包括如下步驟·: ' 若在步驟⑴中確定至少有兩個擬合的11存在,則根 據圓的半徑、圓的向量及圓心連線與所述向量之間的關 2來判斷所擬合的圓之間是否能構建圓柱;及 _ 右判斷的結果為是,則根據所述擬合圓構建圓柱。 6·-種提取邊界元素的電腦系統,其中,所述邊界元素包 括邊界點和邊界特徵,該電腦系統包括: 獲取單元,用於獲取量測工件所產生的點雲資料及組成 點雲二角網格化曲面的三角形的最大邊長; 三角網格化單元,用於㈣所述最大邊長將所獲取的點 雲建立成三角網格化曲面;3. (10) The selected point and the edge B〇 form another triangle 'add the other two sides of the other _ triangle except the edge BO to the side piece column and (5)) loop the edge in the side edge column and Repeat steps (5)) to =46) until all the edges have completed the task of building the triangle. Shen eye patent model (four)! The boundary element extraction method described in the item, the step (c) includes the following steps: VIII (c 1) acquiring three vertices around the current judgment point in the triangular meshed surface and each of the vertices of each triangle; The number of times that the vertex is occupied by the three (four) of the #(四) breaks is greater than 1 ', then the peak is set to the current (c3) if the vertex is occupied as the inner point; (c4) The vertex occupied by the vertex is equal to the current judgment point as the boundary point; the rugged (C5) judges whether the points in the triangular mesh plane are all subjected to the boundary point judgment: 6) the result of the right step (e5) is yes, Then directly end the process, if: (4) the result of the judgment is that there is still no boundary shutdown, then return to step 2 U1) 'this point as the current judgment point, re-execute step c 1) to step (e 5) until all The points are all judged by the boundary point. The method of extracting boundary elements according to claim 1, wherein the boundary features include a straight line, a circle, and a cylinder. 5. If the boundary element extraction method described in claim 4 (4), the basin I' includes the following steps between the step (1) and the step (g): If the at least two fits are determined in the step (1) 11 exists, according to the radius of the circle, the vector of the circle and the line between the center line and the vector to determine whether the circle can be constructed between the fitted circles; and _ the result of the right judgment is yes, then The fitted circle constructs a cylinder. a computer system for extracting boundary elements, wherein the boundary element comprises a boundary point and a boundary feature, the computer system comprises: an acquisition unit, configured to acquire point cloud data generated by the measurement workpiece and form a point cloud dihedral The maximum side length of the triangle of the meshed surface; the triangular meshing unit for (4) the maximum side length to establish the acquired point cloud into a triangular meshed surface; 邊界點提取單元,用於從上H網格化曲面中提 界點;及 % 幻建單;^ ’用於根據邊界點的向量變化情況對所述邊界 點進行分組’將每組邊界點分別擬合成直線或圓,在進 線容差判斷和圓容差判斷後確定適合每組邊界點 的邊界特徵,並輸出所述邊界特徵。 * ^請專利範圍第6項所述之電腦系統,其巾所述邊界 ‘錢取單元在從三角網格化曲面中提取邊界點時,重複 18 201007618 了2下步驟直至該三角網格化曲面上的點都被進行 了邊界點判斷: 低延灯獲取三角網格化曲面中當前判斷點遇圍的三角形及該 母個三角形的頂點; Λ 不每個頂點被當前判斷點週圍的三角形所佔 標 數; 用的次 則判定該當前判斷a boundary point extraction unit for extracting points from the upper H meshed surface; and % phantom construction; ^ 'for grouping the boundary points according to vector variation of boundary points' Fit to a straight line or a circle, determine the boundary features suitable for each set of boundary points after the line tolerance judgment and the round tolerance judgment, and output the boundary features. * ^Please refer to the computer system described in the sixth paragraph of the patent, in which the boundary of the towel 'money extraction unit' repeats 18 201007618 when the boundary point is extracted from the triangular meshed surface until the triangular meshed surface The upper points are judged by the boundary points: the low-speed lamp acquires the triangle of the current judgment point in the triangular meshed surface and the vertices of the parent triangle; Λ not each vertex is occupied by the triangle around the current judgment point The number of times used to determine the current judgment ’則判定該當 若所述頂點被佔用的次數均大於 點為内點;及 若所述頂點中有頂點被佔用的次數等於工 前判斷點為邊界點。 9. 如申請專利範圍第6項所述之電㈣統,其中所述邊界 特徵包括直線、圓或圓柱。 10. 如=申請專利範圍帛9項所狀電腦系统,其中所述創 建單元還用於在進行直線容差判斷和圓容差判斷後,若 確定至少有兩個擬合的圓存在,則根據圓的半徑、圓的 向量及圓心連線與所述向量之間的關係來判斷擬合圓 之間能否構_柱,若判斷的結果為是,則根據所擬合 的圓構建圓柱,並輸出所構建的圓柱。 19Then, it is determined that if the vertices are occupied more than the point is an inner point; and if the vertices of the vertices are occupied, the number of times is equal to the pre-determination point as a boundary point. 9. The electric (four) system as described in claim 6 wherein the boundary features include straight lines, circles or cylinders. 10. If the application scope is 9 computer systems, the creation unit is further used to determine at least two fitted circles after determining the linear tolerance judgment and the round tolerance judgment, according to The radius of the circle, the vector of the circle, and the relationship between the line of the circle and the vector to determine whether the column can be constructed between the fitted circles. If the result of the judgment is yes, the cylinder is constructed according to the fitted circle, and Output the constructed cylinder. 19
TW097130282A 2008-08-08 2008-08-08 Computer system and method for extracting boundary elements TWI450216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW097130282A TWI450216B (en) 2008-08-08 2008-08-08 Computer system and method for extracting boundary elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW097130282A TWI450216B (en) 2008-08-08 2008-08-08 Computer system and method for extracting boundary elements

Publications (2)

Publication Number Publication Date
TW201007618A true TW201007618A (en) 2010-02-16
TWI450216B TWI450216B (en) 2014-08-21

Family

ID=44827156

Family Applications (1)

Application Number Title Priority Date Filing Date
TW097130282A TWI450216B (en) 2008-08-08 2008-08-08 Computer system and method for extracting boundary elements

Country Status (1)

Country Link
TW (1) TWI450216B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177254A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 System and method for extracting measurement element
TWI401459B (en) * 2010-10-11 2013-07-11 Univ Nat Quemoy The Method of Stereo Point Cloud Structure
TWI514322B (en) * 2011-11-25 2015-12-21 Hon Hai Prec Ind Co Ltd System and method for checking borderlines of drawing
TWI566204B (en) * 2014-10-28 2017-01-11 惠普發展公司有限責任合夥企業 Three dimensional object recognition
TWI580972B (en) * 2013-06-24 2017-05-01 鴻海精密工業股份有限公司 Image analyzing system and method
CN112614209A (en) * 2020-12-30 2021-04-06 凌云光技术股份有限公司 Element redrawing method and system during flow chart refreshing
TWI791910B (en) * 2019-10-16 2023-02-11 由田新技股份有限公司 An inspection information presentation method, inespection method, and inspection apparatus for a hole-like structure

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6545676B1 (en) * 1999-05-24 2003-04-08 Parametric Technology Corporation Method and system for creating a tessellated approximation of an outer envelope of a complex model
TWI280515B (en) * 2005-01-11 2007-05-01 Inst Information Industry Mesh simplification methods, storage media and systems
US7995054B2 (en) * 2005-11-21 2011-08-09 Leica Geosystems Ag Identification of edge regions from 3D point data
TWI398157B (en) * 2006-08-11 2013-06-01 Hon Hai Prec Ind Co Ltd System and method for boundary scan of an image
CN101127031B (en) * 2006-08-18 2011-05-04 鸿富锦精密工业(深圳)有限公司 Point cloud data mean value filtering system and method
TWI406189B (en) * 2006-11-27 2013-08-21 Hon Hai Prec Ind Co Ltd Method for constructing triangular grids of point clouds

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI401459B (en) * 2010-10-11 2013-07-11 Univ Nat Quemoy The Method of Stereo Point Cloud Structure
TWI514322B (en) * 2011-11-25 2015-12-21 Hon Hai Prec Ind Co Ltd System and method for checking borderlines of drawing
CN103177254A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 System and method for extracting measurement element
TWI580972B (en) * 2013-06-24 2017-05-01 鴻海精密工業股份有限公司 Image analyzing system and method
TWI566204B (en) * 2014-10-28 2017-01-11 惠普發展公司有限責任合夥企業 Three dimensional object recognition
TWI791910B (en) * 2019-10-16 2023-02-11 由田新技股份有限公司 An inspection information presentation method, inespection method, and inspection apparatus for a hole-like structure
CN112614209A (en) * 2020-12-30 2021-04-06 凌云光技术股份有限公司 Element redrawing method and system during flow chart refreshing
CN112614209B (en) * 2020-12-30 2024-02-20 凌云光技术股份有限公司 Element redrawing method and system during flow chart refreshing

Also Published As

Publication number Publication date
TWI450216B (en) 2014-08-21

Similar Documents

Publication Publication Date Title
TW201007618A (en) Computer system and method for extracting boundary elements
JP6533593B2 (en) Generation of virtual three-dimensional model based on virtual hexahedron model
CN111581776B (en) Iso-geometric analysis method based on geometric reconstruction model
US20150279087A1 (en) 3d data to 2d and isometric views for layout and creation of documents
CN109887030A (en) Image pose detection method of textureless metal parts based on CAD sparse template
CN109816724A (en) Method and device for 3D feature extraction based on machine vision
CN110322519A (en) A kind of caliberating device and scaling method for laser radar and camera combined calibrating
CN101650835B (en) Establishing three-dimensional geometrical structure of dog left ventricle conduction system based on local linear embedding method
CN103777911A (en) Self-adaptive layering method in 3D (three-dimensional) printing
CN104392426A (en) Adaptive markerless three-dimensional point cloud automatic registration method
JP2009129189A (en) Object recognition method
CN103065353A (en) Three-dimensional model feature extraction method and system and three-dimensional model retrieval method and system
CN103473811B (en) Based on the convenient generation method of three-dimensional entity model that two dimension hand-drawing line is drawn
KR101552827B1 (en) Method Of Dividing Three-dimensional Object Model
CN112356019A (en) Method and device for analyzing body of target object grabbed by dexterous hand
CN111145328B (en) Three-dimensional character surface texture coordinate calculation method, medium, equipment and device
CN102568036A (en) Method and system for describing features of three-dimensional geometrical shape
TWI514318B (en) System and method for simulating object during 3d programming
CN109509259A (en) A kind of reconstruction of medical images contour surface grid-search method method
JP2013088825A (en) System and method for extracting tangent-plane continuous boundary in cad mesh
Guedri et al. Three-dimensional reconstruction of blood vessels of the human retina by fractal interpolation
TW200823803A (en) Method for constructing triangular grids of point clouds
US20140313195A1 (en) 3D Model Mapping
CN117807875B (en) Three-dimensional data reverse reconstruction and dimension measurement system and method for quartz device
CN110415211A (en) Blind Reference 3D Mesh Quality Evaluation Method Based on Atlas Feature and Spatial Feature

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees