TW464830B - Approaching process method of digitized vector font - Google Patents
Approaching process method of digitized vector font Download PDFInfo
- Publication number
- TW464830B TW464830B TW88120673A TW88120673A TW464830B TW 464830 B TW464830 B TW 464830B TW 88120673 A TW88120673 A TW 88120673A TW 88120673 A TW88120673 A TW 88120673A TW 464830 B TW464830 B TW 464830B
- Authority
- TW
- Taiwan
- Prior art keywords
- vector
- approximation
- point
- node
- polyline
- Prior art date
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
Description
46 48 3 0 五、發明說明(1) 【發明之應用範圍】 本發明係有n ^ 關~種用以生成數位化向I定_ Μ七 特別是一種針對掃γ玄Μ Μ剂2致位化向I子體的方法, 近處理,進而生出ί 獲得之折線段集合進行逼 【發明之背景】 的種延近處理方法。 目前對於向量字體的製作方式,— 或字型模位圖做為輪入,缺讲A旦 子體柄1 义兩褕入,經過向量化的處理 體的描述資料’即構成此向量字體的向量線白里子 其處理過程包括如下步驟: 掃描字體模型(或稱字型模位圖),獲得—構成字體輪 廓的折線段集合,這種折線段集合包括有許多首尾相接的 折線段,而每一個折線段則是由許多彼此相鄰的圖素 (pixel)所構成,每一個折線段則是由第一個圖素斑最後 -個圖素的連線所定義(在下文令將α『折線節點;稱呼 折線段的第一個圖素及最後一個圖素); 對折線^又集合’以直線或3次Β氏曲線做逼近處理,以 獲得~ "字體之描述資料(點座標)”的集合; 處理後的字體描述資料包括以下3種描述^ . 直線描述資料:包含U〇,y0) (XI,yl) 2個點座 標。 3次B氏曲線描述資料:包含(X 0,y 〇 ), ( X 1,y丨), (-X 2 ’ y 2 ), ( X 3 ’ y 3 ) 4 個點座標。 矩形描述資料:包含(x〇,y〇) (XI,yl) 2個點—座 標。46 48 3 0 V. Description of the invention (1) [Scope of application of the invention] The present invention has n ^ off ~ species for generating digital orientation I_M_7, especially a kind of target for sweeping γ and M_M2. The method of transforming to the child of I, near processing, and then produces a set of polyline segments obtained by ί to perform a close processing method [Background of the invention]. At present, for the production method of vector fonts, or the font mode bitmap is used as the rotation, the absence of A Danzi body handle 1 meaning and two inputs, the description of the vectorized processing body 'is the vector line that constitutes this vector font. Bailizi's processing process includes the following steps: Scan the font model (or font type bitmap) to obtain—a set of polyline segments that form the outline of the font. This set of polyline segments includes many polyline segments that end to end, and each one The polyline segment is made up of many pixels next to each other, and each polyline segment is defined by the line connecting the last pixel of the first pixel spot (hereinafter, we will refer to the α polyline node Call the first pixel and the last pixel of the polyline segment); Set the polyline ^ and set 'approximation processing with a straight line or a 3rd B-degree curve to obtain the descriptive data of the font (point coordinates)' The processed font description data includes the following three types of descriptions:. Straight line description data: contains U〇, y0) (XI, yl) 2 point coordinates. Third degree B-curve description data: contains (X 0, y 〇). ), (X 1, y 丨), (-X 2 ′ y 2), (X 3 ′ y 3) 4 point coordinates. Rectangular description data: (x〇, y〇) (XI, yl) 2 points—coordinates.
第4頁 46 48 3 0Page 4 46 48 3 0
五、發明說明(2) 對於製作向量字體的第2步驟而言, 型後獲得的折線段集合,透過逼近處理的手$ 種形式(直綠,3次B氏曲線,矩形)描述這—條^ ^一 量 合。所以’逼近處理是否準確,#直接最依^ 錢在顯示成為向量字體時的美觀度和向量=== 以第1圖」所示的折線段集合A-B-C為例(在下交中 ’在向量^作過程 據肉眼的判斷’最佳的逼近描述資料應包含:直線Η的 描述資料’ 3次Β氏曲線&的描述資料。 一一 請麥閱「第2圖」,係為習知技術對折線段集合作直 線逼近的原理圖,設有字體點陣掃描後獲得的一條折線段 集合為’首節點為A,尾節點為ε。 以直線逼近的過裎請參閱「第3圖」,其步驟大致如 下: 1、 以折線段集合的首節點A為起點,向尾節點e方向 作遞增方向的逐一試探取點;如「第3圖」,可試探取點 為B ’則以丨A ’ B丨為一當前之節點集合。 2、 以當前之試探節點集合,設為當前的向量逼近直 線。 3、計算平均逼近誤差,即是直線逼近誤差: 端點逼近誤差:即是以(A,B丨點集合内的某—節點到 向量逼近直線的垂直線,而此垂直線的長度即為折線段節-點到向量逼近直線的直線逼近誤差。V. Description of the invention (2) For the second step of making a vector font, the set of polyline segments obtained after the type is described by approximation of the hand form (straight green, third degree B-curve, rectangle)- ^ ^ Yilianghe. So 'approach processing is accurate, # directly most dependent ^ Qian's aesthetics and vector when displayed as a vector font === Take the polyline segment set ABC shown in Figure 1' 'as an example (in the next handover) According to the judgment of the naked eye, 'the best approximation descriptive data should include: descriptive data of the straight line' 3rd degree B-curve & descriptive data. Please read the "Figure 2" one by one, which is the line segment of the conventional technique. Set the principle diagram of cooperative line approximation. A set of polyline segments obtained after scanning the font dot matrix is set as' first node is A and tail node is ε. Please refer to "Figure 3" for approximate approximation of straight lines. The steps are roughly As follows: 1. Take the first node A of the set of polyline segments as the starting point, and try to find the points one by one in the increasing direction towards the tail node e. As shown in "Figure 3", the testable point is B ', then 丨 A' B 丨Is a current set of nodes. 2. The current set of tentative nodes is set to the current vector to approximate the straight line. 3. Calculate the average approximation error, which is the straight line approximation error: Endpoint approximation error: that is, (A, B 丨A node in a point set Vector approximation straight vertical line, the vertical line is the length of this section polylines - point vector approximation straight line approximation error.
464830 五、發明說明(3) 平均逼近誤差:設每個節點到向量逼近直線的逼近誤 差值為Φ i,則平均逼近誤差即為丨A,B丨點集合内所有節 點之逼近誤差的數學平均值,如公式(1 )所示: Φ= ( ΦΑ+ ΦΒ) /2 · · * 公式(1 ) 當dKOLine時((DLine為預設之直線的容許誤差 值),則繼續向前試探下一個節點。 以「第2圖」為例,可以繼續試探{A,B,C}....... {A,B,C,D}等節點集合並重複步驟1。 當Φ > Φ L i n e時,則試探停止,並以Φ < Φ L i n e但最接 近Φ L 1 n e當時之節點集合中的首節點至尾節點作為所求的 ' 直線逼近描述。 以「第2圖」為例,當試探U,B,C,D }時逼近誤差 超過Φ L i ne,則獲得一個直線段描述[A-B-C1 (在下文中 將符號「1標示逼近之向量線段),共3個節點。 然而在實際進行折線段逼近處理時,將同時作直線逼 近與曲線逼近之運算,並且選擇其中較佳者為最後所求之 逼近描述,其大致的處理步驟如「第4圖」所示;其中的 (步驟a5 ),就是判斷在具有相同之向量起點的直線描述資 料,以及曲線描述資料中,何者包含有最多的折線節點, 並且決定以折線節點相對較多者為向量線段的描述資料, 這種方式將可以使構成該向量字體之向量線段的數目最 少,以達到節省向量字體之資料容量的目的。 顯然,習知的方法存在兩個缺點: — 1、折線段的逼近誤差:是取所有節點逼近誤差的數464830 V. Description of the invention (3) Average approximation error: Set the approximation error value of each node to the vector approximation line as Φ i, then the average approximation error is the mathematical average of the approximation errors of all nodes in the set of points A and B Value, as shown in formula (1): Φ = (ΦΑ + ΦΒ) / 2 · · * Formula (1) When dKOLine ((DLine is the allowable error value of the preset straight line), continue to test forward the next Node. Taking the "Figure 2" as an example, you can continue to test {A, B, C} ....... {A, B, C, D} and other node sets and repeat step 1. When Φ > Φ At the time of L ine, the test stops, and the first line to the last node in the node set at the time of Φ < Φ L ine but closest to Φ L 1 ne at that time is used as the description of the straight line approximation. Take "Figure 2" as For example, when U, B, C, D} is approached, the approximation error exceeds Φ L ne, then a straight line segment description [AB-C1 (herein, the symbol "1" is used to indicate the approximated vector line segment) is obtained, with a total of 3 nodes. However, when the approximation processing of the broken line segment is actually performed, the operation of straight line approximation and curve approximation will be performed at the same time. This is the last approximation description. The approximate processing steps are shown in Figure 4; (step a5) is to determine which of the straight line description data and the curve description data have the same starting point of the vector. Contains the most polyline nodes, and decides to use a relatively large number of polyline nodes as the vector line segment description information. This method will minimize the number of vector line segments constituting the vector font to achieve the purpose of saving the data capacity of the vector font. Obviously, the conventional method has two disadvantages:-1. Approximation error of the polyline segment: it is the number of approximation errors of all nodes
五、發明說明(4) 學平均值’其顯然忽略了每個節點在整個逼近過程中影響 是不同的。 對於待逼近的一條折線段集合,設共有η個節點: P1 ’ Ρ2 ’ Ρ3 ’ Ρ4,…Ρη,假設目前為直線/曲線逼近’計 异從Ρ1到Ρ η點之間逼近誤差。 此時整個節點集合為{PI,Ρ2,Ρ3,Ρ4…Ρη } ’則整個 避近誤差 Φ = ( + ΦΡ2+ ΦΡ3+ ΦΡ4+ …ΦΡη ) / η ; 現以「第5圖」為例說明此一明顯的問題:設整個折 線&集合為[A,β,c ],則從節點a到節點c的逼近誤差 Φ ’依據習知之原則將計算如公式(2 ): Φ =(ΦΑ+φΒ+φ〇/3 * . · (公式 2); 其中對A ’ C首尾節點而言》其誤差一定為〇,即φ Α = 0,φ〇〇,所以實際上φ=φΒ/3。 這樣逼近時,可能有φ > φ L i n e的結果,而逼近成2條 直線描述[0 ],但事實上,以人眼觀察,這種逼 近的誤差是不佳的結果。如果注意到線段的部份只在 整條向量線段^中占很小的比例,對整個逼近影響不大 時’應以視作逼近成1條線段才是理想的結果。 顯然,如果只是簡單地將每個節點之逼近誤差的數學 平均值作為判定的依據,仍然沒有精確反映出折線段集合 中局部信息對整條逼近後之向量線段的影響程度。 2 '習知的逼近試探方式為採用遞增方向的逐點試 探’則噪音(η〇丨c e )誤差會大大影響逼近結果。使字H 近品質受影響。V. Description of the invention (4) The average value of learning ’It obviously ignores that the influence of each node in the entire approximation process is different. For a set of polyline segments to be approximated, a total of n nodes are set: P1 ′ P2 ′ P3 ′ P4,… Pη, assuming that the current line / curve approximation is used to calculate the approximation error from P1 to P η. At this time, the entire node set is {PI, P2, P3, P4 ... Pη} ', then the entire approach avoidance error Φ = (+ ΦΡ2 + ΦP3 + ΦP4 +… ΦΡη) / η; take "Figure 5" as an example to illustrate this obvious Problem: Let the entire polyline & set be [A, β, c], then the approximation error Φ 'from node a to node c will be calculated as formula (2) according to the conventional principle: Φ = (ΦΑ + φΒ + φ〇 / 3 *. · (Equation 2); where the error must be 0 for the head and tail nodes of A 'C, that is, φ Α = 0, φ〇〇, so φ = φΒ / 3. In this approach, it is possible There is a result of φ > φ Line, and the approximation is described by 2 straight lines [0], but in fact, the error of this approximation is a poor result when viewed by human eyes. If you notice that the line segment is only in the The entire vector line segment ^ accounts for a small proportion, and when it has little effect on the entire approximation, it should be regarded as approximation into one line segment. The obvious result is obvious. If we simply simply calculate the approximation error of each node, The average value is used as the basis for the determination, and it still does not accurately reflect the local information in the set of polyline segments to the entire approximation The impact of vector line segments. 2 'heuristic approximation conventional way by an incremental point tempted direction' of the noise (η〇 Shu c e) greatly affects the error approximations. H and the word quality nearly affected.
第7頁 4 6 4 8 3 0_ . 五、發明說明(5) 茲以「第6圖」為例作一說明,假設對折線段集 合A-B-C-D-E-F,作逼近處理。當採用傳統遞增逼近試探 方法時,試探方向依序為A,B,C,D,E,F等節點。以 「第6圖」為例,B、C節點處,D、E節點處為存在字體字 模的噪音誤差,顯然這時作直線逼近,當直線逼近誤差之 預設容許值Φ L i n e較小時,節點集合{ B,C },{ D,E }處噪 音誤差及一定程度上的計算累積誤差,可能會使Φ>Φ L 1 ne,從而使得該折線段集合的逼近結果將由若干的逼近 直線描述。但事實上,以人眼觀察,較佳的逼近結果應以 A-F為整個一條逼近直線。 顯然,逼近處理的目的是要要用描述線和原始的折線 段集合相比,在宏觀上,儘可能保證相似逼近。但以折線 段集合之首節點作遞增方向逼近時,很可能會在某個局 部,因為噪音誤差而”只見局部,不見首尾M將許多原本應 為逼近一條逼近線的較佳結果,錯誤的逼近為若干條逼近 線。 所以,傳統的擬合方法是由折線段的首端點開始,在 滿足預設之容許誤差值的前提下逐步遞增折線段集合之節 點,直到超出誤差範圍或整條折線段集合結束。在曲線擬 合的過程中,由於開始時個別點的偏離將導致終止逼近的 運作,結果造成一條曲線被幾條直線段或曲線段逼近,增 加了節點數目,影響了逼近效果,同時增加了資料的容 【發明之目的及概述】Page 7 4 6 4 8 3 0_. V. Description of the Invention (5) Here we will take “Figure 6” as an example to explain, suppose the set of broken line segments A-B-C-D-E-F is used for approximation processing. When the traditional incremental approach heuristic method is used, the heuristic directions are sequentially A, B, C, D, E, F and other nodes. Take "Figure 6" as an example. At the B and C nodes, and at the D and E nodes, there is a noise error of the font font. Obviously, a straight line approximation is performed. When the preset allowable value Φ L ine of the straight line approximation error is small, The noise error at the node set {B, C}, {D, E} and the cumulative error to a certain extent may cause Φ > Φ L 1 ne, so that the approximation result of the set of polyline segments will be described by several approximation straight lines . But in fact, with human eyes, the better approximation result should be A-F as a whole approximation line. Obviously, the purpose of the approximation process is to compare the description line with the original set of polyline segments. On a macro scale, try to ensure similar approximation. However, when approaching the first node of the set of polyline segments in increasing direction, it is likely to be in a certain area because of noise errors. "Only local, but not the beginning and end M. Many of the better results that should have been an approximation line, wrong approximation. There are several approximation lines. Therefore, the traditional fitting method is to start from the first endpoint of the polyline segment, and gradually increase the nodes of the polyline segment set under the premise of meeting the preset allowable error value, until it exceeds the error range or the entire polyline The segment set ends. In the process of curve fitting, the deviation of individual points at the beginning will cause the operation of the approximation to end, resulting in a curve being approximated by several straight or curved segments, increasing the number of nodes and affecting the approximation effect. At the same time, the content of the information has been increased. [The purpose and summary of the invention]
第8頁 8 3 ! 五、發明說明(6) 本發明的主要目的在改善習知逼近處理方法之不精確 以及造成資料量冗長的缺失。 為此,本發明提出將每個節點處逼近誤差乘以其所對 應之直線段在整條向量線段中所占比例所得的積,再予以 加總的值作為判斷之逼近誤差,可以精培的反映出整個折 線段集合各細節的逼近誤差。 另一方面,本發明以折線段集合之尾節點向首節點遞 減的方向逐點進行逼近處理之手段,將可獲得構成向量字 體之最少數量的向量線段,避免冗長現象達到減少資料量 之目的。 有關本發明之詳細技術内容及其實施例,茲配合圖式 說明如次。 【圖式之簡單說明】 第1圖*係為習知掃描字體模型所獲得之折線段集合 的圖例。 ./第2圖,係為習知進行直線逼近的原理說明圖例。 _第3圖,係為習知用以取得折線段集合之最大逼近直 線/曲線的遞增逼近流程圖。 第4圖,係為習知對折線段集合進行逼近處理的基本 流程圖。 \ .第5圖,係為說明習知逼近處理中取逼近誤差之數學 平值將會造成誤差的折線段集合圖例。 v第6圖,係為說明習知逼近處理採遞增方向逐點逼近 將造成噪音誤差的折線段集合圖例。Page 8 8 3! V. Description of the invention (6) The main purpose of the present invention is to improve the inaccuracy of the conventional approximation processing method and the verbose lack of data. For this reason, the present invention proposes to multiply the approximation error at each node by the product of the corresponding straight line segment in the entire vector line segment, and then add the total value as the approximation error of the judgment, which can be refined. It reflects the approximation error of each detail of the entire set of polyline segments. On the other hand, the present invention performs a point-by-point approach to decrease the tail node of the set of polyline segments toward the head node in a decreasing direction, and will obtain the minimum number of vector line segments that constitute a vector font, avoiding the redundant phenomenon and reducing the amount of data. The detailed technical content of the present invention and its embodiments are described below with reference to the drawings. [Brief description of the drawings] Figure 1 * is a legend of the set of polyline segments obtained by the conventional scanning font model. ./Figure 2 is a legend illustrating the principle of linear approximation. _Figure 3 is a flow chart of the incremental approximation of the maximum approximation line / curve used to obtain the set of polyline segments. Fig. 4 is a basic flowchart of the approximation processing for a set of polyline segments. Fig. 5 is an illustration of a set of polyline segments that illustrate the error of the approximation error in the conventional approximation process. v Figure 6 is an illustration of a set of polyline segments that will cause noise error when the point-by-point approximation in the increasing direction is used in the conventional approximation process.
第9頁 46 48 3 Ο 五、發明說明(7) 第7圖,係為本發明計算逼近誤差之原理說明圖。 第8圖,係為本發明用以取得折線段集合之最大逼近 直線/曲線的遞增逼近流程圖。 第9圖,係為本發明之局部流程圖。 第1 0圖,係為以本發明之方法採遞減方向逐點逼近處 理一折線段集合的實施例圖。 【較佳實施例詳細說明】 首先請參閱「第7圖」,假設有一待進行逼近處理的 折線段集合包括有η個折線節點:PI,Ρ2,Ρ3,Ρ4,·.* Ρη ’假6又目前為進行直線/曲線的逼近,並計算從折線之 首節點Ρ1至丨折線之尾節點ρη之間每—個折線節點逼近誤 差。 Ρ4..·Ρ:時整個折線段集合的節點集合為ίΡΙ ,Ρ2,Ρ3, 1、首先做折線首節點Ρ 1到挢 ^ 此連線Hi]為當前逼近之向量^尾卽點Pn的連線,設 即為向量線段〔Pi-pn〕的向量起:’其中折線首節點?1 Μ…Pnq點到敦段ρι_Ρη 吉f折線節點P2, 線交點為P2’ ,P3,,......X直線,相對對應的垂 近誤差值即為折線節點至其Π相對而每—個折線節點的逼 度。 …之垂線交點的連線長Page 9 46 48 3 〇 V. Description of the invention (7) Figure 7 is a diagram explaining the principle of calculating the approximation error according to the present invention. Fig. 8 is a flowchart of incremental approximation of a straight line / curve for obtaining the maximum approximation of a set of polyline segments according to the present invention. Fig. 9 is a partial flowchart of the present invention. Fig. 10 is a diagram illustrating an embodiment of processing a set of polyline segments by point-by-point approach in a decreasing direction using the method of the present invention. [Detailed description of the preferred embodiment] First, please refer to "Figure 7". Assume that a set of polyline segments to be approximated includes η polyline nodes: PI, P2, P3, P4, .... * Pη 'False 6 and At present, a straight line / curve approximation is performed, and the approximation error of each polyline node from the first node P1 of the polyline to the tail node ρη of the polyline is calculated. P4 .. · P: When the node set of the entire polyline segment set is ίPI, P2, P3, 1. First, make the first node of the polyline P1 to 挢 ^ This connection Hi] is the current approximation of the vector ^ tail 卽 point Pn Line, let it be the vector of the vector line segment [Pi-pn]: 'Where the first node of the polyline? 1M ... Pnq point to the Dun section ρι_Ρη and the polyline node P2, and the line intersection point is P2', P3 ,, ... ..X straight line, the relative corresponding close error value is the approximation of each polyline node from the polyline node to its Π relative. ... the length of the line where the perpendicular intersects
則由Ρ1 ,ρ2,Ρ3·_‘Ρη-i ,P 集合中,每個折線節點在整個向旦的折線段的折線節點 響可用其在向量線段〔P卜Ρη Ί广,f段〔〕t -的影… 4 6 4 3 3 0Then from the set of P1, ρ2, P3 · _'Pη-i, P, the polyline nodes of each polyline node in the entire polyline segment of Xiangdan can be used in the vector line segment [P ΡΡη wide, f segment [] t -The shadow ... 4 6 4 3 3 0
五、發明說明(8) 述。以下用W (Px)n〜n表示每 W ( P 1 )=線段的長度/線段的 線段〔Pl-Pn〕的長度)二〇 ; ^'長夜(即向Θ W(P2)=線段£1:^的長度/線段复 W(P3)=線段的長度/線段的長度; ....... ·~~ %長度; W(Pn-l)=線段的長度/線段ρι_ρη W(Pn)=線段的長度/線段^、長度; ; —~ 负度= j 2、則整個逼近向量線段〔Pi^-Pn〕的逼近誤 應點W(Px)乘以對應之折線節點的逼近誤差所彳3。、差可用對 來精確描述’其計算式如公式(3 )所示。 加總值 整個逼近之向量線段〔E1z£q〕的逼近誤差:φ—φ W(P1) + ㈣2 "(Ρ2) + ΦΡ3 *W(P3) + …φρη_" W(Pn-l) + φΡη * w(Pn) . . _ · . ·公式(3); 顯然,這個表達式比習知方法以折線節點之逼近誤差 的數學平均值描述要精確很多,目為其精確的描述了折線 段上每-個折線節點的逼近誤差對整個逼近之向量線段 〔£lz£n〕的影響。 Ρ,Γ>右!^以「第2圖」為例:則整個折線段集合為[A,B, 現求攸折線節點A到折線節點C的逼近誤差F, 依據本發明之方法處理,其算式 _ Φ ΦΑ*(ΑΑ / AD) +ΦΒ^(αβ' / AD) +OC^(AC! /5. Description of the invention (8). The following uses W (Px) n ~ n to denote that each W (P1) = the length of the line segment / the length of the line segment [Pl-Pn]) 20; ^ 'long night (that is to Θ W (P2) = line segment £ 1 : Length of ^ / segment complex W (P3) = length of segment / length of segment; ......... ~~% length; W (Pn-1) = length of segment / segment ρι_ρη W (Pn) = Length of line segment / line length ^, length;; ~~ negative degree = j 2. Then the approximation error point W (Px) of the entire approximation vector line segment [Pi ^ -Pn] is multiplied by the approximation error of the corresponding polyline node. 3. The difference can be accurately described by the pair. Its calculation formula is shown in formula (3). The approximation error of the total approximation of the vector line segment [E1z £ q]: φ—φ W (P1) + ㈣2 " ( Ρ2) + ΦΡ3 * W (P3) +… φρη_ " W (Pn-l) + φρη * w (Pn).. _ ·. · Formula (3); Obviously, this expression is better than the conventional method by The mathematical average description of the approximation error is much more accurate. The purpose is to accurately describe the effect of the approximation error of each polyline node on the polyline segment on the entire approximated vector line segment [£ lz £ n]. P, Γ > right! ^ Take "Figure 2" as an example: The set of segments is [A, B. The approximation error F of the polyline node A to the polyline node C is now calculated. It is processed according to the method of the present invention, and its formula is _ Φ ΦΑ * (ΑΑ / AD) + ΦΒ ^ (αβ '/ AD) + OC ^ (AC! /
4 6 4b ^ 〇 ----------- __ 五、發明說明(9) AD) + 〇D*(AD / AD); 其中對A,D首尾節點而言,其誤差一定為0,Φ A=0, ΦΓ) = 〇。 再請參閱「第8圖」’係為本發明以遞增方向取得折 線段集合之最大逼近直線/曲線的步驟流程圖,其包括 有: 初始化各參數值,包含:容許誤差之極限值OLine, 設折線段集合中的首節點=Start,設折線段集合中的尾 節點=End,設當前向量線段之向量逼近點(Current P〇 i nt)為End (其中的首節點即為當前向量線段的向量起 點); 判斷Current Point是否為Start?若為則執行步驟8, 否則執行下一步驟; 依據本發明之方法’計异從Start到Current Point的 直線/曲線之逼近誤差的加總值φ ; 判斷Φ是否大於Φ L i n e ?若為是,則執行下一步驟, 否則執行步驟6 ; 設Current Point = Current Point-1(亦即是自該 C u r r e η 1; P o i n t向該S t a r t之方向遞減一個折線段節點), 並返回至步驟2 ; 設較佳逼近之向量線段的向量逼近點為C u r r e n t Point (亦即是該向量線段的終點為Current Point);4 6 4b ^ 〇 --------- __ V. Description of the invention (9) AD) + 〇D * (AD / AD); Among them, for A and D nodes, the error must be 0, Φ A = 0, ΦΓ) = 〇. Please refer to "Figure 8" again is a flowchart of the steps for obtaining the maximum approximation line / curve of the set of polyline segments in an increasing direction according to the present invention, which includes: Initializing each parameter value, including: the limit value OLine of the allowable error, set The first node in the set of polyline segments = Start, the tail node in the set of polyline segments = End, and the vector approximation point (Current Point) of the current vector line segment is End (where the first node is the vector of the current vector line segment (Starting point); determine whether the Current Point is Start? If yes, go to step 8, otherwise go to the next step; according to the method of the present invention, 'calculate the sum of the approximation error φ of the straight line / curve from Start to Current Point; judge Is Φ greater than Φ L ine? If yes, go to the next step, otherwise go to step 6; Set Current Point = Current Point-1 (that is, from C urre η 1; P oint decreases in the direction of Start A polyline segment node), and return to step 2; let the vector approximation point of the better approximated vector segment be Current Point (that is, the end point of the vector segment is Current Point);
Current Point = Start,並返回前述之步驟2(亦即 是以該較佳之向量逼近點所對應之折線節點更新為該向量Current Point = Start, and returns to the previous step 2 (that is, the polyline node corresponding to the better vector approximation point is updated to the vector
第12頁 4 6 κ c 五、發明說明(10) 起點,重覆前述的步驟2,用以決定剩餘之折線節點的逼 近向量線段,直至所有的折線節點均處理完畢); 設逼近之向量線段的向量逼近點為s t a r t ; 結束逼近處理。 當然,本發明的上述處理步驟中,仍然必需依照「第 4圖」所示對折線段集合進行逼近處理的基本流程,同時 進行直線逼近以及曲線逼近的運算,並且自其中選擇較佳 者作為最終所求之逼近描述,所以在該步驟6中所指較佳 的向量逼近點係為:自該向量起點至該較佳的向量逼近點 之間涵蓋該折線節點數較多者。 故在上述步驟6至少還包括有下列步驟(如「第9圖」 所示): 6. 1計算自向量起點至直線逼近之加總誤差值17小於 且最接近容許誤差之極限值的向量逼近點之間所涵蓋的折 線節點數(L i n e N u m); 6. 2計算自向量起點至曲線逼近之加總誤差值甲小於 且最接近容許誤差之極限值的向量逼近點之間所涵蓋的折 線節點數(C u r v e N u m);以及 6. 3以涵蓋該折線節點數較多者的向量逼近點為 Current Point(即是較佳的向量逼近點)。 最後請參閱「第1 〇圖」,其中以一折線段集 合A-B-C-D-E-F為例說明依據本發明之方法的處理過程; 依據本發明採遞減方向進行逐點逼近處理的技術,对 首先作逼近處理的節點集合係為[A,B,C,D, E,F ],假設分Page 12 4 6 κ c V. Description of the invention (10) Start point, repeat the above step 2 to determine the approximation vector segments of the remaining polyline nodes until all polyline nodes are processed); Set the approximated vector line segments The vector approximation point is start; the approximation process ends. Of course, in the above-mentioned processing steps of the present invention, it is still necessary to perform the approximation processing on the set of polyline segments as shown in "Figure 4", and simultaneously perform straight-line and curve approximation operations, and select the better one from among them as the final solution. The approximation description is sought, so the better vector approximation point referred to in this step 6 is: from the starting point of the vector to the better vector approximation point, the one with a larger number of polyline nodes is covered. Therefore, the above step 6 also includes at least the following steps (as shown in "Figure 9"): 6. 1 Calculate the vector approximation from the vector starting point to the straight-line approximation of the total error value 17 which is less than and closest to the limit of the allowable error The number of polyline nodes (L ine N um) covered between the points; 6. 2 Calculated between the vector approximation points from the vector starting point to the total error value of the curve approximation A is less than and closest to the limit of the allowable error The number of polyline nodes (Curve N um); and 6.3 The vector approximation point that covers the larger number of polyline nodes is the Current Point (that is, the better vector approximation point). Finally, please refer to "Fig. 10", which uses a set of broken line segments ABCDEF as an example to describe the processing process of the method according to the present invention; the technique of performing point-by-point approximation processing according to the present invention in a decreasing direction, to the node that first performs the approximation process The set system is [A, B, C, D, E, F].
第13頁 464830Page 13 464830
第14頁Page 14
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW88120673A TW464830B (en) | 1999-11-26 | 1999-11-26 | Approaching process method of digitized vector font |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW88120673A TW464830B (en) | 1999-11-26 | 1999-11-26 | Approaching process method of digitized vector font |
Publications (1)
Publication Number | Publication Date |
---|---|
TW464830B true TW464830B (en) | 2001-11-21 |
Family
ID=21643158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW88120673A TW464830B (en) | 1999-11-26 | 1999-11-26 | Approaching process method of digitized vector font |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW464830B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108447103A (en) * | 2018-03-29 | 2018-08-24 | 润电能源科学技术有限公司 | A kind of segmentation line segment approximating method and device |
-
1999
- 1999-11-26 TW TW88120673A patent/TW464830B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108447103A (en) * | 2018-03-29 | 2018-08-24 | 润电能源科学技术有限公司 | A kind of segmentation line segment approximating method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102292721B (en) | Method for converting outline characters to stylized stroke characters | |
JP2790815B2 (en) | Image data compression method | |
JP6585838B2 (en) | Image distortion processing method and apparatus, and computer storage medium | |
CA1207913A (en) | Method and apparatus for representation of a curve of uniform width | |
CN105979117B (en) | Bending page image flattening method based on laser rays | |
CN110480075B (en) | Workpiece curved surface contour compensation system and method based on point cloud data and medium | |
US20060098007A1 (en) | Image processing method for automatic adaptation of 3-d deformable model onto a substantially tubular surface of a 3-d object | |
JP2737877B2 (en) | Dot character pattern smoothing method | |
CN105095818B (en) | A kind of method and apparatus that image is shown, identified based on curve screens | |
TW464830B (en) | Approaching process method of digitized vector font | |
CN115049535A (en) | Method for obtaining effective area of fisheye lens and finely correcting image | |
CN112884833B (en) | Weld groove detection method and device and computer equipment | |
CN114859533A (en) | Zoom lens with fixed focal plane | |
JPH0613213B2 (en) | Block setting method for character image data compression | |
JPH06274149A (en) | Method and device for varying width of outline font | |
CN110070097B (en) | Graphic object comparison method | |
CN114519226A (en) | Tubular object fairing deformation-resistant drawing algorithm suitable for building CAD (computer-aided design) design software | |
Bolson et al. | Applying the centersurface model to 3-D reconstructions of the left ventricle for regional function analysis | |
CN104504665B (en) | A kind of dentures repai surface rapid deformation method of distinguished point based | |
JP2954778B2 (en) | Method for connecting line figure branch point of image input device | |
JP2002277236A (en) | Tolerance deciding method | |
JPH1063849A (en) | Sign authentication method | |
JP3035141B2 (en) | Character creation device and character creation method | |
CN106247984A (en) | A kind of computational methods of the shaft section thread form amount of blocking when solving upright projection | |
CN117078901A (en) | Automatic marking method for single-point bar in steel bar view |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |