JPS6079479A - Linear graphic encoding method - Google Patents

Linear graphic encoding method

Info

Publication number
JPS6079479A
JPS6079479A JP18688183A JP18688183A JPS6079479A JP S6079479 A JPS6079479 A JP S6079479A JP 18688183 A JP18688183 A JP 18688183A JP 18688183 A JP18688183 A JP 18688183A JP S6079479 A JPS6079479 A JP S6079479A
Authority
JP
Japan
Prior art keywords
segment
picture element
pixel
line
chain
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
JP18688183A
Other languages
Japanese (ja)
Inventor
Katsumi Mori
克己 森
Masashi Okudaira
雅士 奥平
Toru Kaneko
透 金子
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP18688183A priority Critical patent/JPS6079479A/en
Publication of JPS6079479A publication Critical patent/JPS6079479A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To execute a processing at a high speed by dividing a picture element of a linear graphic by determining in advance a connecting direction to an adjacent picture element, making each segment formed by connecting each picture element approximate by a polygonal line consisting of one - several straight lines, and encoding it. CONSTITUTION:A picture element 3 of a linear graphic is set, for instance, to eight directions of 0-7 by determining in advance a connecting direction to an adjacent picture element. A segment 5 is formed by connecting from a picture element of a start end 3-1 to a picture element of a final end 3-2 as shown in the figure. The maximum vertical distance l of each picture element 3 and the segment 5 is derived, and if l is within a reference value, the segment 5 becomes a final approximate straight line. If the distance l is larger than the reference value, the picture element 7 whose distance to the segment 5 is the largest is derived, and the segment is divided into 6-1 and 6-2. With regard to the segments 6-1, 6-2, too, the same decision is executed, and it is continued until the distance lbecomes below the reference value. In this way, the linear graphic can be encoded quickly within a necessary approximate accuracy.

Description

【発明の詳細な説明】 本発明は、チェイン符号化された線図形データを基に高
能率直線近似符号化するようにした線図形符号化方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a line figure encoding method that performs high-performance straight line approximation encoding based on chain-encoded line figure data.

従来、線図形の代表的な符号化方法としては、チェイン
符号化方法と直線近似符号化方法とが知られている。
Conventionally, a chain encoding method and a linear approximation encoding method are known as typical encoding methods for line graphics.

チェイン符号化方法は、与えられた線図形を線幅が1画
素となるように細線化処理を行なった後に、′線図形を
構成する画素が、治目している画素に対し、第1図に0
 、1 、2−−−7で示す8方向のいずれの方向に連
結しているかを、3ビット/画素の符号爪を用いて符号
化する方法である。
In the chain encoding method, after thinning a given line figure so that the line width is 1 pixel, the pixels constituting the line figure are to 0
, 1, 2--7, which direction of the eight directions are connected is encoded using a 3-bit/pixel code.

また、直線近似符号化方法は第2図に示すように、線図
形l上に幅dをもった直線状のチューブ2を当てはめて
ゆき、チューブ内に含まれる画素列はそれぞれ1つのI
U線で近似可能とみなし、各チューブ内の画素列の両端
点の画素位置を始点。
In addition, as shown in FIG. 2, the linear approximation encoding method applies a linear tube 2 having a width d to a line figure l, and each pixel column included in the tube has one I
Assuming that it can be approximated by a U line, the pixel positions at both end points of the pixel column in each tube are the starting points.

終点とする直線で近似符号化する方法である。This is a method of approximate encoding using a straight line as the end point.

上記のチェイン符号化方法は、任意の曲線全近似なしで
忠実に符号化するため、前記irf線近似符号化方法に
比べて符号数が多いという欠点があり、またその直線近
似符号化方法は、第2図に示すように符号化のチューブ
20幅dによって近似精度が決定されるので、符号化し
た後は、その直線近似仔号データを用いて近似精度を変
えて符号化しなおすことはできなかった。そのため用途
別に近似精度を変えた直線近似符号化結果を得たい場合
には、データ量の多い原線図形データを保管しておかな
ければならず、また各画素が幅dのチューブ内にあるか
否かの判定は、画素の二次元座標値を用いて行なう必要
があるため、処理喰が多くなる等の欠点があった。
The above chain encoding method faithfully encodes without any full curve approximation, so it has the disadvantage that the number of codes is larger than the IRF line approximation encoding method, and the linear approximation encoding method As shown in Figure 2, the approximation accuracy is determined by the width d of the encoding tube 20, so after encoding, it is not possible to change the approximation accuracy and re-encode using the linear approximation code data. Ta. Therefore, if you want to obtain linear approximation encoding results with different approximation accuracy depending on the application, you must store original line figure data with a large amount of data, and also ensure that each pixel is within a tube with width d. Since it is necessary to make a judgment as to whether or not this is possible using two-dimensional coordinate values of pixels, there are drawbacks such as an increase in processing costs.

本発明の目的は、上述のような従来の線図形の符号化方
法における欠点を除去するため、原線図形データに比較
して少ないデータ臘で忠実な符号化が行なえるチェイン
符号化データを用いて、高能率に直線近似符号化を行な
うようにした線図形のσ号化方法を提供しようとするも
のである。
An object of the present invention is to eliminate the drawbacks of the conventional line figure encoding method as described above, by using chain encoded data that can perform faithful encoding with less data than original line figure data. Therefore, it is an object of the present invention to provide a σ encoding method for line figures that performs linear approximation encoding with high efficiency.

本発明の線図形符号化方法tよ、1画素幅の線図形を折
線により近似して符号化する方式において、線図形を形
成する画素列を、1府接する画素の連なりの方向が予し
め定めた隣り合う方向となる画素列群に分割し、この分
割した個々の画素列がなす各セグメント毎に1本または
複数本の直線からなる折線で近似して符号化することを
特徴とするものである。
In the line figure encoding method t of the present invention, in which a line figure of one pixel width is encoded by approximating it with a broken line, the direction of a series of adjacent pixels is predetermined for the pixel row forming the line figure. The method is characterized in that it is divided into groups of pixel rows in adjacent directions, and each segment formed by the divided individual pixel rows is approximated and encoded with a broken line consisting of one or more straight lines. be.

以下、図面に基づいて本発明方法を詳細に説明する。Hereinafter, the method of the present invention will be explained in detail based on the drawings.

第8図は、チェイン符号化方法の1種であるセグメント
・チェイン符号化方法の説明図であり、8は線図形を形
成する個々の画素、4はチェイン、5はセグメントであ
る。第4図の表は、チェイン符号化方法におけるチェイ
ン符号とセグメント・チェイン符号化方法におけるオク
タント符号と方向符号の対応関係を示す。
FIG. 8 is an explanatory diagram of a segment chain encoding method, which is one type of chain encoding method, in which 8 is an individual pixel forming a line figure, 4 is a chain, and 5 is a segment. The table in FIG. 4 shows the correspondence between chain codes in the chain encoding method and octant codes and direction codes in the segment chain encoding method.

セグメント・チェイン符号化方法は、線図形をなす線分
は局所的に見ると同一方向に連続する場合が多い点に着
目して、符号級を削減する方法である。(参照文献:電
子通信学会論文誌、 vol、 J 65−D、應11
 、 p、pl 890へ1397.「線図形のセグメ
ントチェーン符号化」) 具体的には、第8図に示したように、第1図で説明した
隣接する2つのチェイン符号だけを用いて符号化できる
範囲の画素列をセグメント5と定義し、各セグメント5
を単位にして第4図示の表に従い、チェイン符号欄に示
す隣接関係にある2種のチェイン符号が続く画素列の範
囲を、セグメント5として上欄のそれらのチェイン符号
に対応するオクタント符号のとおりそれぞれ符号化する
方法である。また同時にそのオクタント符号に符号化し
たセグメント5内の2種のチェイン符号の区別を、同図
の表の下軸の方向符号を用いてそれぞれ符号化し、この
方向符号と前記オクタント符号とによって線図形の符号
化データを得るものである。
The segment chain encoding method is a method of reducing code classes by focusing on the fact that line segments forming a line figure often continue in the same direction when viewed locally. (Reference: Journal of the Institute of Electronics and Communication Engineers, vol. J 65-D, 11
, p, pl 890 to 1397. (“Segment chain encoding of line figures”) Specifically, as shown in FIG. and each segment 5
According to the table shown in the fourth figure, the range of pixel rows in which two types of chain codes in an adjacency relationship shown in the chain code column follow is defined as segment 5 according to the octant codes corresponding to those chain codes in the upper column. Each is a method of encoding. At the same time, the distinction between the two types of chain codes in segment 5 encoded in the octant code is encoded using the direction code on the lower axis of the table in the same figure, and the line shape is created using this direction code and the octant code. The coded data is obtained.

このようなセグメント・チェイン符号化方法ハ、従来技
術を用いて容易に実現することが−iJ能である。例え
ば線図IIぞを二次元的に光学走査し、光電変換して得
られた画像信号を蓄積し、間知の方法によって基準泣面
の画素に隣り合う画素を検知して、HBi図に示したよ
うにその隣接方向に応じチェイン符号化し、第4図示の
表に従ってこのチェイン符号に対I心する0またGま1
の方向符号と3ビツト/セグメントのオクタント符号を
発生させるように構成ずれはよい。
Such a segment chain encoding method can be easily implemented using conventional techniques. For example, two-dimensionally optically scan the line diagram II, accumulate the image signals obtained by photoelectric conversion, and detect the pixels adjacent to the pixels of the reference plane using a known method, as shown in the HBi diagram. According to the adjacent direction, the chain code is encoded as shown in FIG.
The configuration shift may be such as to generate a direction code of 3 bits/segment and an octant code of 3 bits/segment.

第5図および第6図は、線図形を形成する画素列を、隣
接する画素の連なりの方向が予しめ定めた隣り合う方向
となる画素列に分割し、この分割した画素列がなす各セ
グメントとして上記セグメント・チェイン符号化方法に
おけるセグメント5のセグメント・チェイン符号化デー
タを用いた場合の本発明方法の実施例の説明図である。
5 and 6, a pixel row forming a line figure is divided into pixel rows in which the directions of a series of adjacent pixels are in predetermined adjacent directions, and each segment formed by the divided pixel rows is shown in FIG. FIG. 4 is an explanatory diagram of an embodiment of the method of the present invention when segment chain encoded data of segment 5 in the segment chain encoding method described above is used.

その第5図は、1個のセグメント5を1本の直線で近似
する場合の説明図で、8は画素、3−1および8−2は
セグメント5の始点および終点の各画素、6はセグメン
ト5に対応する近似直線を示す。
Figure 5 is an explanatory diagram when one segment 5 is approximated by one straight line, where 8 is a pixel, 3-1 and 8-2 are pixels at the start and end points of segment 5, and 6 is a segment. 5 shows an approximate straight line corresponding to 5.

一方、第6図は、1個のセグメント5を、2本のiMM
B21.6−2からなる折線で近似符号化する場合の説
明図である。なお、7は折点を示す。
On the other hand, in FIG. 6, one segment 5 is connected to two iMMs.
FIG. 3 is an explanatory diagram of approximate encoding using a broken line consisting of B21.6-2. Note that 7 indicates a breaking point.

本発明方法は、セグメント5を単位に符号化処理するも
のであって、第5図に示したようにセグメント5の両端
画素3−1.8−2間を結ぶ近似直線6と、これに対1
心するセグメント5をなす画素列の各画素8との距離l
の最大値によって、近似直線6の近似精度が規定される
The method of the present invention encodes each segment 5, and as shown in FIG. 1
Distance l from each pixel 8 of the pixel row forming the segment 5 to be centered
The approximation accuracy of the approximate straight line 6 is defined by the maximum value of .

以下、第5図および第6図に基づいて本発明方法におけ
る符号化処理の流れを説明すると次のとおりである。
The flow of the encoding process in the method of the present invention will be explained below based on FIGS. 5 and 6.

(1)第5図において、セグメント5の始点8−1、終
点8−2を両端点とする直線を第1次近似曲線6とする
(1) In FIG. 5, a straight line whose end points are the starting point 8-1 and the ending point 8-2 of the segment 5 is the first approximate curve 6.

(句 各画素8と第1次近似直線6との距離をめ、最大
距離lが許容範囲内にあるか否かを調べ、その最大距離
lが許容範囲内であれば、第1次近似直線6を最終近似
直線として、これに対応するセグメント5を1本のi[
Mで近似符号化する。
(Phrase) Measure the distance between each pixel 8 and the first approximation straight line 6, check whether the maximum distance l is within the allowable range, and if the maximum distance l is within the allowable range, the first approximate line 6 as the final approximation straight line, and the corresponding segment 5 as one i[
Approximately encode with M.

(8) Off記最大距離lが許容範囲外であれば、第
1次近似直線6からの距離が最大となる画素(複数個あ
る場合は、その中の1つの画素)を、第6図に示すよう
に折点1とする。
(8) If the maximum distance l in Off is outside the allowable range, select the pixel with the maximum distance from the first approximation straight line 6 (if there are multiple pixels, one of them) as shown in Figure 6. Set the break point to 1 as shown.

(4) 次に、第6図に示したように1つのセグメント
5を、2つの第2次近(以1亘線、すなわちセグメント
5の始点画素3−1と折点7を結ぶ近似+if線6−1
および折点7とセグメント5の終点画素8−2を結ぶ近
似直線6−2&二分割する。
(4) Next, as shown in FIG. 6-1
Then, an approximate straight line 6-2 connecting the corner point 7 and the end pixel 8-2 of the segment 5 is divided into two.

(5) 折点7で分割された画素列の各範囲について、
対応する第2次近似直線6−1.6−2と各II!iI
素との距離を調べ、その距離が許容範囲内にあれば、そ
の画素列の範囲はこれに対応する第2次近似ilt線6
−1.6−2を最終近似は線として符号化する。また、
許容範囲外の距離となる画素を含む画素列の範囲につい
ては、その画素列の範囲内に、1)11記(8)と同様
にして、新たに折点を設定し、近似精度が許容範囲内に
なるまで前記(8)以下の処理過卑を繰り返す。
(5) For each range of pixel rows divided at break point 7,
The corresponding second-order approximation straight line 6-1.6-2 and each II! iI
Check the distance to the pixel column, and if the distance is within the allowable range, the range of that pixel column is determined by the corresponding second-order approximation ilt line 6
The final approximation is to encode -1.6-2 as a line. Also,
For the range of pixel rows that include pixels whose distance is outside the allowable range, set a new breaking point within the range of that pixel row in the same manner as in 1) 11 (8), and make sure that the approximation accuracy is within the allowable range. Repeat the above-mentioned (8) and subsequent processing until the amount is within the range.

(6)以上のようにして各セグメント6−1.6−2毎
に近似精度がδ1゛容範囲内に入った1本または偵数本
の直線からなる折線で近似して符号化する。
(6) As described above, each segment 6-1, 6-2 is approximated and encoded using a broken line consisting of one or a rectangular line whose approximation accuracy falls within the range of δ1.

次に、第7図によって前記近似直線6と、これに対応す
る画素列の各画素8の距離tの算出法を説明する。ここ
では第1次近似直線を対象に説明するが、第2次以上の
近似直線に対しても、始点画素8−1または終点画素3
−2を必要に応じて折点画素に置き換えれば以下の説明
はそのまま適用し得るものである。
Next, a method of calculating the distance t between the approximate straight line 6 and each pixel 8 of the corresponding pixel column will be explained with reference to FIG. Here, we will explain the first-order approximation straight line, but the second-order or higher approximation straight line can also be explained at the starting point pixel 8-1 or the ending point pixel 3.
If -2 is replaced with a corner pixel as necessary, the following explanation can be applied as is.

第7図において、8.9は1個のセグメント5内に含ま
れる2種類のチェイン・ペクトルーフ1. yiであり
、それぞれはチェイン符号が示す方向に隣接する隣り合
う2個の画素の中−し・間の距離に相当する長さをもっ
ている。
In FIG. 7, 8.9 indicates two types of chain pectroofs 1.9 included in one segment 5. yi, each having a length corresponding to the distance between the centers of two adjacent pixels in the direction indicated by the chain code.

なお、説明上、近似直線6は、始点画素8−1の位置か
ら終点画素3−2の位置への向きをもつベクトルと考え
、これをビと表現する。
For the purpose of explanation, the approximate straight line 6 is considered to be a vector having a direction from the position of the starting point pixel 8-1 to the position of the ending point pixel 3-2, and this is expressed as Bi.

この時、次式が成立する。At this time, the following formula holds true.

「−(曾□十=−+、 十−−−十ぜ。) +(7,十
2+−−−+ザ) −−−(1) 上記(11式において、m、nはセグメント5内に含ま
れるチェイン・ベクトルW□l 71の個数である。そ
の結果、第7図に示すようにチェイン・ベクトルui+
 yiを、ベクトル官に直交する成分u/i r vl
iと平行な成分と分けて考えると、 しぜ 十寸 十−一一十で ) +L v、、十12 
+−−−/l /2 .1m 十v’ )−0−−−(1) /n となる。すなわち、チェイン・ベクトルuilv、の各
1個によって生じる直線fからの距離の変動比率は、/
、/であって、相互m n に逆方向に変動する。mまたはnのいずれか一方が零で
ある場合には、セグメント5は完全に直線6と一致する
ことは明らかであるので、ここではm−n\0としてい
る。
"-(曾□10=-+, 10---10ze.) +(7, 12+----+The) ---(1) In the above (formula 11), m and n are in segment 5. The number of included chain vectors W□l is 71. As a result, as shown in FIG.
Let yi be the component orthogonal to the vector function u/i r vl
If we consider it separately from the component parallel to i, we get: +L v,, 112
+---/l/2. 1m 10v')-0---(1)/n. That is, the variation ratio of the distance from the straight line f caused by each chain vector uilv is /
, /, which vary in opposite directions to each other m n . If either m or n is zero, it is clear that the segment 5 completely coincides with the straight line 6, so here it is set as m-n\0.

以上のことから、次のようにして近似直線6からの距離
が最大となる画素を決定することができる。すなわち、
始点画素3−1から1110次画素列をたどって、k番
目の画素に到達したとする時、それまでに経過したチェ
イン・ベクトルv、 、 V、の個数をそれぞれM、N
個1 l とすれば、当該に番目の画素と近似直線6との距111
dkは、 dk−α・lト旧 −(8) (M十N−に、αは比例定数) で与えられるから、このdkが最大となる画素がめる画
素となる。
From the above, the pixel having the maximum distance from the approximate straight line 6 can be determined as follows. That is,
When we trace the 1110th pixel column from the starting point pixel 3-1 and reach the k-th pixel, the numbers of chain vectors v, , V, that have passed up to that point are M and N, respectively.
If the number of pixels is 1 l, then the distance between the corresponding pixel and the approximate straight line 6 is 111
Since dk is given by dk-α·lto-(8) (M×N-, α is a proportionality constant), the pixel for which this dk is maximum is the pixel to be included.

七゛グメント・チェイン符号化法で(ま、セグメント5
内の画素数f m+n )は既知であり、かつ、チェイ
ン・ベクトルuil Viの識別は、第4図の表の方向
符号に対応させればよいのテ、周知の演算回路を用いる
ことによって茶”易に上記の処理によりdkが最大とな
る画素をめることができる。
With the 7 segment chain encoding method (well, segment 5
The number of pixels f m+n ) in the chain vector uil Vi is known, and the chain vector uil Vi can be identified by making it correspond to the direction code in the table of FIG. By the above processing, it is possible to easily find the pixel with the maximum dk.

次に、前記近似直線6の近似精度を評価するため、前記
dkの最大距離の絶対値を算出する。そのための処理は
、前述の処理によってめた最大距離を与える画素につい
てのみ行なえばよいので、以下説明する算出式により短
時間に処理し得る。
Next, in order to evaluate the approximation accuracy of the approximate straight line 6, the absolute value of the maximum distance of the dk is calculated. The processing for this need only be performed for the pixels that give the maximum distance determined by the above-described processing, so the processing can be performed in a short time using the calculation formula described below.

すなわち、最大距離を与える画素の座標値を(Xk+ 
Vk ) rセグメント5の始点画素3−1および終点
画素8−2の各位置をそれぞれ1(Xs、y8)、(X
e、yo)とすると請求める最大距離dmaXは、 で与えられる。
In other words, the coordinate value of the pixel that gives the maximum distance is (Xk+
Vk) Each position of the starting point pixel 3-1 and ending point pixel 8-2 of r segment 5 is set to 1 (Xs, y8) and (X
e, yo), the maximum distance dmaX that can be claimed is given by:

なお、セグメント・チェイン符号化された画素の座標値
は、始点画素8−1の座標値を基準にして、第4図の表
におけるオクタント符号が示すセグメントについて、同
図の表の下欄の方向符号に関連して、前記座標値のX値
またはY値%b%、林※れへ両筒に、値lの加減算を行
なうことによりめられることGl明らかであるから、前
記(4)式の演算処理も比較的容易に行ない得る。
Note that the coordinate values of the segment chain-encoded pixels are based on the coordinate values of the starting point pixel 8-1, and for the segments indicated by the octant codes in the table of FIG. In relation to the sign, it is clear that it can be determined by adding and subtracting the value l to the X value or Y value %b% of the coordinate value, Hayashi*re, and both cylinders. Arithmetic processing can also be performed relatively easily.

以上、llljmのセグメントについての処理方法を説
明したが、任意のセグメントについても同様に処理し得
ることは明らかである。
Although the processing method for the llljm segment has been described above, it is clear that any segment can be processed in the same way.

このようにして演算処理により得た最大距rAi’p 
dmaxを用いて、近似精度を評価した後の符号化処理
は、さきに第5図および第6図によって説明したとおり
である。
The maximum distance rAi'p obtained through calculation processing in this way
The encoding process after evaluating the approximation accuracy using dmax is as described above with reference to FIGS. 5 and 6.

以上、セグメント・チェイン符号化されたデータを用い
た本発明方法の実側例について説明したが、通常のチェ
イン符号化データのセグメント・チェイン符号化データ
への変換は、第4図の表を用いて容易に実行することが
できるので、この変換をl’l+Jα理として実行する
ことによりチェイン符号化データに対しても本発明方法
を容易適用し得ることは論をまたない。
The practical example of the method of the present invention using segment chain encoded data has been described above, but the conversion of ordinary chain encoded data to segment chain encoded data can be performed using the table shown in Figure 4. Therefore, it goes without saying that the method of the present invention can be easily applied to chain-encoded data by executing this transformation as the l'l+Jα principle.

以上詳細に説明したように、本発明方法は、線図形を1
1琺成する画素列を、隣接する画素の連り方向にlJ6
じて予め定めた隣り合う方向となる画素列群に分割し、
この分割された個々の画素列からなる各セグメント毎に
1本または複数本の直線からなる折線で近似符号化する
方法であるから、線図形をデータ圧縮して、精度高く符
号化し得る効果がある。特に画素の2次元配列として表
現された生の図面データに比較して、大幅にデータ圧縮
されたセグメント・チェイン1子号化データを基本デー
タとして蓄積しておき、これを基に本発明方法により符
号化すれば、所要近似精度に応じてさらにデータ圧縮効
果の高い直線近似符号化データを得ることができる利点
がある。このこと(ま、例えば図面データベースシステ
ムにおいて、センタに基本データとしてセグメント・チ
ェイン符号化データを蓄積しておき、これを遠隔のX−
Yプロッタに出力する時、所望の近似精度内で直線近似
データに変換して伝送し得ることとなり、伝送コストの
低減上極めて有利である等本発明方法によって得られる
効果は極めて太きい。
As explained in detail above, the method of the present invention allows line figures to be
1J6 pixel rows in the direction of adjacent pixels.
divided into groups of pixel rows in predetermined adjacent directions,
Since this method performs approximate encoding using broken lines consisting of one or more straight lines for each segment consisting of each divided individual pixel column, it has the effect of compressing the data of line figures and encoding them with high precision. . In particular, segment chain 1 encoded data, which is significantly compressed compared to raw drawing data expressed as a two-dimensional array of pixels, is accumulated as basic data, and based on this data, the method of the present invention is applied. If encoded, there is an advantage that linear approximation encoded data can be obtained with a higher data compression effect depending on the required approximation accuracy. This (for example, in a drawing database system, segment chain encoded data is stored as basic data at the center, and this data is transferred to a remote
When outputting to the Y plotter, it is possible to convert data into linear approximation data and transmit it within a desired approximation accuracy, which is extremely advantageous in terms of reducing transmission costs.The effects obtained by the method of the present invention are extremely significant.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は、チェイン符号化方法シこおけるチェインの方
向を示す図、 第2図は、従来の直線近似符号化方法の説明図、第8図
は、セグメント・チェイーン符号化方法+1iD説明図
、 第4図は、ヂエイン符号に対重る方向T′:f号および
オクタント符号の対応間1糸を示す図、第5図および第
6図は、セグメント・チェイン符号化コードを用いた場
合を例にとって本発明方法を説明するための説明図、 第7図は、近似直線と画素の間の距離の算出法σ)−例
の説明図である。 1・・・線図 2・・・チューブ 3、8−1.3−2・・・画素 4・・・チェイン5・
・・セグメント Q、 6−1. +3−2・・・近似直線7・・・折点
8,9・・・チェイン・ベクトル。 第6図 第’/ l;ri −1
FIG. 1 is a diagram showing the direction of the chain in the chain encoding method, FIG. 2 is an explanatory diagram of the conventional linear approximation encoding method, FIG. 8 is an explanatory diagram of the segment chain encoding method + 1iD, Fig. 4 is a diagram showing the direction T' relative to the chain code: one thread between the corresponding f and octant codes, and Fig. 5 and Fig. 6 are examples of cases where segment chain encoding codes are used. FIG. 7 is an explanatory diagram of an example of a method σ) for calculating the distance between an approximate straight line and a pixel. 1... Diagram 2... Tube 3, 8-1.3-2... Pixel 4... Chain 5.
...Segment Q, 6-1. +3-2...Approximate straight line 7...Break points 8, 9...Chain vector. Figure 6 '/l;ri -1

Claims (1)

【特許請求の範囲】[Claims] 11画素1幅の線図形を折線により近似して符号化する
方式において、線図形を形成する画素列を、隣接する画
素の連なりの方向が予じめ定めた隣り合う方向となる画
素列群に分割し、この分割した個々の画素列がなす各セ
グメント毎に1本または複数本の直線からなる折線で近
似して符号化することを特徴とする線図形符号化方法。
In a method of encoding a line figure of 11 pixels and 1 width by approximating it with a broken line, the pixel rows forming the line figure are divided into a group of pixel rows in which the direction of a series of adjacent pixels is in a predetermined direction. A line figure encoding method characterized by dividing a pixel column and approximating and encoding each segment formed by the divided individual pixel columns with a broken line consisting of one or more straight lines.
JP18688183A 1983-10-07 1983-10-07 Linear graphic encoding method Pending JPS6079479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18688183A JPS6079479A (en) 1983-10-07 1983-10-07 Linear graphic encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18688183A JPS6079479A (en) 1983-10-07 1983-10-07 Linear graphic encoding method

Publications (1)

Publication Number Publication Date
JPS6079479A true JPS6079479A (en) 1985-05-07

Family

ID=16196310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18688183A Pending JPS6079479A (en) 1983-10-07 1983-10-07 Linear graphic encoding method

Country Status (1)

Country Link
JP (1) JPS6079479A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62257573A (en) * 1986-05-01 1987-11-10 Kanebo Ltd Automatic drawing reading system
JPS62286176A (en) * 1986-06-04 1987-12-12 Kanebo Ltd Converting/processing method for drawing data
JPS62286177A (en) * 1986-06-04 1987-12-12 Kanebo Ltd Converting/processing method for drawing data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62257573A (en) * 1986-05-01 1987-11-10 Kanebo Ltd Automatic drawing reading system
JPS62286176A (en) * 1986-06-04 1987-12-12 Kanebo Ltd Converting/processing method for drawing data
JPS62286177A (en) * 1986-06-04 1987-12-12 Kanebo Ltd Converting/processing method for drawing data

Similar Documents

Publication Publication Date Title
KR0171151B1 (en) Improved apparatus for approximating a control image using curvature calculation technique
US6556707B1 (en) Method and apparatus for image processing for performing a color conversion
Li et al. Improvements on bicubic image interpolation
CN1110956C (en) Contour approximation apparatus for representing contour of object
CN1099196C (en) Data rate conversion
JPS6333351B2 (en)
US5774596A (en) Adaptive contour coding method for encoding a contour image in a video signal
CN1132984A (en) Block matching motion estimation method
JPS6079479A (en) Linear graphic encoding method
JP4136031B2 (en) Outline coding device
RU2003130966A (en) METHOD FOR SEALING AND UNPACKING IMAGE DATA
US5896466A (en) Method and apparatus for encoding a contour of an object by using a vertex inserting technique
CN111179169A (en) Parameter optimization method of bicubic image interpolation model
JPS63164575A (en) Encoding system for image data
EP0556654B1 (en) A method for compressing color image data
KR100493854B1 (en) Quantization Method in Object-Centered Encoding
CN1062701C (en) Apparatus for encoding controur of object
US5915045A (en) Method and apparatus for encoding a contour of an object by adapting a vertex coding technique
CN100466740C (en) A method to quantify difference for video code processing and its device
JPH01194755A (en) Image encoder
ARAI et al. Structure runlength coding for digital images
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
KR900701130A (en) Method and system for compressing color video data
Yang et al. Convformer: Dual-Stream Vision Transformers and Convolutional Networks for Image Restoration
JPS6170859A (en) Treatment of picture information