JP2646476B2 - Logo / Illustration data input / output device and input / output method - Google Patents

Logo / Illustration data input / output device and input / output method

Info

Publication number
JP2646476B2
JP2646476B2 JP4269646A JP26964692A JP2646476B2 JP 2646476 B2 JP2646476 B2 JP 2646476B2 JP 4269646 A JP4269646 A JP 4269646A JP 26964692 A JP26964692 A JP 26964692A JP 2646476 B2 JP2646476 B2 JP 2646476B2
Authority
JP
Japan
Prior art keywords
point
junction
data
logo
illustration
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.)
Expired - Fee Related
Application number
JP4269646A
Other languages
Japanese (ja)
Other versions
JPH0696199A (en
Inventor
和男 寅市
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toraichi Kazuo
Original Assignee
Toraichi Kazuo
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 Toraichi Kazuo filed Critical Toraichi Kazuo
Priority to JP4269646A priority Critical patent/JP2646476B2/en
Priority to CA002105125A priority patent/CA2105125C/en
Priority to CN93117077A priority patent/CN1033110C/en
Priority to EP19930306856 priority patent/EP0586219A3/en
Priority to AU46008/93A priority patent/AU656090B2/en
Priority to US08/114,364 priority patent/US5572605A/en
Priority to KR1019930017344A priority patent/KR0129505B1/en
Publication of JPH0696199A publication Critical patent/JPH0696199A/en
Application granted granted Critical
Publication of JP2646476B2 publication Critical patent/JP2646476B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明はロゴマ−ク、イラスト
など(簡単のため以下ロゴ・イラストと略す)を画像読
み取り装置によって二値デ−タとして得て、ロゴ・イラ
ストの特徴を失うことなくノイズを除去しつつ圧縮して
記憶させ、圧縮したデ−タからロゴ・イラストを再生す
るものである。とくにロゴ・イラストを原図から自動的
にデジタルデ−タ化し、これを任意の大きさ任意の位置
に再生することに利用され、印刷機器やコンピュ−タ等
に簡単に使用できるものである。
BACKGROUND OF THE INVENTION The present invention obtains logo marks, illustrations, etc. (hereinafter simply abbreviated as logos / illustrations) as binary data by an image reading apparatus without losing the features of the logos / illustrations. This is to compress and store while removing noise, and reproduce the logo / illustration from the compressed data. In particular, it is used to automatically convert a logo / illustration from an original figure into digital data and reproduce the digital data at an arbitrary size and an arbitrary position, and can be easily used in a printing device, a computer, and the like.

【0002】[0002]

【従来の技術】ロゴマ−ク・イラストは任意の形状、寸
法の図形、模様、またはその集まりである。3次元のも
のもあるがここでは2次元のものを対象にする。文字と
は異なり形状が予め定まっておらずデザイナ−の創意に
よって創出される。多様なものがあるが、この明細書で
は、図15に示す音符、図16のダイオ−ド、図38の
円グラフ、図39のたばこ、図44〜図50の例等を参
照しながら説明する。
2. Description of the Related Art A logo mark / illustration is a figure, a pattern, or a collection of any shape and size. Although there are three-dimensional ones, two-dimensional ones are used here. Unlike characters, the shape is not predetermined and is created by the designer. Although there are various types, in this specification, description will be made with reference to the musical notes shown in FIG. 15, the diodes in FIG. 16, the pie chart in FIG. 38, the tobacco in FIG. 39, the examples in FIGS. .

【0003】原図は紙などに書かれた状態でそのまま保
存される。原図は1つしかない。再生しようとするとコ
ピ−機で光学的に複写するしかない。拡大したい場合や
縮小したい場合はコピ−機械で光学的に縮小、拡大す
る。
The original drawing is stored as it is in a state written on paper or the like. There is only one original drawing. The only way to reproduce it is to copy it optically with a copy machine. When it is desired to enlarge or reduce the size, it is optically reduced and enlarged by a copy machine.

【0004】またある書類の指定の場所に入れたいとい
う場合も、コピ−機によって一旦コピ−し、紙を切っ
て、糊で所望の位置に貼り付ける必要がある。全て手作
業である。このように不定形の形状模様の集合であるか
ら、ロゴ・イラストは記録、再生、拡大、縮小など処理
が難しい。
When it is desired to place a document in a designated place, it is necessary to make a copy by using a copying machine, cut the paper, and paste it at a desired position with glue. Everything is manual. As described above, the logo / illustration is difficult to process such as recording, reproduction, enlargement, reduction, etc. because it is a set of irregular shapes and patterns.

【0005】デザイナ−が創出するのでロゴ・イラスト
の数は極めて多く、しかも一つのマ−クが繰り返し使用
されることも多くないので、ロゴ・イラストの処理の自
動化は未だ全くといって良いほどなされていない。再生
はコピ−機による他印刷機による大量再生もあるがこれ
とて原画をコピ−して版を作るのであるから光学的に複
写しているのと同じことである。
Since the designer creates a large number of logos and illustrations, and one mark is not frequently used, automation of the processing of the logos and illustrations is almost completely impossible. Not done. Reproduction is also performed in large quantities by other printing machines using a copy machine, but since the original image is copied to make a plate, it is the same as optically copying.

【0006】従って、ロゴ・イラストの自動処理に関す
る従来技術といえるようなものは未だ曾て存在しなかっ
た。
[0006] Therefore, there has never been a prior art relating to automatic processing of logos and illustrations.

【0007】[0007]

【発明が解決しようとする課題】従来ロゴ・イラストを
コピ−機を使わず、再生できるような技術は存在しなか
った。原図をそのまま保存するという他に記録の方法と
て存在しない。いわんや縮小拡大などの処理はコピ−機
に頼る他はない。このような方法ではロゴ・イラストの
自動的な取り扱いが全くできない。人手による方法は時
間が掛かり、しばしば熟練を要することもある。また繰
り返し複写するとノイズが入り画質が低下する。拡大す
ると輪郭線がぼやけて奇麗な拡大図が得られない。
Conventionally, there has been no technology capable of reproducing a logo / illustration without using a copying machine. There is no way to record other than saving the original drawing as it is. There is no other way but to rely on a copy machine for such processing as reduction and enlargement. With such a method, automatic handling of logos and illustrations cannot be performed at all. Manual methods are time consuming and often require skill. In addition, when copying is repeated, noise is generated and the image quality is reduced. When enlarged, the outline is blurred and a beautiful enlarged view cannot be obtained.

【0008】原図を保存し光学的に処理するのではな
く、デジタルデ−タとしてロゴ・イラストを記録でき、
任意の大きさ任意の場所にロゴ・イラストを奇麗に再生
出来る方法が切に望まれる。
[0008] Rather than storing the original drawings and optically processing them, logos and illustrations can be recorded as digital data.
There is a strong need for a method that can reproduce logos / illustrations in any size and any place.

【0009】この要望に答え、本発明は、ロゴ・イラス
トを光学的に読み取り自動的にデ−タ圧縮して記憶し任
意の大きさで原画に忠実なロゴ・イラストとして任意の
場所に再生できるようにするロゴ・イラストデ−タ入力
出力装置を提供する。その目標は次のように纏められ
る。
In response to this demand, the present invention optically reads a logo / illustration, automatically compresses the data, stores the data, and reproduces the logo / illustration in an arbitrary size and at any location as a logo / illustration faithful to the original image. A logo / illustration data input / output device is provided. The goals can be summarized as follows.

【0010】(1)ロゴ・イラストデ−タの作成労力を
省くこと。 (2)高品質のロゴ・イラストの取り扱いが可能なこ
と。 (3)ロゴ・イラスト記憶のためのデ−タ量が少ないこ
と。
(1) Eliminating labor for creating logo / illustration data. (2) Capable of handling high quality logos and illustrations. (3) The amount of data for storing logos and illustrations is small.

【0011】[0011]

【課題を解決するための手段】本発明のロゴ・イラスト
データ入力出力装置は、光学的にロゴ・イラストデータ
を読み取り、縦横に有限個並ぶ画素に対応させて記憶す
るロゴ・イラスト読み取り装置と、縦横に並ぶ画素に対
応付けて読み取られたロゴ・イラストの輪郭線を抽出す
る輸郭線抽出機構と、抽出された輪郭線の2次元座標
(X,Y)を連続する群毎に記憶する輪郭点列記憶機構
と、前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求めるデータ近似機構Aと、前記の近
似結果を微分演算することによってx、y空間での群毎
の点列の各点における曲率を求める曲率演算機構と、群
毎の曲率のデータから真円を抽出する真円抽出機構と、
真円を除く輪郭点列の曲率のデータから無限大であるか
ある一定値より大きい値の曲率を持つ点を仮接合点とし
て抽出する仮接合点位置抽出機構と、前記仮接合点の1
つ(第1仮接合点)の輪郭点列上の前後所定個の点の1
つを第1接合点候補とし、前記第1仮接合点から所定半
径内で同一輪郭点列上にある他の仮接合点の1つ(近傍
接合点)の輪郭点列上の前後所定個の点の1つを第2接
合点候補とし、同一輪郭点列上で点列走査方向に第1固
定点と前記第1仮接合点と前記近傍接合点と第2固定点
がこの順で一列状に並ぶように前記近傍接合点と第1固
定点と第2固定点を選択する手段と、前記第1接合点候
補と前記第2接合点候補のすべての組合せについて、前
記第1固定点と前記第1接合点候補と前記第2接合点候
補と前記第2固定点の4点を最も滑らかに結ぶ線の滑ら
かさに基づき前記第1接合点候補の適合度を求める手段
と、最も適合度の高い前記第1接合点候補を選択して前
記第1仮接合点に代わる最適接合点とする手段とを有す
る最適接合点抽出機構と、連続する二以上の直線又は連
続する二以上の円弧の始点である最適接合点の中からそ
れがなくても近似精度が保たれるような不要な最適接合
点を見いだしこれを除去し直線又は円弧を統合する不要
接合点除去機構と、除去されずに残った最適接合点を最
終接合点として記憶する最終接合点記億装置と、同一群
の点列内の隣接する最終接合点の間を直線、円弧の順で
近似しこれで所定の近似精度が得られないときはtを独
立変数、x、yを従属変数とした2次の区分的多項式で
近似し近似精度が所定の値に収まるまで2次の区分的多
項式の次元数を増加させながら最小二乗近似を繰り返し
て隣接する最終接合点の間を、直線、円弧、区分的多項
式で近似するデータ近似機構Bと、真円データと点列の
群毎に前記の最終接合点の座標と隣接する最終接合点の
間を近似する関数のパラメータとを記憶する圧縮データ
記憶機構と、記憶された圧縮データを入力し真円データ
と点列の群毎の最終接合点の座標と隣接する最終接合点
の間を近似する関数のパラメータを得て輪郭線を再生す
る輪郭再生機構と、再生された輪郭線の内部の画素と外
部の画素に異なる値を対応させるロゴ・イラスト再生機
構と、再生されたロゴ・イラスト出力する再生データ出
力機構を含むことを特徴とする。
A logo / illustration data input / output device according to the present invention optically reads logo / illustration data and stores the logo / illustration data in correspondence with a finite number of pixels arranged vertically and horizontally. A contour line extraction mechanism for extracting the outline of a logo / illustration read in association with pixels arranged vertically and horizontally, and a contour for storing two-dimensional coordinates (X, Y) of the extracted outline for each continuous group A point sequence storage mechanism, and the X and Y coordinates of the contour point sequence for each group are approximated by a quadratic piecewise polynomial with t being an independent variable and x and y being dependent variables, and the approximation accuracy is within a predetermined range. A data approximation mechanism A that repeats least-squares approximation while increasing the number of dimensions of the piecewise polynomial to obtain an approximate polynomial for each group of contour point sequences, and performs a differential operation on the above-described approximation result for each group in x, y space At each point in the sequence of points A curvature calculation device for determining the rate, and the true circle extraction mechanism for extracting a perfect circle from the data of the curvature of each group,
A temporary joining point position extracting mechanism for extracting a point having a curvature of infinity or a value larger than a certain value as a temporary joining point from the curvature data of the contour point sequence excluding a perfect circle;
1 of a predetermined number of points before and after on one (first temporary joining point) outline point sequence
One as a first joining point candidate, and a predetermined number of front and rear points on one (neighboring joining point) contour point sequence of another temporary joining point within a predetermined radius from the first temporary joining point. One of the points is regarded as a second joint point candidate, and the first fixed point, the first temporary joint point, the neighboring joint point, and the second fixed point are arranged in a line in this order on the same contour point sequence in the point sequence scanning direction. Means for selecting the near junction, the first fixed point, and the second fixed point so as to line up with the first fixed point and the second fixed point, for all combinations of the first joint point candidate and the second joint point candidate. Means for determining the fitness of the first joint candidate based on the smoothness of a line connecting the four points of the first joint candidate, the second joint candidate, and the second fixed point most smoothly; Means for selecting a high candidate for the first junction and making it an optimum junction instead of the first temporary junction. Unnecessary optimal joints that maintain the approximation accuracy without them are found out of the optimal joints that are the starting points of two or more continuous straight lines or two or more continuous arcs, and they are removed. An unnecessary joint removal mechanism that integrates a straight line or an arc, a final joint storage device that stores the optimal joint that remains unremoved as a final joint, and an adjacent final joint in the same group of point trains. If a predetermined approximation accuracy cannot be obtained with a straight line and a circular arc in this order, t is an independent variable, x and y are approximated by a quadratic piecewise polynomial with dependent variables, and the approximation accuracy is a predetermined value. A data approximation mechanism B for approximating between adjacent final junctions with a straight line, an arc, and a piecewise polynomial while repeating least-squares approximation while increasing the number of dimensions of the second-order piecewise polynomial until it fits in And the coordinates of the above final junction point for each group of point sequences A compressed data storage mechanism for storing parameters of a function approximating between final joining points to be inputted, and coordinates of final joining points for each of a group of perfect circle data and a point sequence by inputting the stored compressed data, and a final joining adjacent thereto. A contour reproduction mechanism for reproducing a contour line by obtaining parameters of a function approximating between points; a logo / illustration reproduction mechanism for associating different values to pixels inside and outside the reproduced contour line; A playback data output mechanism for outputting a logo / illustration.

【0012】[0012]

【作用】図1に全体の構成を一覧表にして示す。ここに
全ての機構を予め記す。 A.画像記憶装置1 B.輪郭点列抽出装置 C.輪郭点列記憶装置 D.デ−タ近似機構A E.曲率演算機構 E′.近似曲率記憶装置 F.真円抽出機構 G.真円記憶装置 H.接合点位置抽出機構 I.接合点位置記憶装置 J.最適接合点抽出機構 K.最適接合点記憶装置 L.接合点除去機構 M.最終接合点記憶装置 N.デ−タ近似機構B O.圧縮デ−タ出力機構 P.圧縮デ−タ記憶装置 R.輪郭再生機構 S.ロゴ・イラスト再生機構 T.再生デ−タ出力機構 U.画像記憶装置2
FIG. 1 is a table showing the entire configuration. Here, all the mechanisms are described in advance. A. Image storage device 1 B. Contour point sequence extraction device C. Outline point sequence storage device D. Data approximation mechanism AE Curvature calculation mechanism E '. Approximate curvature storage device F. Perfect circle extraction mechanism G. Perfect circular storage device H. Junction point position extraction mechanism I. Junction point position storage device Optimal junction extraction mechanism K. Optimal junction storage device L. Junction point removal mechanism Final junction storage device Data approximation mechanism B.O. Compressed data output mechanism Compressed data storage device Contour reproduction mechanism Logo and illustration playback mechanism Reproduction data output mechanism U. Image storage device 2

【0013】例えば図30に示すダイオ−ドのロゴ・イ
ラストについて手順を簡単に説明する。図30はもう一
度説明される。これは真円抽出を説明するために余分に
右肩に円を書き込んでいる。
For example, the procedure of the diode logo / illustration shown in FIG. 30 will be briefly described. FIG. 30 is described again. In this case, an extra circle is drawn on the right shoulder to explain the extraction of a perfect circle.

【0014】まず紙に書いてあるダイオ−ドの図形をイ
メ−ジスキャナで読み取る。これがロゴ・イラストの光
学的な読み取り、入力である。輪郭線の集合である輪郭
点列抽出をすると白抜きのロゴ・イラストになる。この
例で輪郭点列の群としては5つある。右肩の円について
内外2本の輪郭線がある。ダイオ−ドの部分では外側に
ある輪郭線と、内側上下の輪郭線がある。合計で5つで
ある。
First, a figure of a diode written on paper is read by an image scanner. This is the optical reading and input of logos and illustrations. Extracting a contour point sequence, which is a set of contour lines, results in a white logo / illustration. In this example, there are five groups of contour point sequences. There are two inner and outer contours for the right shoulder circle. In the diode part, there are an outer contour line and an inner upper and lower contour line. There are five in total.

【0015】媒介変数表示を用いて、X、Y座標をtの
関数とする。それぞれの輪郭点列群において全体に渡っ
て区分的多項式で近似する。区分的多項式で連続関数に
なるから各輪郭点列において2階微分し曲率を求める。
曲率が一定である輪郭点列は真円である。これは真円と
して分離される。この例では右肩の○が除かれる。
Using the parametric variable representation, the X and Y coordinates are functions of t. Each contour point sequence group is approximated by a piecewise polynomial throughout. Since a piecewise polynomial becomes a continuous function, the curvature is obtained by performing second order differentiation on each contour point sequence.
A contour point sequence having a constant curvature is a perfect circle. This is separated as a perfect circle. In this example, the circle on the right shoulder is removed.

【0016】残りはこの例で3つの輪郭点列群になる。
曲率の大きいところが接合点である。4段目で輪郭点列
の交点、曲点などに×の印が付いている。これが接合点
である。輪郭点列は後に追加されることもある。
The remainder is a group of three contour points in this example.
The place where the curvature is large is the junction. In the fourth row, crosses and curved points of the outline point sequence are marked with a cross. This is the junction. The outline point sequence may be added later.

【0017】接合点によって輪郭点列を分割するのであ
る。接合点は曲率が大きいとして求めた一次的な接合点
(仮接合点という)を用いても良い。ロゴ・イラストの
場合は始めからきれいに描かれたロゴ・イラストを用い
ると、ノイズが入り難いために曲率だけからでも接合点
を正確に求めることができる。こうすると計算が極めて
単純化される。しかし本発明はノイズを含む原画からで
もより奇麗な複製をうることができる。
The outline point sequence is divided by the joining points. As the joining point, a primary joining point determined as having a large curvature (referred to as a temporary joining point) may be used. In the case of a logo / illustration, if a logo / illustration that is drawn neatly from the beginning is used, noise is less likely to enter, so that the junction can be accurately determined only from the curvature. This greatly simplifies the calculation. However, the present invention can obtain a cleaner copy even from an original image containing noise.

【0018】接合点についてはさらに彫琢を重ねること
がある。この場合は近傍の接合点との整合性を考えて接
合点を修正する。これは仮接合点と接合点候補として後
に説明する。また接合点の位置を修正した後、不要な接
合点を除去するということも有効である。さらに新たに
接合点を追加するということもある。このようにすると
光学的読み取りなどにおいて発生したノイズなどを有効
に除去できる。
[0018] At the joining point, there is a case where the sculpture is further repeated. In this case, the joining point is corrected in consideration of the consistency with the nearby joining point. This will be described later as a temporary joining point and a joining point candidate. It is also effective to remove unnecessary joint points after correcting the positions of the joint points. In some cases, a new junction is added. In this way, noise or the like generated in optical reading or the like can be effectively removed.

【0019】接合点が確定すると、接合点の間を直線、
円弧、自由曲線によって近似する。近似は直線、円弧、
自由曲線の順で行う。ロゴ・イラストであるから、直
線、円弧、自由曲線の比率はさまざまである。従って、
近似の順が直線、円弧、自由曲線である理由は頻出度が
この順であるからではない。
When the joining points are determined, a straight line is drawn between the joining points.
Approximate by arc and free curve. The approximations are straight lines, arcs,
Perform in the order of free curves. Because it is a logo / illustration, the ratio of straight lines, arcs, and free curves varies. Therefore,
The reason that the order of approximation is a straight line, an arc, and a free curve is not because the frequency of occurrence is in this order.

【0020】そうではなくて、記録されたデ−タの品質
を上げるためにこの順で近似をするのである。もしも始
めから自由曲線として近似すると、直線や円弧もそれな
りに2次曲線で近似してしまう。2次曲線の集合は直線
や円弧を正確に表現できない。ノイズがある場合は直
線、円弧がさらに変形するように近似される。直線、円
弧部分が確かに存在する筈でこれらを確実に抽出するた
めに、直線、円弧、自由曲線の順で近似するのである。
直線の場合は近似に要する時間は短い。デ−タ量も少な
い。円弧の近似も簡単である。円弧の始点、半径、中心
角、関数の係数などを与えれば良い。
Instead, approximations are made in this order to improve the quality of the recorded data. If it is approximated as a free curve from the beginning, straight lines and arcs will be approximated by quadratic curves. A set of quadratic curves cannot accurately represent a straight line or an arc. When there is noise, it is approximated that the straight line and the arc are further deformed. Straight lines and circular arcs should exist, and in order to reliably extract them, approximation is performed in the order of straight line, circular arc, and free curve.
In the case of a straight line, the time required for approximation is short. The amount of data is also small. The approximation of the arc is also easy. What is necessary is just to give the starting point of the arc, the radius, the central angle, the coefficient of the function, and the like.

【0021】直線でも円弧でも近似できない場合は、自
由曲線近似する。この場合は接合点間をM個の細区間に
分割し区分的多項式で近似する。細区分の数を増やすと
近似を高めることができるので所望の精度の近似をする
ことができる。
When approximation cannot be made with a straight line or a circular arc, a free curve is approximated. In this case, the space between the joining points is divided into M subsections and approximated by a piecewise polynomial. If the number of subdivisions is increased, the approximation can be increased, so that an approximation with desired accuracy can be made.

【0022】こうして接合点と、直線、円弧、自由曲線
のパラメ−タが得られるので、これをロゴ・イラストの
デ−タとして記憶する。画数や複雑さによるが1ロゴ・
イラスト当たり大体300〜500バイト程度のデ−タ
で済む。白黒画像のままであると画面を構成する全画素
の数だけのデ−タがある。たとえば縦横256画素とす
ると、8キロバイト(kbyte)もあるが、本発明で
は大幅にデ−タを圧縮できる。このデ−タは逆に読み出
して接合点を基準として直線、円弧、自由曲線を再生す
ることができる。計算によって任意の大きさ、任意の位
置に再生することができる。
In this way, the parameters of the joining point and the straight line, the arc, and the free curve are obtained, and these are stored as the logo / illustration data. Depending on the number of strokes and complexity, one logo
Data of about 300 to 500 bytes per illustration is sufficient. If the image is still a black and white image, there is data for all pixels constituting the screen. For example, if there are 256 pixels in length and width, there are 8 kilobytes (kbytes), but the present invention can significantly compress data. Conversely, the data can be read out to reproduce straight lines, arcs, and free curves with reference to the junction. It can be reproduced to any size and any position by calculation.

【0023】[0023]

【実施例】【Example】

[A.画像記憶装置1]これは紙などに書かれたロゴ・
イラストを光学的手段によって読み取り、画素毎に分解
された情報として記憶するものである。ロゴ・イラスト
は着色されていても良いが必要なのは白黒の2値画像で
ある。例えば着色部は黒となり、ロゴ・イラストを構成
しない部分を白として2値画像にし、これを画素ごとに
記憶させる。
[A. Image storage device 1] This is a logo written on paper, etc.
The illustration is read by optical means and stored as information decomposed for each pixel. The logo / illustration may be colored, but what is needed is a black and white binary image. For example, a colored portion is black, and a portion that does not constitute a logo or illustration is white to form a binary image, which is stored for each pixel.

【0024】例えばイメ−ジスキャナを用いて256×
256ドットの精度で入力される。ドットの数はもちろ
ん任意であり、ドット数の多いほうがロゴ・イラストと
して記憶されるものは高品質になるはずであるが、ドッ
トが多いと計算時間、記憶容量が大きくなるので、適当
なドット数の画像読み取り装置を用いれば良い。ドット
(画素)毎にこれが白画素か黒画素かが区別されて一時
的に記憶されるのである。以後一つの画素を点と言うこ
とがある。また連続する一続きの黒画素列を点列とい
う。点を示すために画面上での画素の横方向の番号x
と、縦方向の番号yとからなる座標(x,y)を用い
る。座標変数には様々なサフィックスを付けて区別す
る。
For example, 256 × using an image scanner
It is input with an accuracy of 256 dots. The number of dots is of course arbitrary, and the higher the number of dots, the higher the quality of the logo / illustration should be stored.However, the more dots, the greater the calculation time and storage capacity. May be used. For each dot (pixel), whether it is a white pixel or a black pixel is distinguished and temporarily stored. Hereinafter, one pixel may be referred to as a dot. A continuous black pixel row is referred to as a dot row. Horizontal number x of a pixel on the screen to indicate a point
And coordinates (x, y) consisting of a vertical number y. Coordinate variables are distinguished by adding various suffixes.

【0025】[B.輪郭点列抽出装置]輪郭点列抽出装
置は読み取ったロゴ・イラストの輪郭線を求める操作を
行うものである。大まかな流れを先に述べる。 画像デ−タを左上から右下に走査し、まだ見付けられ
ていない輪郭点を見付ける(図4に示す)。 輪郭線を一周するまで次の輪郭点を探索する。輪郭点
は2でマ−クされる。 画像デ−タの右下のデ−タまで調べる。
[B. Contour Point String Extraction Apparatus] The contour point string extraction apparatus performs an operation for obtaining a contour line of a read logo / illustration. The general flow is described first. The image data is scanned from upper left to lower right to find a contour point that has not been found yet (as shown in FIG. 4). The next contour point is searched until it goes around the contour line. The contour points are marked at 2. Check up to the lower right data of the image data.

【0026】この操作を行うにあたってまず定義から説
明する。画像は画素の集まりで表される。画素は画面内
での座標で指示される。画素の座標は行(横方向)方向
の座標をxとし、列(縦)方向の座標をyとする。左上
の座標はx=0、y=0である。横にX、縦にYの画素
があるとすると、xは0〜X−1、yは0〜Y−1の値
を取る。座標系は図2のように右下向きのものである。
画像自体はロゴ・イラストを入力したものであるので、
白と黒の2値しかない。画素ごとに白黒の指定をする。
In performing this operation, the definition will be described first. An image is represented by a collection of pixels. Pixels are indicated by coordinates on the screen. The coordinates of the pixel are x in the row (horizontal) direction and y in the column (vertical) direction. The coordinates at the upper left are x = 0 and y = 0. Assuming that there are pixels of X horizontally and Y vertically, x takes a value of 0 to X-1, and y takes a value of 0 to Y-1. The coordinate system is directed downward and to the right as shown in FIG.
Since the image itself is a logo / illustration input,
There are only two values, white and black. Specify black and white for each pixel.

【0027】○二値画像入力 特性関数gxyをつぎのように定義する。 (i)0≦x<X、0≦y<Yにおける座標(x,y)
に点(黒画素)が存在する場合 gxy=1 (1) (ii)その他の場合(その点に黒画素が存在しない) gxy=0 (2) これは画像を2値で表現したもので、白の部分は0、黒
の部分は1とする。
O Binary image input The characteristic function gxy is defined as follows. (I) Coordinates (x, y) at 0 ≦ x <X, 0 ≦ y <Y
G xy = 1 (1) (ii) In other cases (no black pixel exists at that point) g xy = 0 (2) This is a binary representation of the image It is assumed that a white portion is 0 and a black portion is 1.

【0028】○輪郭点列の表現 輪郭点列というは黒画素の固まりの外周に存する黒画素
の左右上下斜めに連続した点の列である。外部だけでな
く内部にも輪郭点列がある。閉じられた一つの点列を輪
郭点列という。輪郭点列の総数をUとする。U個の輪郭
点列には0からU−1の番号が付けられる。u番目の輪
郭点列の輪郭点の総数をN(u)で表す。ひとつの輪郭
点列において連続する点に番号kを付す。kは0〜N
(u)−1の整数である。
Expression of a contour point sequence A contour point sequence is a sequence of black pixels on the outer periphery of a cluster of black pixels that are connected to the left, right, up, down, and diagonally. There is a contour point sequence not only on the outside but also on the inside. One closed point sequence is called a contour point sequence. Let U be the total number of contour point sequences. The U contour point sequences are numbered from 0 to U-1. The total number of contour points in the u-th contour point sequence is represented by N (u). A number k is assigned to consecutive points in one outline point sequence. k is 0 to N
(U) is an integer of -1.

【0029】u番目の輪郭点列のk番目の輪郭点の座標
を(xk u ,yk u )によって表現する。全輪郭点は {(xk u ,yk u )}k=0 N u -1 u=0 U-1 (3) によって表現される。k=0 N u -1 というのは点列番号k
が0からN(u)−1までの値を取りうるということで
ある。N(u)−1は括弧を含みこれは1/4角にでき
ないから変数のサフィックスとなるときは、括弧を除去
しN u −1と書いている。N u −1=N(u)
−1である。サフィックスであるので上下に書くべきで
あるがこれができないので左下と右上に分けて付す。
u=0 U-1は輪郭点列群の番号uが0〜U−1の値を取ると
いうことである。また輪郭点列の番号uは変数の右肩に
括弧を付けて示すべきであるが括弧が1/4角にできな
いから括弧を省く。実際には図面に示すように括弧が付
いているのである。変数のu乗ではない。これは媒介変
数t、独立変数x、yなどに共通である。uは群番号で
あり変数の右肩にその儘書くが本当が括弧が付いている
のである。
[0029] expressed by the u th k-th coordinate of the contour points of the contour point sequence (x k u, y k u ). All contour points are represented by {(x k u, y k u)} k = 0 N u -1 u = 0 U-1 (3). k = 0 N u -1 because the point sequence number k
Can take on values from 0 to N (u) -1. N (u) -1 includes parentheses, which cannot be made into a quarter-square, so when it becomes a variable suffix, the parentheses are removed and written as Nu-1. N u -1 = N (u)
It is -1. Since it is a suffix, it should be written on the top and bottom, but since this is not possible, it is divided into lower left and upper right.
u = 0 U-1 means that the number u of the contour point sequence group takes a value of 0 to U-1 . The number u of the contour point sequence should be indicated by adding parentheses to the right shoulder of the variable. However, since the parentheses cannot be formed into a quarter square, the parentheses are omitted. In fact, parentheses are attached as shown in the drawing. It is not a variable raised to the power of u. This is common to the parameter t and the independent variables x and y. u is a group number and is written as it is on the right shoulder of the variable, but the parenthesis is actually attached.

【0030】○チェ−ンコ−ド 図3のようにある画素を中心として、廻りの8点の画素
に右回りの番号0〜7を付けて示す。これは輪郭点にお
ける点列の連続を示すために使う。また連続の状態を調
べるためにも用いる。cをチェ−ンコ−ドとして次の関
数α(c)とβ(c)とを定義する。関数α(c)は、
O Chain code As shown in FIG. 3, eight pixels around the center of a certain pixel are indicated by numbers 0 to 7 in the clockwise direction. This is used to indicate the continuation of the point sequence at the contour points. It is also used to check the continuous state. The following functions α (c) and β (c) are defined using c as a chain code. The function α (c) is

【0031】 c=3,4,5のとき、α(c)=−1 (4) c=2,6 のとき α(c)=0 (5) c=0,1,7のとき α(c)=1 (6)When c = 3, 4, 5, α (c) = − 1 (4) When c = 2,6 α (c) = 0 (5) When c = 0,1,7, α ( c) = 1 (6)

【0032】とし、関数β(c)は、And the function β (c) is

【0033】 c=5,6,7のとき β(c)=−1 (7) c=0,4 のとき β(c)=0 (8) c=1,2,3のとき β(c)=1 (9)When c = 5,6,7 β (c) = − 1 (7) When c = 0,4 β (c) = 0 (8) When c = 1,2,3 β (c) ) = 1 (9)

【0034】である。これらの定義に基づいて輪郭線の
抽出を行う。先述のように図4に示すごとく全体の画像
を左上から右方向に走査して黒画素を見いだす。輪郭線
は二値画像のgxy=1となる部分の外周の画素である
が、これを1周しながら点列の座標を記憶していく。1
周する方向はその領域の外側を回る時は時計廻りに廻
り、内側を回るときは反時計廻りに回ることとする。図
5に輪郭点を回る順序を示す。勿論反対にしても良いの
であるがここではそのように決める。
Is as follows. An outline is extracted based on these definitions. As described above, as shown in FIG. 4, the entire image is scanned from upper left to right to find black pixels. The outline is a pixel on the outer periphery of the portion of the binary image where g xy = 1, and the coordinates of the point sequence are stored while making a round around this. 1
The direction of rotation is clockwise when turning outside the area, and counterclockwise when turning inside. FIG. 5 shows the order of turning the contour points. Of course, it is possible to do the opposite, but here we will decide.

【0035】さて、ある輪郭点列のある輪郭点が分かっ
たとする。此の次の輪郭点を求めるにはこの輪郭点を中
心として、前回の輪郭点から時計廻りに8個の近傍画素
を探索する。図6に一例を示す。☆印を付したものが最
新の輪郭点であるとする。時計廻りに次の輪郭点を探索
するが、番号1、2、3、4、5までは全て白画素gxy
=0であるので該当しない。6番めの画素が黒画素であ
り、gxy=1であるから輪郭点である。こうして次の輪
郭点が求まったので、6番目の画素を中心に据えてその
次の輪郭点を求める。
Now, it is assumed that a certain contour point in a certain contour point sequence is found. To find the next contour point, eight neighboring pixels are searched clockwise from the previous contour point around this contour point. FIG. 6 shows an example. Assume that the one marked with ☆ is the latest contour point. The next contour point is searched clockwise, but all the pixels up to the numbers 1, 2, 3, 4, and 5 are white pixels g xy
Not applicable because = 0. The sixth pixel is a black pixel, and since g xy = 1, it is a contour point. Since the next contour point has been obtained in this way, the next contour point is obtained centering on the sixth pixel.

【0036】以下同様の手順によって輪郭点を次々に求
めることができる。近傍8画素から次の輪郭点を求める
ので連続して輪郭点列が得られる。輪郭点はgxyの値を
2とする。これによって内部の黒画素gxy=1と区別で
きる。またgxy=1の画素が画面上で局在している筈で
あるから輪郭点を逐次求めてゆくと最初の輪郭点に戻
る。つまり輪郭点列は環状になっている。このような輪
郭点列は全部でU個あるとしている。輪郭点列の番号は
uで示すが、ある輪郭点列uでの点の番号はkである。
Thereafter, contour points can be obtained one after another by the same procedure. Since the next contour point is obtained from eight neighboring pixels, a sequence of contour points is continuously obtained. For the contour point, the value of gxy is set to 2. Thereby, it can be distinguished from the internal black pixel g xy = 1. In addition, since the pixel of g xy = 1 must be localized on the screen, the contour point is sequentially obtained, and returns to the first contour point. That is, the contour point sequence is annular. It is assumed that there are a total of U such contour point sequences. The number of the contour point sequence is indicated by u, but the point number in a certain contour point sequence u is k.

【0037】一つの輪郭点列が確定すると、図4の走査
を再開し、次の輪郭点を捜す。これが分かると同様の手
順によって輪郭点の座標を確定してゆく。複数の輪郭点
列があるときは当然左上からこれらの処理を行うことに
なり順に0、1、・・(U−1)の輪郭点列番号を付
す。内部に穴のあるような場合も図5に示すように何回
目かの走査で何れかの点が検出される。図6に示すよう
な隣接点の探索を行うが、穴の場合は図5のように輪郭
点を反時計廻りに見い出してゆくことになる。こうして
外部の輪郭点列も内部の輪郭点列も探索されて点列の座
標が記憶される。これらのgxyの値は2になっている。
When one outline point sequence is determined, the scanning shown in FIG. 4 is restarted, and the next outline point is searched for. When this is understood, the coordinates of the contour point are determined in the same procedure. When there are a plurality of contour point sequences, these processes are performed from the upper left, and contour point sequence numbers of 0, 1,... (U-1) are assigned in order. Even when there is a hole inside, any point is detected in several scans as shown in FIG. A search for an adjacent point as shown in FIG. 6 is performed. In the case of a hole, a contour point is found counterclockwise as shown in FIG. In this manner, both the outer contour point sequence and the inner contour point sequence are searched, and the coordinates of the point sequence are stored. The value of these g xy is 2.

【0038】輪郭点列の探索は勿論gxy=1の画素につ
いて行われるのであるから、このようにすると外周と内
周の幅が1画素分しかない場合は少し問題が起きる。図
7にこれを示す。(a)は1画素分の幅しかない環状の
パタ−ンである。gxy=1の画素が正方形状に分布す
る。幅が2以上あれば前述の手順で外部輪郭点列、内部
輪郭点列が問題なく求まる。しかし幅が1画素である
と、まず外周の輪郭点列を決めた後gxy=1の画素が輪
郭点であるのでgxy=2となる。輪郭点の探索がgxy
1の画素についてなされるのでgxy=2ではもはや輪郭
点列とはならない。内周の輪郭点列が認識されず、穴が
無視される。
Since the search for the contour point sequence is performed for the pixel of g xy = 1, a problem arises a little if the width between the outer circumference and the inner circumference is only one pixel. FIG. 7 shows this. (A) is an annular pattern having a width of only one pixel. Pixels of g xy = 1 are distributed in a square shape. If the width is 2 or more, the outer contour point sequence and the inner contour point sequence can be obtained without any problem by the above-described procedure. However, if the width is one pixel, g xy = 2 since the pixel of g xy = 1 is a contour point after the outline point sequence is first determined. The search for contour points is g xy =
Since the processing is performed for one pixel, a contour point sequence is no longer obtained when g xy = 2. The inner contour line is not recognized and the holes are ignored.

【0039】これではいけないので、その対策として、
次の輪郭点が現在のものより下にあるときはマ−ク(g
xy→2)を行わないこととする。この点はgxy=1のま
ま残る。図7の(b)で右中段の値が1であるのはこれ
を示す。値が1であるので内輪郭点の出発点として発見
される。この点から出発して内輪郭点列を抽出すること
ができる。結局内部の穴が無視されることなく内外の輪
郭点列を抽出することが出来る。図7(c)はこれを示
す。輪郭点列が確定すれば、輪郭点列で囲まれる内部の
黒画素はこれの領域を規定するためには最早必要でなく
なる。そこで内部の黒画素は記憶する必要がない。これ
によって記憶すべきデ−タの量を先ず減らすことができ
る。
Since this cannot be done, as a countermeasure,
If the next contour point is below the current one, the mark (g
xy → 2) is not performed. This point remains g xy = 1. This is indicated by the fact that the value in the middle right is 1 in FIG. 7B. Since the value is 1, it is found as the starting point of the inner contour point. Starting from this point, an inner contour point sequence can be extracted. After all, the inner and outer contour point sequences can be extracted without ignoring the inner hole. FIG. 7C shows this. Once the outline point sequence is determined, the inner black pixels surrounded by the outline point sequence are no longer required to define this area. Therefore, there is no need to store the internal black pixels. This can first reduce the amount of data to be stored.

【0040】[C.輪郭点列記憶装置]輪郭点列記憶装
置は前段で求めた輪郭点列を記憶する装置である。(x
k u ,yk uk=0 N u -1 u=0 U-1 という形でこれを記憶
する。先述のように、Uが全点列の数であり、uが点列
に付けた番号である。点列uにおける点の数はN(u)
であり、kがこれに付けた点番号である。このような事
k=0 N u -1 u=0 U-1 によって表現する。(xk u ,yk
u )はu番目の点列のk番目の点のx、y座標である。
繰り返すが、N(u)−1をサフィックスとしては、N
u −1と書いている。
[C. Contour Point Sequence Storage Device] The contour point sequence storage device is a device for storing the contour point sequence obtained in the preceding stage. (X
k u, and stores this in the form of y k u) k = 0 N u -1 u = 0 U-1. As described above, U is the number of all point sequences, and u is the number assigned to the point sequence. The number of points in the point sequence u is N (u)
And k is the point number assigned to this. Such things expressed by k = 0 N u -1 u = 0 U-1. (X k u, y k
u ) is the x, y coordinates of the kth point in the uth point sequence.
Again, if N (u) -1 is the suffix,
u -1 is written.

【0041】[D.デ−タ近似機構A]デ−タ近似機構
は二つある。これは最初のものであるが、区別するため
にAと付記する。これは仮に輪郭点列の曲率の大きいと
ころを求め接合点を求めるために必要とされる。曲率を
求めるには、離散的な点の内、幾つかをデ−タとして採
用しこれから求めることもできる。本発明はこのような
離散的曲率を採用しても実行できる。しかしここではデ
−タを連続関数で近似してからこれを2階微分して曲率
を求めるようにする。このための近似がここでのデ−タ
近似である。
[D. Data approximation mechanism A] There are two data approximation mechanisms. This is the first one, but is appended with A to distinguish it. This is necessary for temporarily finding a place where the curvature of the outline point sequence is large and for finding a joint point. In order to determine the curvature, some of the discrete points can be adopted as data and can be determined from this. The present invention can be practiced even with such discrete curvatures. However, here, the data is approximated by a continuous function, and then the second order is differentiated to obtain the curvature. The approximation for this is the data approximation here.

【0042】曲率を求めるのであるから、xを独立変
数、yを従属変数としてyのxによる2階微分を求める
というのが通常の方法であろう。しかしそうするとx、
yについて取り扱いが非対称になって好ましくない。本
発明ではそのような方法を採用しない。
Since the curvature is obtained, the usual method would be to obtain the second derivative of y with x using x as an independent variable and y as a dependent variable. But then x,
As for y, handling becomes asymmetric, which is not preferable. The present invention does not employ such a method.

【0043】ここでは独立変数をtとし、従属変数を
x、yとし前記の連続群ごとの輪郭点列のx、y座標を
tを独立変数、xとyを従属変数とする2次の区分的多
項式で近似し、近似精度が所定範囲になるまで最小二乗
法近似を繰り返し輪郭点列の群ごとの近似多項式を求め
るものである。これは最終的なデータを得ようとするも
のではなく、接合点を求めるものである。
In this case, the independent variable is t, the dependent variables are x and y, and the x and y coordinates of the contour point sequence for each of the continuous groups are t = independent variables and x and y are dependent variables. The approximation is performed using a statistical polynomial, and the least squares approximation is repeated until the approximation accuracy falls within a predetermined range to obtain an approximate polynomial for each group of contour point sequences. This is not for obtaining final data but for obtaining a junction point.

【0044】先述のように群uの点列kの座標を
(xk u,yk u)とかく。これは前記の輪郭点列記憶機構
から得られる。図9にここでの操作を示す。まず輪郭点
列記憶装置から輪郭点列の(xk u,yk u)を全て読み込
む。これを媒介変数へ分解する。つまり各点について、
2つの(xk u,yk u)に共通の媒介変数tを対応させ
る。これにも添え字を付けてtk uとする。二次元情報で
あったがこれを一次元問題にするために媒介変数を用い
るのである。図9の2段目はこれを示す。
[0044] (x k u, y k u ) the coordinates of the points column k of the group u as previously described meantime. This is obtained from the outline point sequence storage mechanism described above. FIG. 9 shows the operation here. Read first from the contour point sequence storage of the contour point sequence (x k u, y k u ) all. This is decomposed into parameters. In other words, for each point,
Two (x k u, y k u ) is the corresponding common parameter t on. This also with a subscript and t k u. Although it is two-dimensional information, it uses parametric variables to make this a one-dimensional problem. The second row in FIG. 9 illustrates this.

【0045】媒介変数を用いることにより、(tk u
k u )と(tk u ,yk u )の二つの座標の組み合わ
せが各輪郭点列の各点に対応する。以後は2変数につい
て同じ事をするので一つについて説明する。群uでの輪
郭点列(tk u ,xk u )を近似するtの関数Sx
(t)を、2次のフル−エンシ−関数系{ψm }を底と
する一次結合として与える。Sx (t)によって群uで
のtの関数としてのxを近似するのである。同様にSy
(t)によって群uでのyを近似する。近似関数として
適切であるかどうかの評価は最小二乗法で誤差が所定の
範囲内であるかどうかということで確かめる。
[0045] By using the parametric, (t k u,
x k u) and (t k u, a combination of the two coordinate y k u) corresponding to each point of each contour point sequence. Hereinafter, the same operation is performed for two variables, and only one of them will be described. Contour point sequence in the group u (t k u, x k u) approximates the t function S x
(T) is given as a linear combination based on a second-order full-energy function system { m }. S x (t) approximates x as a function of t in group u. Similarly, S y
(T) approximates y in group u. The evaluation as to whether it is appropriate as an approximation function is made by checking whether the error is within a predetermined range by the least square method.

【0046】注意すべきことは、Sx (t)、Sy
(t)によって輪郭点列群uの全体の閉曲線を一挙に近
似するということである。接合点を途中にもつのではな
く全体を一つの関数Sx (t)で近似する。このように
するのは未だ接合点が決まっていないからである。先に
述べたように曲率をもとめるにはこのように近似による
ことなくもっと簡便な方法がある。それは輪郭点列のデ
−タを直接に用いて離散的曲率を求める方法である。本
発明を行うにはこのような離散曲率によっても良い。し
かしここではそれについては説明せず、近似関数Sx
(t)、Sy (t)の生成について説明する。
It should be noted that S x (t), S y
By (t), the entire closed curve of the outline point sequence group u is approximated at once. The whole is approximated by one function S x (t) instead of connecting the joining points in the middle. This is because the junction has not been determined yet. As described above, there is a simpler method for determining the curvature without such approximation. This is a method of obtaining a discrete curvature by directly using data of a contour point sequence. In order to carry out the present invention, such a discrete curvature may be used. However, it is not described here, and the approximation function S x
The generation of (t) and S y (t) will be described.

【0047】Sx (t)は非周期m次のフル−エンシ−
関数ψk を基底として展開する。 Sx (t)=Σk=-m M+mk xψk (t) (10)
S x (t) is an aperiodic m-th order full-energy
Expand using the function 展開k as a basis. S x (t) = Σ k = -m M + m C k x ψ k (t) (10)

【0048】フル−エンシ−関数というのは本発明者が
命名した関数名である。次数mは多項式の次数に対応す
る。Mは次元数である。一般にm次のフル−エンシ−関
数は、定義域を[0,T]とし、パラメ−タをkとし、
このパラメ−タをサフィックスとして付けて表す。Ck x
は線形一次結合の係数である。ψk 自体がkの近傍で値
を持つ多項式である。
The full-function function is a function name named by the present inventor. The degree m corresponds to the degree of the polynomial. M is the number of dimensions. In general, the m-th order full-energy function has a domain of [0, T], a parameter of k,
This parameter is represented with a suffix. C k x
Is the coefficient of linear linear combination. ψ k itself is a polynomial having a value near k.

【0049】 ψk (t)=3(T/M)-mΣq=0 m+1(−1)q {t−(k+q)(T/M)} m + /{q!(m+1−q)!} (11)Ψk (T) = 3 (T / M)-mΣq = 0 m + 1(-1)q {T- (k + q) (T / M)} m + / {Q! (M + 1-q)! } (11)

【0050】但し、 k=−m,−m+1,・・・,0,1,2,・・・,m+M Where k = −m, −m + 1,..., 0, 1, 2,.

【0051】ここでm乗の下に付したプラスは、括弧内
が負のときは0で、正の時にはm乗であるということ
で、次のような定義である。
The plus added below the m-th power means that the value in the parenthesis is 0 when the value in the parenthesis is negative, and that the value is m-th when the value is positive, and is defined as follows.

【0052】 (t−a)m +=(t−a)m t>a、 (12) 0 t≦a (13)(T−a) m + = (t−a) m t> a, (12) 0 t ≦ a (13)

【0053】基底関数ψk は区分番号k〜k+m+1ま
で有限の値を持ちその両側は0になる山形の関数であ
る。これは{t−(k+q)(T/M)}m +のような0
から立ち上がるm次関数を一つずつ座標をよこにずらせ
て(qを一つずつ増やす)これを重ね合わせる形になっ
ている。t>(k+m+1)(T/M)の時に恒等的に
0でなければならない。この条件によって重ね合わせの
係数が(−1)q /{q!(m+1−q)!}というふ
うに決まる。領域の大きさTは輪郭点列群の点の数N
(u)に等しくするのが簡単であるが、比例するものと
して定義しても良い。このようにフル−エンシ−関数を
用いて、輪郭点列を近似するが、T/Mの間隔を持つ分
割点が多数あるので接合点がなくても近似することがで
きる。近似の度合いを高めるにはフル−エンシ−関数の
次数mを高めればよい。しかし次数が高いと計算の回数
が増えるので処理時間が掛かる。
The basis function ψ k is a chevron-shaped function having finite values from section numbers k to k + m + 1 and having zero on both sides. This is 0 such as {t- (k + q) (T / M)} m +
The coordinates of the m-th order function rising from are shifted one by one (q is increased one by one), and these are superimposed. Must be equal to 0 when t> (k + m + 1) (T / M). Under this condition, the superimposition coefficient is (−1) q / {q! (M + 1-q)! It is determined as}. The size T of the area is the number N of points in the outline point sequence group.
Although it is easy to make it equal to (u), it may be defined as being proportional. As described above, the contour point sequence is approximated by using the full-energy function. However, since there are many division points having a T / M interval, the contour point sequence can be approximated without a joint point. To increase the degree of approximation, the order m of the full-energy function may be increased. However, when the degree is high, the number of calculations increases, so that processing time is required.

【0054】発明者の主張は、多くの自然界の物理量の
変動を表す関数が、1次、2次のフル−エンシ−関数の
線形結合として表されるということである。フル−エン
シ−関数は完備直交規格化関数ではない。もしもmとし
て∞までの関数を採用し、これの一次結合とすれば任意
の関数が表現しうる。これは疑いがない。しかし本発明
者のいうのはそうではなく、僅かな次元数のフル−エン
シ−関数によって自然界の物理量の変動を書き下せると
いうことなのである。ここではm=2のみを採用する。
これによってロゴ・イラストなどの輪郭線は過不足なく
表現できる。勿論本発明はm=3以上のフル−エンシ−
関数を用いて構成できる。
The inventor's claim is that many functions representing variations in physical quantities in the natural world are expressed as linear combinations of first-order and second-order full-energy functions. The full-ency function is not a complete orthogonal normalization function. If a function up to ∞ is adopted as m and this is a linear combination, any function can be expressed. This is no doubt. However, the present inventor does not say so, but it is possible to write down the variation of the physical quantity in the natural world with a full-energy function having a small number of dimensions. Here, only m = 2 is adopted.
As a result, contour lines such as logos and illustrations can be expressed without excess or deficiency. Of course, in the present invention, the full-energy of m = 3 or more
Can be configured using functions.

【0055】もっとも相応しい関数系を採用してこれの
一次結合によって物理量の変動を書き表すとすればもっ
とも数少ない関数で最適の近似を得ることができる。関
数系が良くないと多くの関数を底として一次結合の式を
展開しなければならない。これでは良い近似を得ること
ができないし、最終的なデ−タの数も多くなって記憶装
置の負担も大きい。またこれを読み出して利用するのも
容易でない。最適関数系を選ぶべきである。m=2が最
適と本発明者は思う。
If the most appropriate function system is adopted and the variation of the physical quantity is expressed by the linear combination, an optimal approximation can be obtained with the fewest functions. If the function system is not good, you have to expand the expression of linear combinations based on many functions. In this case, a good approximation cannot be obtained, and the number of final data increases, resulting in a heavy load on the storage device. Also, it is not easy to read and use this. You should choose the optimal function system. The present inventor thinks that m = 2 is optimal.

【0056】本発明者はここではm=2のフル−エンシ
−関数を用いる。図40(a)に2次のフル−エンシ−
関数の概略を示す。これは3つの区間にわたる2次曲線
である。両端での立ち上がり立ち下がりは2次関数であ
る。中央の点で最大であるがこの近傍でも2次関数であ
る。
The inventor uses a full-energy function of m = 2 here. FIG. 40 (a) shows the secondary full-energy
Here is an outline of the function. This is a quadratic curve over three sections. The rise and fall at both ends is a quadratic function. It is the maximum at the center point, but also a quadratic function in the vicinity.

【0057】0次のフル−エンシ−関数は図40(b)
に示すように1区間のみで一定値をとる箱型の関数であ
る。1次フル−エンシ−関数は図40(c)に示すよう
に2区間にまたがる三角形状の関数である。3次のフル
−エンシ−関数は図40(e)に示すように4つの区間
におよぶ滑らかな関数である。
The zero-order full-energy function is shown in FIG.
Is a box-shaped function that takes a constant value only in one section as shown in FIG. The primary full-energy function is a triangular function extending over two sections as shown in FIG. The third-order full-energy function is a smooth function over four sections as shown in FIG.

【0058】一般にm次フル−エンシ−関数は、(m+
1)区間に渡って存在し中央部で極大を持つ滑らかな
(m≧2)関数である。両端ではm乗で立ち上がり立ち
下がる。中央部での関数形はやはりm乗である。基底ψ
k のパラメ−タkが一つ増えるともとのものを右へ一つ
平行移動したことになる。
In general, the m-th order full-energy function is (m +
1) A smooth (m ≧ 2) function that exists over the interval and has a maximum at the center. Both ends rise and fall to the m-th power. The function form at the center is also the m-th power. Baseψ
When the parameter k of k increases by one, it means that the original one has been translated to the right by one.

【0059】ある区間でなんらかの変動をm次区分的多
項式で近似すると、その区間で値を持つ関数の基底が
(m+1)個あるということである。m=3以上のもの
を採用することができるがここではm=2とする。つま
り3つの区間に渡って値があり、極大と端点で2次関数
的である。上の式はm=2のとき、
When some variation is approximated by an m-th order piecewise polynomial in a certain section, there are (m + 1) bases of functions having values in the section. Although m = 3 or more can be adopted, m = 2 here. That is, there is a value over three sections, and it is quadratic at the local maximum and the end point. The above equation is for m = 2,

【0060】 Sx (t)=Σk=-2 M+2k xψk (t) (14)[0060] S x (t) = Σ k = -2 M + 2 C k x ψ k (t) (14)

【0061】 ψk (t)=3(T/M)-2Σq=0 3(−1)q {t−(k+q)(T/M)}2 + /{q!(3−q)!} (15)Ψ k (t) = 3 (T / M) −2 Σ q = 0 3 (−1) q {t− (k + q) (T / M)} 2 + / {q! (3-q)! } (15)

【0062】となる。基底関数は{t−(k+q)(T
/M)}2 +で示される横方向へT/Mずつずらせた4つ
の0から立ち上がる2次関数の重ね合わせである。細区
分の数がkからk+3まで値のある関数である。k+3
以上で恒等的に0であるために重ね合わせの係数が(−
1)q/{q!(3−q)!}となる。基底関数の数は
M+5個である。Mは全区間の分割数でありこれを近似
の次元数と呼ぶ。これとフルーエンシー関数の次数mと
を混同してはいけない。
Is obtained. The basis function is Δt− (k + q) (T
/ M)} is a superposition of the quadratic function rising from four 0-shifted laterally by T / M is the two +. The number of subdivisions is a function with values from k to k + 3. k + 3
As described above, since the constant is 0, the superimposition coefficient becomes (−
1) q / {q! (3-q)! It becomes}. The number of basis functions is M + 5. M is the number of divisions of all sections, and this is called an approximate dimension number. This should not be confused with the order m of the fluency function.

【0063】図41によって説明する。(a)にデ−タ
点を示す。デ−タの変域が0〜Tである。(b)は基底
関数が3つであり、次元数Mが1の場合を示す。この場
合基底関数が少なすぎるので係数の数も少なく良い近似
を与えない。しかし次元数Mを増やしてゆくと、(c)
に示すようにどんな複雑な変化でもそれなりに近似でき
る。近似の程度はこれがどれほどもとの輪郭点列(xk
u ,yk u )に近いかということで判断できる。最小二
乗法によりこれを評価するが、これは
This will be described with reference to FIG. (A) shows the data points. The domain of the data is 0 to T. (B) shows a case where there are three basis functions and the number of dimensions M is one. In this case, since the number of basis functions is too small, the number of coefficients is too small to give a good approximation. However, as the number of dimensions M increases, (c)
As shown in the figure, any complex change can be approximated as such. The degree of approximation this is how the original outline point sequence (x k
u, can be judged by the fact that close to or y k u). This is evaluated by the least squares method, which is

【0064】 Q=Σ{Sx (tk u )−xk u2 +{Sy (tk u )−yk u2 (16) [0064] Q = Σ {S x (t k u) -x k u} 2 + {S y (t k u) -y k u} 2 (16)

【0065】を最小にするということである。積算の範
囲は輪郭点列群uの点全部である。ここでは曲率を求め
るだけであるから精度はそれ程高くなくても良い。後に
説明する第2回目のデ−タ近似Bでも同様の近似をす
る。その場合精度はより高いものとする。
Is to be minimized. The range of integration is all points of the outline point sequence group u. Here, since the curvature is merely obtained, the accuracy need not be so high. A similar approximation is made in a second data approximation B described later. In that case, the accuracy is assumed to be higher.

【0066】この部分のフロ−チャ−トを図10に示
す。係数Ch を決めるのであるが、これの次元数がMで
ある。あるMを規定すると、式(10)から係数Ch x
一義的に決まる。しかしこの係数が最小二乗法による制
限を満たすとは限らない。この場合は次元数Mを一つ増
加させる。そして所望の近似範囲まで達するとこれで次
元数Mでの係数Ch を確定する。
FIG. 10 is a flowchart of this part. The coefficient Ch is determined, and the number of dimensions is M. When defining a certain M, the coefficient C h x from equation (10) is uniquely determined. However, this coefficient does not always satisfy the restriction by the least squares method. In this case, the number of dimensions M is increased by one. And this in determining the coefficient C h of the dimension number M reaches to the desired approximation range.

【0067】式(10)において左辺のSx (t)が、
t=tk であるときに、Sx (t)=xk u となるべき
である。そこで式(10)にこれを代入して、
In equation (10), S x (t) on the left side is
When a t = t k, should be the S x (t) = x k u. Then, substituting this into equation (10),

【0068】 xk u = Σh=-2 M+2h xψh (tk u ) (17)[0068] x k u = Σ h = -2 M + 2 C h x ψ h (t k u) (17)

【0069】これにψw (tk u )を掛けて、点列kに
ついて加算する。
[0069] over this to the ψ w (t k u), adding the point sequence k.

【0070】 Σk=0 N-1ψw (tk u )xk u =Σk=0 N-1Σh=-2 M+2h xψh (tk u )ψw ( tk u )=Σh=-2 M+2 Σk=0 N-1ψh (tk u )ψw (tk u )Ch x (18)[0070] Σ k = 0 N-1 ψ w (t k u) x k u = Σ k = 0 N-1 Σ h = -2 M + 2 C h x ψ h (t k u) ψ w (t k u) = Σ h = -2 M + 2 Σ k = 0 N-1 ψ h (t k u) ψ w (t k u) C h x (18)

【0071】ここで2番目の式から3番目の式への変化
は積算の順序を置き換えたものである。有限数列である
ので積算順は自由に変更できる。
Here, the change from the second expression to the third expression replaces the order of integration. Since it is a finite sequence, the order of integration can be freely changed.

【0072】この式の左辺Σk=0 N-1ψw (tk u )xk
u はサフィックスがwである(w=−2,−1,0,・
・,M+2)M+5元の列ベクトルであると考えること
ができる。右辺の前項はフル−エンシ−関数の積の和Σ
k=0 N-1ψh (tk u )ψw (tk u )であるM+5列、
M+5行の正方行列と考えることができる。また右辺の
後項Ch xはM+5列の列ベクトルである。→を文字の上
に付すことができないので、以下ベクトルを表す→は文
字に付けることにする。ベクトルbx →、cx→を
[0072] The left-hand side of this equation Σ k = 0 N-1 ψ w (t k u) x k
u has a suffix w (w = −2, −1, 0,.
.., M + 2) It can be considered to be a column vector of M + 5 elements. The preceding term on the right side is the sum of the products of the full-ency functions.
k = 0 N-1 ψ h (t k u) ψ w (t k u) in which M + 5 column,
It can be considered as a square matrix of M + 5 rows. The right term Ch x on the right side is a column vector of M + 5 columns. Since → cannot be attached to a character, a symbol representing a vector below will be attached to the character. Vectors b x →, c x

【0073】 ベクトルcx →= T{C-2 x 、C-1 x 、・・・・Cm+2 x} (19)The vector c x → = T {C −2 x , C −1 x ,..., C m + 2 x } (19)

【0074】 ベクトルbx →= T{Σk=0 N-1ψ-2(tk u )xk u ,Σk=0 N-1ψ-1(tk u ) xk u ・・・,Σk=0 N-1ψM+2 (tk u )xk u } (20)[0074] vector b x → = T {Σ k = 0 N-1 ψ -2 (t k u) x k u, Σ k = 0 N-1 ψ -1 (t k u) x k u ··· , Σ k = 0 N-1 ψ M + 2 (t k u) x k u} (20)

【0075】によって定義する。Tは転置行列であるこ
とを示す。行列Gを
Is defined by T indicates a transposed matrix. Matrix G

【0076】 G={Ghw}={Σk=0 N-1ψh (tk u )ψw (tk u )} (21)[0076] G = {G hw} = { Σ k = 0 N-1 ψ h (t k u) ψ w (t k u)} (21)

【0077】によって定義する。この間には、Defined by During this time,

【0078】 bx →=Gcx → (22)B x → = Gc x → (22)

【0079】という式が成立する。これは、ベクトルb
x→を求める式であるが、
The following equation holds. This is the vector b
x

【0080】 cx →=G-1x → (23)C x → = G −1 b x → (23)

【0081】としてある次元数Mについての係数Ch
求めることができる。G-1は行列Gの逆行列である。こ
れはxについての計算である。yについても同様に、
[0081] coefficient for dimensionality M that is a C h can be obtained. G -1 is the inverse of matrix G. This is a calculation for x. Similarly for y,

【0082】 Sy (t)=Σh=-2 M+2h yψh (t) (24)S y (t) = Σ h = −2 M + 2 C h y ψ h (t) (24)

【0083】 yk u = Σh=-2 M+2h yψh (tk u ) (25)[0083] y k u = Σ h = -2 M + 2 C h y ψ h (t k u) (25)

【0084】 Σk=0 N-1ψw (tk u )yk u =Σk=0 N-1Σh=-2 M+2h yψh (tk u )ψw ( tk u )=Σh=-2 M+2 Σk=0 N-1ψh (tk u )ψw (tk u )Ch y (26)[0084] Σ k = 0 N-1 ψ w (t k u) y k u = Σ k = 0 N-1 Σ h = -2 M + 2 C h y ψ h (t k u) ψ w (t k u) = Σ h = -2 M + 2 Σ k = 0 N-1 ψ h (t k u) ψ w (t k u) C h y (26)

【0085】が成立ち、ベクトルby→、cy→をHolds, the vectors b y → and c y → are

【0086】 ベクトルcy →= t{C-2 y 、C-1 y 、・・・・Cm+2 y} (26′)The vector c y → = t {C −2 y , C −1 y ,..., C m + 2 y } (26 ′)

【0087】 ベクトルby→=T{Σk=0 N-1ψ-2(tk u)yk u,Σk=0 N-1ψ-1(tk u)yk u, ・・・,Σk=0 N-1ψM+2(tk u)yk u} (27)[0087] vector b y → = T {Σ k = 0 N-1 ψ -2 (t k u) y k u, Σ k = 0 N-1 ψ -1 (t k u) y k u, ·· ·, Σ k = 0 N- 1 ψ M + 2 (t k u) y k u} (27)

【0088】によって定義する。(23)と同様にy成
分についても、
Defined by Similarly to (23), for the y component,

【0089】 cy →=G-1y → (28)[0089] c y → = G -1 b y → (28)

【0090】としてある次元数Mについての係数Ch y
求めることができる。G-1は行列Gの逆行列でxの計算
に用いたものと同一である。図10はこのような事を述
べている。最初は群番号u=0について行う。また近似
の次元数Mは1から始める。こうして輪郭点列u=0に
ついて(xk u ,yk u )を近似するSx (t)、Sy
(t)の係数Ch x、Ch yが求まる。これと、(xk u
k u )点との差の二乗の和Qを計算する。
The coefficient Ch y for a certain number of dimensions M can be obtained. G -1 is the inverse of the matrix G and is the same as that used in the calculation of x. FIG. 10 describes such a thing. First, the operation is performed for the group number u = 0. The approximate dimension number M starts from one. Thus the contour point sequence u = 0 (x k u, y k u) approximating the S x (t), S y
Coefficient C h x of (t), C h y is obtained. And this, (x k u,
to calculate the sum Q of the squares of the difference between the y k u) point.

【0091】 Q=Σk=0 N-1{Sx (tk u )−xk u2 +{Sy (tk u )−yk u2 (29)[0091] Q = Σ k = 0 N- 1 {S x (t k u) -x k u} 2 + {S y (t k u) -y k u} 2 (29)

【0092】これと予め定めた閾値εとを比較する。こ
れは十分に小さい確定した正定数である。ここでは1画
素分の距離にとっている。もしもQ>εであれば近似が
不十分であるということである。そこでこの場合、次元
数Mを1から2に増やす。するとCh の数が一つ増え
る。
This is compared with a predetermined threshold value ε. This is a sufficiently small determined positive constant. Here, the distance for one pixel is set. If Q> ε, the approximation is insufficient. Therefore, in this case, the number of dimensions M is increased from 1 to 2. Then the number of C h increases one.

【0093】この状態で同じ事を繰り返す。これでもQ
>εであれば、さらにMをひとつ増やす。以下同様に繰
り返して近似を上げてゆき、Q<εとなるようにする。
ここでMと{Ch x}、{Ch y}とを確定する。近似関数
x (t)、Sy (t)が求まる。輪郭点列群u=0に
ついて計算できると次はu=1の群について行う。以下
同様に、あるuの値に対して係数を決定すると、次のu
+1の輪郭点列について同様の計算を行う。そしてu=
U−1群まで繰り返して行う。
The same operation is repeated in this state. Even this is Q
If> ε, M is further increased by one. Thereafter, the approximation is repeated in the same manner, so that Q <ε.
Here, M and { Ch x }, { Ch y } are determined. Approximate functions S x (t) and S y (t) are obtained. When the calculation can be performed for the contour point sequence group u = 0, the following is performed for the group of u = 1. Similarly, when a coefficient is determined for a certain value of u, the next u
The same calculation is performed for the +1 outline point sequence. And u =
Repeat until the U-1 group.

【0094】図42によりもう一度この過程を説明す
る。画面上にたばこの概略図のイラストが入力されたと
する。輪郭点列抽出をすると2つの輪郭点列群が得られ
る。左の長方形状の輪郭点列がu=1、右の煙の部分は
輪郭点列u=0を持つ。画面の左上の点(0,0)から
右方向へ1行ずつ画素の値をスキャンして行く。最初に
輪郭線にぶつかった点を(t0 0 ,x0 0 )、(t0
0 ,y0 0 )とし輪郭点列の座標をtをパラメ−タとし
て求めてゆく。tの関数として輪郭点列座標x(t)、
y(t)が得られる。
This process will be described once again with reference to FIG. It is assumed that a schematic illustration of a cigarette is input on the screen. When the contour point sequence is extracted, two contour point sequence groups are obtained. The left rectangular outline point sequence has u = 1, and the right smoke portion has the outline point sequence u = 0. From the upper left point (0,0) on the screen, the pixel values are scanned one row at a time in the right direction. The points that first hit the contour are (t 0 0 , x 0 0 ), (t 0
0 , y 0 0 ), and the coordinates of the contour point sequence are determined using t as a parameter. contour point sequence coordinates x (t) as a function of t,
y (t) is obtained.

【0095】2次のフル−エンシ−関数を用いて近似す
るとして、まずM=1から出発する。これは全区間
[0,1]をひとつの区間として扱う。3つの基底関数
ψ-2、ψ-1、ψ0 がこの区間で値を持つ。これの係数3
つの値を適当に選ぶ。すると中段に示す近次曲線が得ら
れる。拡大してみると原デ−タとの誤差が大きいという
ことが分かる。
As an approximation using a second-order full-energy function, first, M = 1. This treats all sections [0, 1] as one section. Three basis functions ψ -2 , ψ -1 and ψ 0 have values in this section. Coefficient of this 3
Choose two values appropriately. Then, the near curve shown in the middle stage is obtained. It can be seen from the enlargement that the error from the original data is large.

【0096】誤差の2乗の和によって誤差を評価し近似
が不十分な時は、Mを一つ増やす。次の段ではM=2の
例が示される。基底関数が4つに増える。最下段はM=
10の場合を示す。基底関数の数は12個である。Mが
大きくなるにつれて複雑な曲線を精密に近似できる。こ
こで説明したのは曲率を求めるための近似であるが、後
程述べるデ−タ圧縮時の近似ではこのような操作を各区
分について行う。以上がデ−タ近似機構Aである。
The error is evaluated by the sum of the squares of the error. If the approximation is insufficient, M is increased by one. In the next stage, an example of M = 2 is shown. The number of basis functions increases to four. The bottom row is M =
10 is shown. The number of basis functions is twelve. As M increases, a complicated curve can be approximated more precisely. Although the approximation described above is for obtaining the curvature, such an operation is performed for each section in the approximation at the time of data compression described later. The above is the data approximation mechanism A.

【0097】[E.曲率演算機構]全ての輪郭点列群に
対して近似関数が求まったのでこれを2階微分すること
により各輪郭点列群、各点での曲率を求める。図11が
曲率演算のフロ−チャ−トを示す。輪郭点列群uのk番
目の点(xk u ,yk u )での曲率K(tk u )は、
[E. Curvature operation mechanism] Since the approximate function has been obtained for all the contour point sequence groups, this is second-order differentiated to obtain the curvature at each contour point sequence group and each point. FIG. 11 shows a flowchart of the curvature calculation. K-th point of the contour point sequence group u (x k u, y k u) curvature at K (t k u) is

【0098】 K(tk u )={Sx ′(tk u )Sy ′′(tk u )−Sx ′′(tk u )S y ′(tk u )}/{Sx ′(tk u2 +Sy ′(tk u23/2 (30)K (tk u ) = {Sx '(Tk u ) Sy '' (Tk u ) -Sx '' (Tk u ) S y '(Tk u )} / {Sx '(Tk u )Two + Sy '(Tk u )Two }3/2 (30)

【0099】によって計算することができる。最初u=
0の輪郭点列群のk=0の点からこの計算を始める。こ
の計算は点毎に行う。つまりk番目の点について計算で
きると次にはk+1番目の点について同様の計算をす
る。ひとつの輪郭点列群での計算が終わると次の輪郭点
列に移る。そして全ての輪郭点列の全ての点について曲
率を求める。
Can be calculated by First u =
This calculation is started from the point k = 0 in the group of contour points 0. This calculation is performed for each point. That is, if the calculation can be performed for the k-th point, then the same calculation is performed for the (k + 1) -th point. When the calculation is completed for one outline point sequence group, the process moves to the next outline point sequence. Then, the curvatures are obtained for all the points in all the outline point sequences.

【0100】[E′.近似曲率記憶装置]前段で求めた
曲率K(tk u )を点(輪郭点列群u、点番号k)毎に
記憶する装置である。
[E '. Approximate curvature memory] curvature K obtained in the previous stage of (t k u) point (edge point sequence group u, the point number k) is a device for storing for each.

【0101】[F.真円抽出機構]これは近似曲率に基
づいてある輪郭点列が真円であるかそうでないかを判別
し真円を抽出するものである。ロゴ・イラストには真円
である部分がかなりある。しかしここで言う真円は輪郭
線についてのものであるから、孤立した真円を指してい
る。真円の部分が他の直線、曲線と交差接触している場
合は真円として抽出されない。図30の場合、右肩に付
けた円が真円抽出によって除かれる。図38の円グラフ
の場合も最外周の円が孤立した円であるから真円抽出で
抽出され、以後近似計算から除去される。
[F. Perfect circle extraction mechanism] This is to determine whether a certain contour point sequence is a perfect circle or not based on the approximate curvature and extract a perfect circle. There are quite a few circles in logos and illustrations. However, since the perfect circle mentioned here is about a contour line, it refers to an isolated perfect circle. If the part of the perfect circle is in cross contact with another straight line or curve, it is not extracted as a perfect circle. In the case of FIG. 30, the circle attached to the right shoulder is removed by the perfect circle extraction. In the case of the pie chart in FIG. 38 as well, the outermost circle is an isolated circle, so that it is extracted by extracting a perfect circle and thereafter removed from the approximate calculation.

【0102】これを抽出すると次の利点がある。ひとつ
は本来真円であるものがノイズのために少し歪んでいて
も真円としてデ−タ化するのでノイズが落ちてしまい形
状をより正確に決定できる。また円は半径と中心の座標
だけで指定できるのでデ−タ圧縮の点で極めて有効であ
る。
Extracting this has the following advantages. In the first case, even if a circle that is originally a circle is slightly distorted due to noise, the data is converted into a true circle, so that the noise drops and the shape can be determined more accurately. Since a circle can be specified only by the coordinates of the radius and the center, it is extremely effective in data compression.

【0103】真円というのはその輪郭点列での各点での
曲率が全て等しいというものである。そのような性質を
使って真円を抽出できる。図12にフロ−チャ−トを説
明する。先ず曲率K(tk u )に関するデ−タを読み込
む。そして各輪郭点列群uが円をなすか否かを調べる。
輪郭点列群uについての平均曲率K u を求める。これ
は単に曲率を平均するものである。群番号uは括弧を付
け(u)とすべきであるがこれはサフィックスに入れる
ことができないから単に、uとしている。図面では括弧
が付いている。
A perfect circle means that the curvatures at each point in the outline point sequence are all equal. A perfect circle can be extracted using such a property. FIG. 12 is a flowchart. First de about the curvature K (t k u) - read the data. Then, it is checked whether or not each contour point sequence group u forms a circle.
An average curvature Ku for the contour point sequence group u is determined. It simply averages the curvature. The group number u should be parenthesized (u), but since it cannot be included in the suffix, it is simply u. Parentheses are attached in the drawings.

【0104】 K u ={Σk=0 N-1K(tk u )}/N (31)[0104] K u = {Σ k = 0 N-1 K (t k u)} / N (31)

【0105】これが平均曲率である。曲率の上限ε1
決めておき、平均曲率がこれ以上であればこの輪郭点列
群uは真円でないとする。
This is the average curvature. Previously determined upper limit epsilon 1 of curvature, the contour point row group u When the average curvature more is not a perfect circle.

【0106】 |K u |>ε1 (32)| K u |> ε 1 (32)

【0107】曲率が極めて大きい点を含む場合である。
円ではなく微分できない点析曲点などに対応する。この
場合群uは真円でないという表示Circle(u)=0をす
る。これに反して平均曲率がε1 より小さければ、群u
は真円である可能性がある。そこでk=0の点から点近
傍での曲率K(tk u )と、平均曲率K u の差の絶対
値を求めこれが一定の閾値ε2 より小さいかどうかを調
べる。
This is a case where a point having an extremely large curvature is included.
It corresponds not to a circle but to a dot that cannot be differentiated. In this case, Circle (u) = 0 indicating that the group u is not a perfect circle. If less than 1 mean curvature ε On the contrary, the group u
May be a perfect circle. Therefore the curvature K at the point near the point of k = 0 (t k u) , the absolute value of the difference between the mean curvature K u investigate whether this is a certain threshold epsilon 2 smaller.

【0108】 |K u −K(tk u )|<ε2 (33)| K u −K (t k u ) | <ε 2 (33)

【0109】もしそうであればこれは円の一部である可
能性がある。それで次の点k=1の曲率についても同様
に平均曲率との差の絶対値をもとめε2 と比較する。こ
のように群uの全ての点について順次比較を行う。この
不等式が成り立つ限りこれらの点は円弧の上にある。あ
る点で曲率と平均曲率の差がε2 より大きいとこれはも
はや円弧の上にない。この点を含む輪郭点列群はもはや
真円を形成しない。この群が真円でないという表示Circ
le(u)=0を付ける。
If so, this could be part of a circle. Therefore, the absolute value of the difference from the average curvature is similarly obtained for the curvature at the next point k = 1 and compared with ε 2 . In this way, the comparison is sequentially performed for all points of the group u. As long as this inequality holds, these points are on the arc. No difference curvature and mean curvature at a point is greater than epsilon 2 which on longer arc. The outline point sequence group including this point no longer forms a perfect circle. Circ indicating that this group is not a perfect circle
le (u) = 0.

【0110】もしも、群での全ての点について曲率と平
均曲率の差がε2 より小さいと、この輪郭点列は真円で
ある。そこで真円である表示Circle(u)=1を付け
る。このような真円の抽出を全ての輪郭点列群について
0〜U−1まで行う。最後にこれを纏めて群u=0から
群についてCircle(u)=0であるかどうかを調べる。
[0110] If the difference between curvature and average curvature epsilon 2 smaller than for all points in the group, the contour point sequence is a perfect circle. Therefore, the display Circle (u) = 1, which is a perfect circle, is given. The extraction of such a perfect circle is performed for all contour point sequence groups from 0 to U-1. Finally, it is checked whether Circle (u) = 0 for the group from the group u = 0.

【0111】全ての輪郭点列群uについてCircle(u)
=0であれば、このロゴ・イラストにおいて真円はひと
つもないということである。Circle(u)=1のものが
あれば、この群は真円であり、この中心座標(X,Y)
と半径rとを求め、真円記憶装置Gにこれを入力して記
憶させる。
Circle (u) for all contour point sequence groups u
If = 0, there is no true circle in this logo / illustration. If there is Circle (u) = 1, this group is a perfect circle, and its center coordinates (X, Y)
And the radius r are obtained, and are inputted and stored in the perfect circle storage device G.

【0112】[G.真円記憶装置]前段階において求め
た真円の中心座標と半径rを記憶するものである。これ
により群uのデ−タが3つの値で記述できる。ロゴ・イ
ラストを対象とするので全ての輪郭点列は閉曲線であ
る。一重の真円の場合これは内部全体が黒画素で塗り潰
された円であるので、孤立した円点である。2重の真円
の場合は、2重円の間が黒画素で塗り潰された丸などに
対応する。
[G. Perfect circle storage device] Stores the center coordinates and radius r of the perfect circle obtained in the previous stage. Thus, the data of the group u can be described by three values. Since the target is a logo / illustration, all outline points are closed curves. In the case of a single perfect circle, this is an isolated circle point because the entire inside is a circle filled with black pixels. In the case of a double perfect circle, the space between the double circles corresponds to a circle filled with black pixels.

【0113】[H.接合点位置抽出機構]接合点という
のは直線と直線の継ぎ目、曲線と曲線の継ぎ目、直線と
曲線の継ぎ目などである。異なる勾配の線が接触するの
でこれを接合点というのである。ロゴ・イラストを関数
近似する時接合点は極めて重要な役割を果たす。それ故
接合点の役割、接合点の意義、接合点の抽出などに関し
て明確な観念を持つことが必要である。本発明は接合点
の正確適切な決定を通じてロゴ・イラストを高品質に維
持しながら、デ−タ量を最小にすることができるのであ
る。
[H. Joining Point Position Extraction Mechanism] The joining points include a joint between a straight line and a straight line, a joint between a curve and a curve, a joint between a straight line and a curve, and the like. Since the lines with different gradients come into contact, this is called a junction. Junction points play a very important role when approximating logos and illustrations. Therefore, it is necessary to have a clear idea about the role of the junction, the significance of the junction, and the extraction of the junction. The present invention minimizes the amount of data while maintaining high quality logos and illustrations through accurate and proper determination of the junction.

【0114】図13は接合点抽出手続の概略を示す。ロ
ゴ・イラストを入力してこれを画像とし、2値画像にし
て外周をなす輪郭点列を抽出する。これによって得た各
輪郭点列群に対して接合点を抽出する。まず明白な接合
点を抽出する。これは曲率が大きい点として決定でき
る。これは仮の接合点であって最適のものでない。又こ
れだけでは全ての接合点を見いだせない。逆に接合点と
して不要なものも含まれる。
FIG. 13 shows the outline of the junction extraction procedure. A logo / illustration is input, the image is used as an image, and a binary image is extracted to extract an outline point sequence forming an outer periphery. A joint point is extracted for each group of contour points obtained as described above. First, obvious joint points are extracted. This can be determined as a point having a large curvature. This is a temporary junction and not optimal. Also, this alone does not find all the junctions. Conversely, those unnecessary as junctions are also included.

【0115】従って接合点の指定に関して修正が必要で
ある。その後直角部分の接合点の抽出を行う。これは後
に述べるがロゴ・イラストの二つの直線が交差する時に
交差点での接続を滑らかにするためである。直線の接合
点というのは始点と終点であり、細線であって曲率が大
という条件では現れない接合点を追加するものである。
ロゴ・イラストの場合これはしばしば必要である。
Therefore, it is necessary to correct the designation of the joining point. After that, a junction at the right angle portion is extracted. This is to smooth the connection at the intersection when two straight lines of the logo / illustration intersect, as will be described later. The joining points of the straight lines are the starting point and the ending point, and add joining points that are thin lines and do not appear under the condition that the curvature is large.
This is often necessary for logo illustrations.

【0116】反対に不必要な接合点があるのでこれらを
除去する必要がある。一つは直線の中にある接合点であ
る。接合点が直線の半ばにあり直線からの距離が小さい
ときこれを除いても直線を維持できることがある。これ
はノイズによって生じた接合点であるから除去する。も
う一つは円弧の接合点である。本来ひとつの円弧である
べきものが接合点が多くて二つの円弧に分離して現れる
ことがある。これも中間の接合点を除去して円弧を合体
して一つの円弧にする。
On the contrary, since there are unnecessary junctions, it is necessary to remove them. One is a junction in a straight line. When the joining point is in the middle of the straight line and the distance from the straight line is small, the straight line may be maintained even if this is removed. Since this is a junction point caused by noise, it is removed. The other is the junction of the arcs. What is supposed to be a single arc may appear as two arcs separated by two junctions due to the large number of joints. This also removes intermediate junctions and combines the arcs into a single arc.

【0117】そして接合点が確定すると各区間を区分的
多項式によって近似する。この区分的多項式の近似は先
にデ−タ近似機構Aで述べたものと同じであるが前回の
ものは近似区間が全輪郭点列群に渡っていた。今度はそ
うでなく接合点ごとに区分的多項式近似を行う。
When the joining point is determined, each section is approximated by a piecewise polynomial. The approximation of this piecewise polynomial is the same as that described above for the data approximation mechanism A, but in the previous one the approximation interval spanned the entire contour point sequence group. This time, instead, a piecewise polynomial approximation is performed for each junction.

【0118】まず仮接合点の抽出について説明する。接
合点において勾配が変化するために曲率も大きい。接合
点は次に関数近似する時において関数の定義域を決定す
るものである。接合点と接合点の間は直線であるか、滑
らかに勾配の変化する曲線かである。接合点の間の近似
関数は簡単な形で表現できる。従って接合点の座標と接
合点の間の近似関数を求めればこのロゴ・イラストにつ
いて全てのデ−タが求まったということになる。
First, the extraction of the temporary junction will be described. The curvature is large because the gradient changes at the junction. The junction determines the domain of the function when the function is approximated next. A straight line or a curve whose gradient changes smoothly between the joining points. The approximation function between the junctions can be expressed in a simple form. Therefore, if an approximate function between the coordinates of the junction and the junction is obtained, it means that all data has been obtained for this logo / illustration.

【0119】しかし接合点の選択が適切でなく、接合点
同士が離れすぎると、隣接接合点の間を簡単な形の近似
関数で表すことができないために、却ってデ−タ数が増
えてしまう。反対に接合点が多過ぎると、接合点の座標
に関するデ−タが増えるので十分にデ−タ圧縮をするこ
とができない。かように接合点の選択は重要である。図
14のフロ−チャ−トによって接合点位置抽出の手法を
説明する。先に全輪郭点列について近似曲率が求められ
ているので、これを利用する。
However, if the joining points are not properly selected and the joining points are too far from each other, the number of data increases because the adjacent joining points cannot be represented by a simple approximate function. . On the other hand, if there are too many joints, the data relating to the coordinates of the joints increases, so that the data cannot be sufficiently compressed. Thus, the choice of junction is important. The method of extracting the joint position will be described with reference to the flowchart of FIG. Since the approximate curvature has already been obtained for all contour point sequences, this is used.

【0120】近似曲率記憶装置E′から曲率を読み込
む。{K(tk u )}である。これらのデ−タから群u
の全ての点k=0〜N−1について曲率がある値δより
大きいか否かを順次調べる。
The curvature is read from the approximate curvature storage device E '. Is {K (t k u)} . From these data, the group u
It is sequentially checked whether or not the curvature is larger than a certain value δ for all the points k = 0 to N−1.

【0121】 |K(tk u )|>δ (34)[0121] | K (t k u) | > δ (34)

【0122】接合点というのは勾配において変化が急の
所とすると曲率がある程度大きい点であるので、このよ
うな手法によって求めることができるのである。δの値
は目的により適宜決定できる。
The junction point is a point where the curvature changes to a certain extent when the gradient changes suddenly, and can be obtained by such a method. The value of δ can be appropriately determined depending on the purpose.

【0123】しかも真円をなす輪郭点列は既に除かれて
いるので円弧の一部で曲率が大きいという点(これは接
合点でありえない)はこの演算では出てこない。そこで
曲率がδを越える点を、仮接合点とする。そしてこの座
標(xk u ,yk u )を接合点位置記憶装置Iに記憶さ
せる。仮接合点の番号をiとする。そこでi番目の仮接
合点はdi (xi u ,yi u )と書くことができる。輪
郭点列での番号kが接合点番号iに置換されている。こ
のような比較と接合点の抽出を各点kについて行う。群
uについてこのようなことをした後、u+1について同
様のことをする。こうして各群での全ての仮接合点の座
標を得る。
Further, since the outline point sequence forming a perfect circle has already been removed, a point that the curvature is large in a part of the arc (this cannot be a junction point) cannot be obtained by this calculation. Therefore, a point where the curvature exceeds δ is defined as a temporary joining point. Then the coordinate (x k u, y k u ) is stored in the junction position the storage device I a. Let the number of the temporary joining point be i. Thus, the i-th temporary junction can be written as d i (x i u , y i u ). The number k in the outline point sequence is replaced with the junction point number i. Such comparison and extraction of the junction are performed for each point k. After doing this for the group u, we do the same for u + 1. Thus, the coordinates of all the temporary joining points in each group are obtained.

【0124】直感的に接合点を説明する。図15は音符
の例である。左右に縦線が2本あり、上に縦線を斜めに
結ぶ2本の線がある。縦線の下には斜めの楕円が二つ付
いている。(a)は原図であり、白黒の図形である。
(b)は輪郭点列抽出を行い、さらに接合点を抽出した
ものである。×印を付した点が接合点である。この例で
は外側の輪郭線イと内側の輪郭線ロの2本の輪郭線があ
る。
The joining points will be explained intuitively. FIG. 15 is an example of a musical note. There are two vertical lines on the left and right, and two lines diagonally connecting the vertical lines on the top. Below the vertical line are two oblique ellipses. (A) is an original figure, which is a black and white figure.
(B) is a result of extracting a contour point sequence and further extracting joint points. The points marked with “x” are the joining points. In this example, there are two contour lines, an outer contour line A and an inner contour line B.

【0125】外輪郭線イは接合点ハ〜ヌを持つ。ハ〜
ニ、ニ〜ホ、ヘ〜ト、ト〜チ、チ〜リ、ヌ〜ハは直線で
ある。ホ〜へとリ〜ヌは自由曲線である。内輪郭線ロに
おいては、ル〜ヲ、カ〜ワは直線である。ヲ〜ワ、カ〜
ルは円弧または自由曲線である。この例では直線の部分
が多く、直線を直線として正しく抽出できることが望ま
れる。自由曲線部も含まれる。
[0125] The outer contour line A has joining points C to N. C ~
D, D-E, H-D, D-D, J-D, and D-D are straight lines. E to lie are free curves. In the inner contour line B, L to ヲ and K to W are straight lines.ヲ ~ wa 、 ka ~
Is an arc or a free curve. In this example, there are many straight lines, and it is desired that the straight lines can be correctly extracted as straight lines. The free curve section is also included.

【0126】図16はダイオ−ドの略図である。大きい
円形の中に三角と線分があり、これらの中央部を横に貫
く直線がある。輪郭線は外側の円状の輪郭線ヨと、内側
の輪郭線レ、ソがあり合計3本である。外輪郭線ヨの接
合点は8個あるが、上半分についてのみ符号を付けた。
ツ〜ネは短い線分、ネ〜ナは半円弧、ナ〜ラは短い線
分、ツ〜フは短い円弧または自由曲線である。内輪郭線
レ、ソは対称であるから、レについて説明する。ム〜ウ
は線分、ウ〜ヰは線分、ヰ〜ノも線分のようであるがノ
の近傍で曲がっており自由曲線である。ノ〜オは線分、
オ〜クも線分、ク〜ヤは線分、ヤ〜マは線分、マ〜ムは
半円弧である。これも直線の部分が多い。ついで円弧が
多い。幾何学的には線分は両端が決まっており、直線は
両端がない図形であるが、この明細書では線分や半直線
も直線と呼んでいる。
FIG. 16 is a schematic diagram of a diode. There are triangles and line segments in a large circle, and there is a straight line that runs through these central parts. There are a total of three contour lines, including an outer circular contour line Y, an inner contour line, and a contour line. Although there are eight junctions of the outer contour line Y, only the upper half is marked.
Tsu-ne is a short line segment, ne-na is a semicircular arc, na-ra is a short line segment, and tu-fu is a short arc or free curve. Since the inner contours ソ and ソ are symmetrical, レ will be described. M to U are line segments, U to ヰ are line segments, and ヰ to No are line segments, but they are curved near No and are free curves. No ~ o is a line segment,
Oku is also a line segment, ku is a line segment, yama is a line segment, and m is a semicircular arc. This also has many straight lines. Then there are many arcs. Geometrically, both ends of a line segment are determined, and a straight line is a figure without both ends. In this specification, a line segment and a half line are also called straight lines.

【0127】どのようなロゴ・イラストでも直線が多い
と言うわけではなく、円弧が多いもの(図39、図4
9)や、自由曲線が多いもの(図44、図46、図4
8、図50)や多様なものがある。ロゴ・イラストはデ
ザイナ−の自由な発想で創出されるから予めその傾向を
決めることはできない。
Not all logos / illustrations have many straight lines but many arcs (FIGS. 39 and 4).
9) and those with many free curves (FIGS. 44, 46, 4)
8, FIG. 50) and various other types. Because logos and illustrations are created based on designers' free ideas, their tendency cannot be determined in advance.

【0128】[I.接合点位置記憶装置]これは前述の
操作で求めた仮接合点の番号と座標{di (xi u ,y
i u )}を記憶するものである。仮接合点と言ったほう
が正確である。接合点に関しては前記の曲率が大きい事
で選んだ仮接合点と、これから述べる接合点候補と最適
接合点の3種類がある。これを混同してはいけない。
[I. Joining point position storage device] This is the number of the temporary joining point and the coordinates {d i (x i u , y
i u )}. It is more accurate to say a temporary junction. There are three types of joining points: a temporary joining point selected because of the large curvature, a joining point candidate and an optimum joining point to be described below. Don't confuse this.

【0129】[J.最適接合点抽出機構]これまでに求
めたものは、曲率の大きさだけで判定した仮接合点であ
る。これらは実際の接合点でないことがある。ロゴ・イ
ラストを光学的に読み取った画像にはレンズやガラスに
おける光の反射や散乱、外乱光などのためノイズがある
ので、実際に2直線、2曲線の接合点の曲率が小さくな
ることがある。ために前段の処理で接合点として残らな
いことがある。反対にノイズのために直線、曲線の中間
点であるにも拘らず曲率が大きくなり接合点と見えるこ
とがある。
[J. Optimal Joint Point Extraction Mechanism] What has been obtained so far is a temporary joint point determined only by the magnitude of the curvature. These may not be actual junctions. Optically scanned images of logos / illustrations have noise due to reflection and scattering of light on lenses and glass, disturbance light, etc., so the curvature of the junction between two straight lines and two curves may actually be small. . Therefore, it may not be left as a joining point in the preceding process. Conversely, due to noise, the curvature may be large despite the midpoint between the straight line and the curve, and it may be seen as a joint.

【0130】それで最適の接合点を見い出す必要があ
る。最適接合点は先述の手法で求めた接合点候補の近く
にあるはずである。最適接合点というのは前述のよう
に、直線と直線の交点や折曲点などであるからロゴ・イ
ラストに固有のものである。これがノイズのために曲率
の大小だけでは正確に見付けることができない。
Therefore, it is necessary to find the optimum junction. The optimal junction should be near the junction candidate determined by the method described above. As described above, the optimum joining point is a point unique to the logo / illustration because it is an intersection or a bending point between straight lines. Because of this noise, it cannot be found accurately only by the magnitude of the curvature.

【0131】図17に最適接合点の抽出機構のフロ−チ
ャ−トを示す。接合点位置記憶装置Iから仮接合点di
(xi u ,yi ui=0 I-1を読み込む。ここでuは輪郭
点列の群番号、iはこの群での仮接合点の番号、Iはこ
の群での仮接合点の数である。仮接合点と呼ぶのはこれ
が最終的な接合点でないからである。本発明の顕著な特
徴はここにもあり、接合点の位置について彫琢を重ねる
ということが本発明において重要である。
FIG. 17 shows a flowchart of the mechanism for extracting the optimum junction. Temporary junction d i from the joining point position storage device I
(X i u, y i u ) read i = 0 I-1. Here, u is the group number of the outline point sequence, i is the number of the temporary junction in this group, and I is the number of temporary junctions in this group. It is called a temporary junction because it is not the final junction. The remarkable feature of the present invention is also here, and it is important in the present invention to repeat the sculpture for the position of the joint.

【0132】仮接合点の近傍に幾つかの接合点候補とい
うものを考える。これをλo i とし、座標を付けてλo
i (xio,yio)と書く。 iは仮接合点の番号で括
弧に入れてサフィックスに上げるべきであるが括弧が1
/4角にならないから省略している。図面では(i)と
いうサフィックスが正しく書かれている。群uという表
示は省略してある。勿論群uのi番目の仮接合点の近傍
にある接合点候補である。この接合点候補の数をOとす
る。これはどの仮接合点についても同一の数である。図
18はこれを示している。
Consider several junction candidates near the temporary junction. Let this be λ o i , add coordinates and λ o
Write i ( xio , yio ). i is the number of the temporary junction and should be put in parentheses and raised to the suffix.
It is omitted because it does not become a quarter angle. In the drawing, the suffix (i) is correctly written. The display of the group u is omitted. Of course, it is a junction candidate near the i-th temporary junction in the group u. The number of the joining point candidates is set to O. This is the same number for every temporary junction. FIG. 18 illustrates this.

【0133】中央のxi が曲率によって選ばれた仮接合
点であり、これの前後α個が接合点候補である。ただし
ここで、xi と書いているのはdi (xi u ,yi u
のことであり、x座標とy座標の両方を意味する。di
とかけば良いのであるがここでは位置座標であることを
はっきりと示すために単にxi と書いている。次に出る
近傍接合点の表記も同様である。
The center x i is a temporary junction selected by curvature, and α before and after this are junction candidates. Here, x i is written as d i (x i u , y i u )
Which means both the x coordinate and the y coordinate. d i
However, here, it is simply written as x i to clearly show that it is a position coordinate. The same applies to the notation of the next neighboring junction.

【0134】接合点候補はo=0,1,・・O−1まで
ある。これはdi+α又はdi-αによって求める。これ
は、仮接合点の前後α個の輪郭点列を接合点候補とする
ということである。仮接合点もこれにあたるのでO=2
α+1である。この内にひとつの最適接合点が存在す
る。αの大きさは仮接合点と最適接合点のずれの大きさ
の評価から決まるがこのずれが大きな場合はαを大きく
する必要がある。しかしこれを大きくするとあとの計算
の数が増える。両者を勘案し適当な数を決定すべきであ
る。
There are up to o = 0, 1,. This is determined by di + α or di - α. This means that a sequence of α contour points before and after the temporary joining point is set as a joining point candidate. O = 2
α + 1. One of these is the optimal junction. The magnitude of α is determined from the evaluation of the magnitude of the deviation between the temporary joining point and the optimal joining point. If this deviation is large, it is necessary to increase α. However, increasing this will increase the number of subsequent calculations. An appropriate number should be determined in consideration of both.

【0135】次にこれから近傍接合点{dj (xj u
j u )}を抽出する。近傍接合点は仮接合点xi を中
心として半径ρの円内にある仮接合点であって、連続す
る輪郭点列によって繋がっているもの及びこの仮接合点
を含む輪郭点列によって囲まれる輪郭点列内にあるもの
である。例えば図30のロゴ・イラストの場合、最下段
に示すように○の内部に含まれる仮接合点サ、ア、テが
近傍接合点になる。近傍接合点に付ける番号をjとす
る。先程の考察の対象となる仮接合点xi がiを番号と
しておりこれらで区別している。半径ρ内にあるという
のは、
Next, the near junction {d j (x j u ,
y j u )}. Near junction a temporary junction within a circle of radius ρ around the temporary bonding points x i, contour surrounded ones are connected by a continuous contour point sequence and by the contour point sequence containing the temporary junction It is in the sequence of points. For example, in the case of the logo / illustration in FIG. 30, as shown at the bottom, the temporary joining points S, A, and T included in the circles are the neighboring joining points. The number assigned to the nearby junction is j. The temporary junctions x i to be considered in the previous discussion have i as numbers and are distinguished by these numbers. Being within the radius ρ means that

【0136】 {(xi −xj2 +(yi −yj21/2 <ρ (35){(X i −x j ) 2 + (y i −y j ) 2 } 1/2 <ρ (35)

【0137】とう条件で表すことができる。輪郭点列に
よって繋がっていると言う条件がなぜ必要かというと、
この最適接合点の抽出というものが、線と線の交差にお
いて交差を挟んだ接合点同士が滑らかに繋がるようにす
るためであるからである。輪郭点列によって繋がってい
ない接合点同士の相対的な関係はどうでも良い。また輪
郭点列によって(黒画素の連結)繋がるという条件はx
j がxi と同一の輪郭点列群にあるかどうかということ
で簡単に調べることができる。
This can be represented by a condition. The reason why the condition of being connected by the contour point sequence is necessary is that
This is because the extraction of the optimum joint point is to smoothly connect the joint points sandwiching the intersection at the intersection of the lines. The relative relationship between the joining points that are not connected by the contour point sequence does not matter. In addition, the condition of connection (connection of black pixels) by the outline point sequence is x
Whether or not j is in the same outline point sequence group as x i can be easily checked.

【0138】近傍接合点は、正確にはx(x ,y
)と書くべきであるが、冗漫であるので以後簡単に
と書くことにする。これはx座標だけでなくy座標
も含んでいる。
[0138] near the junction is precisely x j (x j u, y
It should be written as j u ), but since it is tedious, it will be simply written as x j hereinafter. This includes the y coordinate as well as the x coordinate.

【0139】近傍接合点の数をJとする。Jは0のこと
もあるし、1以上のこともある。J=0というのは近傍
接合点がないということである。Jが1以上であるとい
うのは幾つかの近傍接合点があるということである。ふ
たつの場合について処理が異なる。J≧1の場合と、J
<1(つまりJ=0)の場合に分けて説明する。
Let J be the number of nearby junctions. J can be 0 or 1 or more. J = 0 means that there is no nearby junction. J being greater than or equal to 1 means that there are several nearby junctions. The processing is different for the two cases. J ≧ 1 and J
<1 (that is, J = 0) will be described separately.

【0140】J≧1の場合、さらに二つの場合を区別す
る。輪郭点列の追跡は外部に輪郭点列があると時計廻
り、内部にある場合は反時計廻りである。それ故、考察
の対象になっている仮接合点xi より、先に近傍接合点
j がある場合と、xi よりも前に近傍接合点xj があ
る場合がある。両者を区別しなければならない。
When J ≧ 1, two more cases are distinguished. The tracking of the contour point sequence is clockwise when there is an external contour point sequence, and counterclockwise when it is inside. Therefore, from the temporary bonding points x i that are the subject of discussion, and when there is near the junction x j above, there may be near the junction x j before x i. We have to distinguish between them.

【0141】曲率で選んだ仮接合点xiより前にある近
傍接合点xjは入力近傍という。これを図19に示す。
仮接合点xiより後にある仮接合点xjは出力近傍とい
う。つまり仮接合点xiから、輪郭点列の走査の向きに
発したベクトルの出て行く先にある近傍接合点が出力近
傍である。逆に近傍接合点から走査の向きに発したベク
トルが入って来る仮接合点が入力近傍である。出力近傍
と入力近傍の判定については後に説明する。
[0141] near the junction x j, which is before the temporary joining point x i selected in curvature of input vicinity. This is shown in FIG.
Temporary joining point x j which is after the temporary bonding points x i is that the output near. That from the temporary junction x i, it is the vicinity of the output near the junction in the destination out of the vector emitted in the direction of scanning of the contour point sequence. Conversely, the temporary connection point into which the vector generated in the scanning direction from the nearby connection point is the input vicinity. The determination of the vicinity of the output and the vicinity of the input will be described later.

【0142】 [CASE 1(J≧1で入力近傍の場合)] まず図19によって、入力近傍の近傍接合点について考
える。これはいくつもの考え方がありうる。ここでは、
4つの仮接合点の近傍を考える。そしてこの4点を繋ぐ
曲線が最も滑らかであるという条件によって、仮接合点
の近くの接合点候補λ0 (i)(xi0,yi0)の内最適のも
のを決める。
[CASE 1 (in the case of J ≧ 1 and near the input)] First, referring to FIG. 19, a near junction point near the input will be considered. This can be a number of ideas. here,
Consider the vicinity of four temporary junctions. Then, on the condition that the curve connecting these four points is the smoothest, the optimum one of the candidate λ 0 (i) (x i0 , y i0 ) near the temporary connection point is determined.

【0143】図19において、最も始めに曲率によって
選んだ仮接合点がxi(Cの近く)である。近傍接合点
がxj(Bの近く)である。出力近傍の場合は、仮接合
点の次の仮接合点xi+1(Dの近く)と、仮接合点xj
一つ前の仮接合点xj-1(Aの近く)を考える。この4
点を通る曲線が最も滑らかになるようにこれらの点を通
るようにする。これら4つの仮接合点の内両側のA、D
は固定し、中間のB、Cのみを動かして適合係数を求め
る。B、Cの点は2α+1個の接合点候補を持つ。そこ
で、(2α+1)2個の組み合せの区分的多項式近似を
する。この内、最も滑らかに4点を繋ぐ近似が最も高い
適合係数を与える。
In FIG. 19, the tentative junction selected first by the curvature is x i (near C). The neighboring junction is x j (near B). For output near considered next temporary joining points x i + 1 of the provisional junction (near D), the previous temporary joining point x j-1 of the temporary junction x j a (near A) . This 4
Try to pass these points so that the curve passing through the points is the smoothest. A, D on both sides of these four temporary junctions
Is fixed, and only the middle B and C are moved to obtain the adaptation coefficient. Points B and C have 2α + 1 junction point candidates. Therefore, a piecewise polynomial approximation of (2α + 1) 2 combinations is performed. Among them, the approximation connecting the four points most smoothly gives the highest matching coefficient.

【0144】滑らかという条件をどう表現するか?いく
つもあるが、ここでは曲線の変曲点が最も少ないという
条件によって評価することにする。逐次近似を上げてゆ
くが、近似の回数をtで表す。
How to express the condition of smoothness? There are a number of them, but here we will evaluate under the condition that the curve has the fewest inflection points. The successive approximation is increased, and the number of approximations is represented by t.

【0145】曲線の端点Aは、xj-1 のどれかの接合点
候補λl j-1 (xj-1l,yj-1l)である。ただしここ
で接合点候補の添え字はl′であるが「′」を1/4画
にできないのでここではlと書いている。実際にはl′
である。
[0145] end point A of the curve, x j-1 of any of the junction point candidate λ l j-1 (x j -1l, y j-1l) is. Here, the suffix of the joining point candidate is l ', but since "'" cannot be reduced to 1/4 picture, it is written as l here. Actually l '
It is.

【0146】中間点Bは近傍接合点xj の何れかの接合
点候補λl j (xjl,yjl)である。接合点候補の番
号をlによって表している。lがパラメ−タになりlを
変えて同じ計算を何回もする。
The intermediate point B is a candidate λ l j (x jl , y jl ) of any of the neighboring junctions x j . The number of the joining point candidate is represented by l. 1 becomes a parameter and the same calculation is repeated many times while changing l.

【0147】中間点Cは元の仮接合点xi の何れかの接
合点候補λo i (xio,yio)である。接合点候補の
番号はoによって表している。oがパラメ−タになりこ
れを変えて同じ計算を何回も繰り返す。
The intermediate point C is any one of the junction candidates λ o i (x io , y io ) of the original temporary junction point x i . The number of the joining point candidate is represented by o. The parameter o is changed and the same calculation is repeated many times.

【0148】曲線の他の端点Dは、xi+1 の何れかの接
合点候補λo i+1 (xio,yio)である。ただしここ
でも接合点候補の添え字はo′であるが「′」は1/4
画にできないので単にoと書いている。実際は図19の
ようにo′である。
[0148] Other end points D curves, one of the junction point candidates x i + 1 λ o i + 1 (x io, y io) is. However, the suffix of the joining point candidate is o ', but "'" is 1/4.
I simply write o because I can't draw it. Actually, it is o 'as shown in FIG.

【0149】計算の順序であるが、両端のA、D点は固
定点(t回目の近似において)であり、中間点Bの接合
点候補λl (j)(xjl,yjl)、中間点Cの接合点候補λ
o (i)(xio,yio)についてはパラメータl、oを一つ
ずつ変えて計算を繰り返す。この計算で接合点としての
適合性を確率関数として計算する。確率関数は曲線の滑
らかさによる係数rij(ol)を持つ。この係数は適合
係数ということができる。iとjは仮接合点xiと近傍
接合点xjの符号である。
In the calculation order, the points A and D at both ends are fixed points (in the t-th approximation), and the candidate λ l (j) (x jl , y jl ) Candidate λ for joining point C
For o (i) (x io , y io ), the calculation is repeated by changing the parameters l and o one by one. In this calculation, the suitability as the junction is calculated as a probability function. The probability function has a coefficient r ij (ol) based on the smoothness of the curve. This coefficient can be referred to as a matching coefficient. i and j are the signs of the temporary junction xi and the neighboring junction xj .

【0150】oとlはこれらの仮接合点の属する接合点
候補の番号である。この係数がパラメ−タo、l毎に決
まる値であるのでこれだけの添え字を必要とする。これ
は曲線ABCDが充分に滑らかである時1となり、滑ら
かでないときは1より小さくなる。だから曲線の適合性
を決めるパラメ−タとなりうる。
[0150] o and l are the numbers of joining point candidates to which these temporary joining points belong. Since this coefficient is a value determined for each of the parameters o and l, such a subscript is required. This is 1 when the curve ABCD is sufficiently smooth and less than 1 when it is not smooth. Therefore, it can be a parameter that determines the suitability of the curve.

【0151】図20は近傍接合点が存在する場合(J≧
1)の適合係数rij(ol)の決定法を示すフロ−チャ
−トである。パラメ−タの範囲を先ず指定している。i
が0からI−1というのは、曲率によって求めた仮接合
点xi についてこのような計算を0からI−1まで繰り
返すということである。
FIG. 20 shows a case where a nearby junction exists (J ≧
This is a flowchart showing the method of determining the adaptation coefficient r ij (ol) in 1). First, a parameter range is specified. i
There because I-1 0, such calculate the temporary joining points x i obtained by the curvature is that repeated from 0 to I-1.

【0152】oが0から2αまでというのは、対象とす
る仮接合点xi において2α+1個の接合点候補がある
ので、これについて一つずつすべて計算するということ
である。jが0からJ−1までというのは、近傍接合点
j が複数ある場合はこの計算をあるだけ繰り返すとい
うことである。J>1であるからこのようなことが必要
である。
The fact that o is from 0 to 2α means that there are 2α + 1 joint point candidates at the target temporary joint point x i , and that these are all calculated one by one. The fact that j ranges from 0 to J-1 means that if there are a plurality of neighboring junction points x j, this calculation is repeated as much as possible. This is necessary because J> 1.

【0153】lが0から2αまでというのは、近傍接合
点xj において2α+1個の接合点候補があるので、こ
れらについて一つずつ全て計算するということである。
i、o、j、lのパラメ−タについてこのような計算を
するが、ここでは順序不同に書いており、初めのものほ
ど大きいル−プを構成するということはない。しかし以
後の説明によりこれらパラメ−タの変化は一義的に与え
られる。
The fact that l is from 0 to 2α means that since there are 2α + 1 joint point candidates at the neighboring joint point x j , these are all calculated one by one.
Such calculations are performed for the parameters i, o, j, and l, but are written out of order here, and do not constitute a larger loop than the first one. However, in the following description, these parameter changes are uniquely given.

【0154】始めにデ−タ近似したのと同様の手法によ
り、点A、B、C、Dをフル−エンシ−関数によって近
似する。つまり区分的多項式によって近似するのであ
る。近似関数の次数は2次で良い。先述の式で、m=2
とする。
The points A, B, C and D are approximated by a full-energy function in the same manner as the data approximation at first. That is, it is approximated by a piecewise polynomial. The order of the approximation function may be second order. In the above expression, m = 2
And

【0155】 Sx (t)=Σk=-2 M+2k xψk (t) (36)[0155] S x (t) = Σ k = -2 M + 2 C k x ψ k (t) (36)

【0156】 Sy(t)=Σk=-2 M+2k yψk(t) (37)S y (t) = Σ k = −2 M + 2 C k y ψ k (t) (37)

【0157】 ψk (t)=3(T/M)-2Σq=0 3(−1)q {t−(k+q)(T/M)}2 + /{q!(3−q)!} (38)Ψ k (t) = 3 (T / M) −2 Σ q = 0 3 (−1) q {t− (k + q) (T / M)} 2 + / {q! (3-q)! } (38)

【0158】 k=−2,−1,0,1,2,・・・,M+2 (39)K = −2, −1, 0, 1, 2,..., M + 2 (39)

【0159】ここでパラメータtは連続量を表すtであ
る。先程述べた近似の段階を示すtとは異なる。文字の
数が足らないので別異の事を同じtで表現している。最
初のデータ近似の時は、全輪郭点列について範囲Tを定
めて、全輪郭点列について一つの近似をしていた。であ
るから全ての輪郭点列の座標データが参照されなければ
ならなかった。
Here, the parameter t is t representing a continuous amount. This is different from t which indicates the approximation stage described above. Since there are not enough characters, different things are expressed with the same t. At the time of the first data approximation, the range T is determined for all contour point sequences, and one approximation is performed for all contour point sequences. Therefore, the coordinate data of all the contour points must be referred to.

【0160】しかしここではそうでなく、4点A、B、
C、Dを繋げば良いのである。4点の座標のみが必要
で、4点の間の数多くの輪郭点列の座標はもはや不要で
ある。4点を繋げば良いのであるから、AD間を区分多
項式によって近似する。区間Tは曲線ADに対応してい
る。図10に示すような計算をするのであるが、点の数
が著しく少ないのでこの近似は簡単である。最小二乗法
で係数を確定する点も同じである。このような近似によ
り4点を通る近似曲線ABCDを作る。
However, this is not the case here, and the four points A, B,
What is necessary is to connect C and D. Only the coordinates of four points are needed, and the coordinates of many contour point sequences between the four points are no longer needed. Since it suffices to connect four points, AD is approximated by a piecewise polynomial. Section T corresponds to curve AD. The calculation shown in FIG. 10 is performed, but since the number of points is extremely small, this approximation is simple. The same is true for determining coefficients by the least squares method. An approximation curve ABCD passing through four points is created by such approximation.

【0161】曲線ABCDの各輪郭点に於ける曲率を計
算する。これは近似関数Sx (t)、Sy (t)がある
ので、
The curvature at each contour point of the curve ABCD is calculated. Since there are approximation functions S x (t) and S y (t),

【0162】 K(tw u )={Sx ′(tw u )Sy ′′(tw u )−Sx ′′(tw u )S y ′(tw u )}/{Sx ′(tw u2 +Sy ′(tw u23/2 (40) ただし、w=A、B、C、Dである。K (tw u ) = {Sx '(Tw u ) Sy '' (Tw u ) -Sx '' (Tw u ) S y '(Tw u )} / {Sx '(Tw u )Two + Sy '(Tw u )Two }3/2 (40) Here, w = A, B, C, and D.

【0163】これも曲線ADの全てに渡って曲率を求め
るのでなく、4点だけ計算すればよいので簡単である。
曲率の反転回数により変曲点の数nc を求める。変曲点
の数は当然3以下である。図21は曲線の概略形と変曲
点の数nc の例を示す図である。変曲点を×印によって
表す。(a)は変曲点の数が3つの場合である。蛇行が
甚だしい。(b)は変曲点の数が2つの場合である。
(c)は変曲点数が1の場合である。(d)は変曲点数
が0の場合である。これが最も滑らかに4点を繋いでい
る。これを採用するのが望ましい。この場合にrij(o
l)が1になるように決める。例えば変曲点数nc を用
いて、
This is also simple, since it is sufficient to calculate only four points instead of calculating the curvature over the entire curve AD.
Determine the number n c of the inflection point by the number of inversions of curvature. The number of inflection points is naturally three or less. Figure 21 is a diagram showing an example of a number n c of schematic type and inflection point of the curve. The inflection point is represented by a cross. (A) is a case where the number of inflection points is three. Meandering is severe. (B) is a case where the number of inflection points is two.
(C) is a case where the number of inflection points is one. (D) is a case where the number of inflection points is zero. This connects the four points most smoothly. It is desirable to employ this. In this case, r ij (o
Determine l) to be 1. For example, by using a number of inflection points n c,

【0164】 rij(ol)=min{1/c2 (nc −c1 ),1} (41) (c1 、c2 は定数)R ij (ol) = min {1 / c 2 (n c −c 1 ), 1} (41) (c 1 and c 2 are constants)

【0165】というふうに決める。この例では変曲点の
数が3のときrij(ol)=1/3となっている。これ
はc1 =−1、c2 =3/4としたものである。こうす
るとnc =2で、4/9、nc =1で2/3、nc =0
で1となる。勿論これらの定数は適宜決定すれば良い。
1とmin演算するのは、変曲点数が少ないときに大き
くなり過ぎるのでこれを防ぐためであるが、rij(o
l)の上限が1でなければならないということはない。
単にrij(ol)=1/c2 (nc −c1 )としても良
い。
The decision is made as follows. In this example, when the number of inflection points is 3, r ij (ol) = 1/3. This is one where c 1 = −1 and c 2 = 3/4. In this case, 4/9 when n c = 2, 2/3 when n c = 1, and n c = 0.
And becomes 1. Of course, these constants may be determined as appropriate.
1 and to min operations, but to prevent this because too large when a small number of inflection points, r ij (o
There is no requirement that the upper limit of l) be one.
It is also possible to simply set r ij (ol) = 1 / c 2 (n c −c 1 ).

【0166】このような計算を何回か重ねる。近似計算
の回数をtで表現する。これは確率を求める計算であ
る。近似計算については後に述べる。ここでは適合係数
ij(ol)の決定についてだけ説明した。
Such calculations are repeated several times. The number of approximation calculations is represented by t. This is a calculation for probability. The approximate calculation will be described later. Here, only the determination of the adaptation coefficient r ij (ol) has been described.

【0167】[CASE 2(J<1の場合:近傍接合
点がない)]図22はJ<1つまり近傍接合点が存在し
ない場合の処理のフロ−チャ−トを示す。図23はこの
場合の接合点の位置の例を示している。これは仮接合点
iの前の仮接合点xi-1 と、後の仮接合点xi+1 と3
点の接続を問題にする。図22のフロ−チャ−トも、パ
ラメ−タメ−タの範囲について初めに定義している。
[CASE 2 (when J <1: there is no nearby junction)] FIG. 22 is a flowchart of the process when J <1 or when there is no nearby junction. FIG. 23 shows an example of the position of the joining point in this case. This provisional junction x i-1 of the previous temporary joining point x i, temporary bonding points after x i + 1 and 3
The connection of points matters. In the flowchart of FIG. 22, the range of the parameter is first defined.

【0168】iは0〜I−1であるがこれは仮接合点の
番号である。すべての仮接合点について演算を行うとい
うことである。oは仮接合点xiの接合点候補λ
o (i)(xio,yio)の番号である。lはxiより前の仮
接合点xi-1の接合点候補λl (j)(xjl,yjl)の番号
である。すべての接合点候補について計算する。jはi
−1〜i−1、つまりj=i−1のみである。
I is 0 to I-1, which is the number of the temporary junction. That is, the calculation is performed for all the temporary joining points. o is a joint point candidate λ of the temporary joint point x i
o (i) is the number of ( xio , yio ). 1 is the number of the candidate λ l (j) (x jl , y jl ) of the connection point candidate of the temporary connection point x i-1 before x i . Calculate for all junction candidates. j is i
−1 to i−1, that is, only j = i−1.

【0169】それぞれの仮接合点xi-1、xi、xi+1
接合点候補を、A、B、Cとする。点Aはλl (i-1)(x
i-1l,yi-1l)でlがパラメータである。点Bはλo (i)
(xio,yio)でパラメータはoである。点Cはxi+1
の接合点候補λh (i+1)(xi+1h,yi+1h)で、maxh
(Pi+1h t-1)を示す。maxhはパラメータhのなかで
の最大を示す。
[0169] Let A, B, and C be the joining points candidates for the respective temporary joining points x i-1 , x i , and x i + 1 . Point A is λ l (i-1) (x
i-1l , yi-1l ), where l is a parameter. Point B is λ o (i)
In ( xio , yio ), the parameter is o. Point C is x i + 1
In the junction point candidate lambda h of (i + 1) (x i + 1h, y i + 1h), max h
(P i + 1h t-1 ). max h indicates the maximum among the parameters h.

【0170】これらの3点をフル−エンシ−関数で補間
する。これは図10に示すような方法で行うが、3点し
かなく、極めて簡単である。ただしこれも近似を上げて
行くようにし、近似の回数をtで表す。そして最小二乗
法による誤差がεmax になるまで近似する。このときの
近似の次元数をMとする。rij(ol)はmin{1/
(c3 M+c4 ε),1}で決める。εは最終誤差、M
は最終次元である。
These three points are interpolated by a full-energy function. This is performed by a method as shown in FIG. 10, but there are only three points, which is extremely simple. However, this also increases the approximation, and the number of approximations is represented by t. And error to approximate until the ε max by the least squares method. The number of dimensions of the approximation at this time is M. r ij (ol) is min {1 /
(C 3 M + c 4 ε), 1}. ε is the final error, M
Is the final dimension.

【0171】つまりできるだけ低い次元数で、誤差少な
く近似できる点を求めるということである。このような
点はそれぞれが属する仮接合点の接合点候補の内、最も
滑らかな曲線を与えることができる。tは近似の回数で
あり、0からこれを上げてゆく。先に説明したJ≧1の
時と同じように、tは0〜4とし4回で近似を打ち切
る。
That is, a point that can be approximated with as few dimensions as possible and with as few errors as possible is obtained. Such a point can provide the smoothest curve among the joining point candidates of the temporary joining points to which each point belongs. t is the number of approximations, and is increased from 0. As in the case of J ≧ 1 described above, t is set to 0 to 4, and approximation is stopped four times.

【0172】 [CASE 3(J≧1で出力近傍の場合)] 図19で示したのは、J≧1で仮接合点xiに対する近
傍接合点xjが入力近傍である時である。J≧1であっ
て、近傍接合点xjが出力近傍である場合も同様な計算
をするのであるが、この場合4点の取り方が少し違う。
[0172] [(For output near at J ≧ 1) CASE 3] that shown in FIG. 19 is when near the junction x j is the input vicinity for temporary joining points x i in J ≧ 1. The same calculation is performed when J ≧ 1 and the neighboring junction point x j is near the output, but in this case, the way of obtaining the four points is slightly different.

【0173】図24に出力近傍の場合の近傍接合点xj
に対する4点の取り方を示す。近傍接合点xjが、xi
中心とする半径ρのなかにある。しかもこれは走査の方
向に関し元の仮接合点xiよりも先にある。4点は、対
象となる仮接合点xiの前の仮接合点xi-1と、近傍接合
点xjの次の仮接合点xj+1である。これらの近くにある
2α個の接合点候補から4点を取る。
FIG. 24 shows the vicinity junction point x j near the output.
The following shows how to score 4 points. Near junction x j is in among the radius ρ centered at x i. Moreover, this is ahead of the original temporary junction point x i in the scanning direction. The four points are a temporary junction point x i-1 before the target temporary junction point x i and a temporary junction point x j + 1 next to the neighboring junction point x j . Four points are taken out of 2α joining point candidates near these.

【0174】Aはxj+1 の接合点候補λl i
(xj+1l,yj+1l)の一つである。ただしここでl
は「′」が付いているが、これは1/4画にできないの
で「′」を省いている。これは前回の確率計算で最大値
を与えたものとして決まっており、固定値である。
A is a junction point candidate λ l i of x j + 1
(X j + 1l , y j + 1l ). Where l
Is marked with ', but this cannot be reduced to 1/4 picture, so it is omitted. This is determined as the maximum value given in the previous probability calculation, and is a fixed value.

【0175】Bは近傍接合点xj の接合点候補λl j
(xjl,yjl)の一つである。Cは対象としている仮接
合点xi の接合点候補λo i (xio,yio)の一つで
ある。
[0175] B junction point candidate in the vicinity of the junction x j is lambda l j
(X jl , y jl ). C is one of the junction point candidate lambda o i of the temporary junction x i as an object (x io, y io).

【0176】Dはxi-1 の接合点候補λo i-1 (x
i-1o,yi-1o)の一つである。これも前回の確率計算で
最大値を与えるもので固定値である。図示したように実
際にはo′であるが、「′」が1/4角にならないので
ここでは′を省いている。以上のように4点が定まる。
これより後の計算はさきに説明したCASE 1の場合
と同じである。
[0176] D is the junction point candidate of x i-1 λ o i- 1 (x
i-1o , yi-1o ). This also gives the maximum value in the previous probability calculation and is a fixed value. Although it is actually o 'as shown in the figure,' is omitted here because "'" does not become a quarter-angle. As described above, four points are determined.
The calculation after this is the same as in the case 1 described above.

【0177】[出力近傍と入力近傍の決め方] 仮接合点は曲率が大きい輪郭点であり、主に2本の線が
直角に近い角度で交わる交差点が典型的なものである。
交差点を正確に決めるには、交差点を通る2本の輪郭線
を正確に求めて、その交点を求めなければならない。1
本の輪郭線は交差点と1つの近傍接合点を通り、もう1
本の輪郭線は交差点と他の近傍接合点を通る。
[Method of Determining Near Output and Near Input] The temporary junction is a contour point having a large curvature, and is typically an intersection where two lines intersect at an angle close to a right angle.
In order to accurately determine an intersection, two outlines passing through the intersection must be accurately determined, and the intersection must be determined. 1
The outline of the book passes through the intersection and one nearby junction, and another
The book outline passes through the intersection and other nearby junctions.

【0178】接合点はこのように2つの近傍接合点を持
つので、交差点を求める対象となる仮接合点di(xi
i)の近傍接合点dj(xj,yj)として、出力近傍と
入力近傍とを区別しなければならない。接合点と入力近
傍を通る最も滑らかな線と、接合点と出力近傍を通る最
も滑らかな線を求めて、それらの線の交点から正しい交
差点を再生するのである。
Since the junction has two neighboring junctions in this way, the temporary junction di (x i ,
near junction d j (x j of y i), as y j), it must be distinguished with respect to the output near the input vicinity. The smoothest line passing through the junction and the vicinity of the input and the smoothest line passing through the junction and the vicinity of the output are obtained, and the correct intersection is reproduced from the intersection of these lines.

【0179】仮接合点di(xi,yi)とその前の仮接
合点di-1(xi-1,yi-1)の2点を通り、輪郭点列の
走査の方向に沿うベクトル(di-1→di)が近傍接合点
j(xj,yj)に向かうとき、この近傍接合点dj(x
j,yj)を出力近傍という。反対に、近傍接合点d
j(xj,yj)とその前の仮接合点dj-1(xj-1
j-1)の2点を通り、輪郭点列の走査の方向に沿うベ
クトル(dj-1→dj)が仮接合点di(xi,yi)に向
かうとき、これを入力近傍という。図25は入力、出力
近傍接合点の決定のためのフローチャートである。始め
に全ての接合点候補λo (i)(xio,yio)を入力する。
[0179] temporary bonding point d i (x i, y i ) through the two points and the previous temporary joining point d i-1 (x i- 1, y i-1), the direction of scanning of the contour point sequence When the vector (d i−1 → d i ) along the line goes to the neighboring junction d j (x j , y j ), the neighboring junction d j (x
j , y j ) are called output neighborhoods. Conversely, the nearby junction d
j (x j , y j ) and the temporary joint point d j-1 (x j-1 ,
through the two points y j-1), when the vector along the direction of scanning of the contour point sequence (d j-1 → d j ) is directed to the temporary junction d i (x i, y i ), inputs the It is called the neighborhood. FIG. 25 is a flowchart for determining an input / output proximity junction. First, all the joining point candidates λ o (i) (x io , y io ) are inputted.

【0180】iは計算対象たる仮接合点di(xi
i)の番号であり,これは一つの輪郭点列群uについ
てI個ある(0〜I−1)。これについてi=0から始
める。jは近傍接合点の番号であるが、はじめから近傍
であるかどうか分かっている訳ではない。始めは全ての
仮接合点dj(xj,yj)をとる。oはその仮接合点の
近くの2α個内に含まれる接合点候補の番号である。図
中ではoに上線を付けているが、明細書では上線を付け
られないので省く。仮接合点di(xi,yi)のiだけ
固定し近傍接合点を決める。
[0180] i temporary joining point serving as a calculation target d i (x i,
y i ), which are I (0 to I−1) for one outline point sequence group u. We start with i = 0 for this. j is the number of the neighboring junction, but it is not known from the beginning whether or not it is nearby. At first, all the temporary joining points dj ( xj , yj ) are taken. “o” is the number of the junction candidate included in 2α pieces near the temporary junction. Although o is overlined in the figure, it is omitted in the specification because it cannot be overlined. Only the i of the temporary junction point d i (x i , y i ) is fixed, and a nearby junction point is determined.

【0181】dj(xj u,yj u)はj番目の仮接合点の
座標であるが、簡単のために単にdjと書いている。こ
れがλo (i)(xio,yio)(簡単のためλo (i)と書く)
を中心とする半径ρ内に存在するかどうかを調べる。こ
れは(35)に示した条件であるが再び記述すると、
[0181] d j (x j u, y j u) is the coordinates of the j-th temporary joint point, I wrote simply d j for simplicity. This is λ o (i) (x io , y io ) (written as λ o (i) for simplicity)
To determine if it is within a radius ρ centered at. This is the condition shown in (35).

【0182】 {(xio−xj2+(yio−yj21/2<ρ (42){(X io −x j ) 2 + (y io −y j ) 2 } 1/2 <ρ (42)

【0183】となる。(35)は仮接合点の座標
(xi,yi)をそのまま用いているが、ここではdi
接合点候補の座標を用いている。もしもdjが半径ρ内
にあるとこれは近傍接合点である可能性がある。次にd
jと、λo (i)が同一の輪郭点列にあるかどうかを調べ
る。異なる輪郭点列にあればこれらは近傍接合点でな
い。
Is obtained. (35) the coordinates (x i, y i) of the temporary bonding points are used as the uses a coordinate bonding point candidates d i here. If d j is within radius ρ, this may be a near junction. Then d
It is checked whether j and λ o (i) are in the same outline point sequence. If they are in different outline point sequences, they are not neighboring junction points.

【0184】もしも同一の輪郭点列にあると、djはλo
(i)が属する仮接合点xiの近傍接合点である。対象とし
ている仮接合点diにおいて、ある一定数β前の点の座
標は(接合点候補とは限らない)di-βで表すことがで
きる。ベクトル(di-β→di)は仮接合点における走
査の方向に沿う方向を持つ。一方近傍接合点djにおい
てこれより一定数βだけ後の点の座標はdj+βと書くこ
とができる。ベクトル(dj→dj+β)は近傍接合点の
直後における走査の方向に沿う方向を持つ。
If they are in the same outline point sequence, d j is λ o
(i) is near the junction of the temporary junction x i belongs. In the temporary junction d i of interest, coordinates of a point before the predetermined number beta that can be expressed by (not necessarily junction candidates) d i-beta. The vector (d i−β → d i ) has a direction along the scanning direction at the temporary joining point. Whereas coordinates of the point after only a certain number beta than this near the junction d j can be written as d j + beta. The vector (d j → d j + β ) has a direction along the scanning direction immediately after the neighboring junction.

【0185】仮接合点diから近傍接合点djに向かうベ
クトル(di→dj)が、輪郭点列の走査の方向に沿って
仮接合点diに向かうベクトル(di-β→di)とほぼ順
平行であり、輪郭点列の走査の方向に沿って近傍接合点
から出るベクトル(dj→dj+β)とほぼ順平行である
とき、近傍接合点djは仮接合点diの出力近傍である。
すなわち、
[0185] temporary bonding point d i toward the vicinity of the junction point d j from the vector (d i → d j) is the contour point sequence along the direction of scanning toward the temporary joining point d i vector (d i-beta → d i ) is substantially parallel to the vector (d j → d j + β ) emerging from the neighboring junction along the scanning direction of the outline point sequence, the neighboring junction dj is provisional. in the vicinity the output of junction d i.
That is,

【0186】 (di-β→di)//(di→dj)//(dj→dj+β) (43)(D i−β → d i ) // (d i → d j ) // (d j → d j + β ) (43)

【0187】という条件をほぼ満たすということであ
り、ベクトルの内積と外積の式で表すと、
That is, the above condition is almost satisfied. When expressed by the equation of inner product and outer product of vectors,

【0188】 │(di-β→di)×(di→dj)│<ε │(di→dj)×(dj→dj+β)│<ε (44)| (D i−β → d i ) × (d i → d j ) | <ε | (d i → d j ) × (d j → d j + β ) | <ε (44)

【0189】 (di-β→di)・(di→dj)>0 (di→dj)・(dj→dj+β)>0 (45)(D i−β → d i ) · (d i → d j )> 0 (d i → d j ) · (d j → d j + β )> 0 (45)

【0190】がすべて成り立つということである。ただ
しεは適当な小さい値である。つまり、ベクトル(d
i-β→di)、(di→dj)、(dj→dj+β)がすべて
ほぼ同一方向を向いているとき、4点di-β、di
j、dj+βはほぼ一直線に並んでいることになる。こ
の場合はdjは出力近傍である。そこでこれをdj output
(i)として登録する。
That is, all the conditions hold. However, ε is an appropriate small value. That is, the vector (d
When i-β → d i ), (d i → d j ), and (d j → d j + β ) all face in substantially the same direction, four points d i−β , d i ,
d j and d j + β are almost aligned. In this case, dj is near the output. So this is dj output
Register as (i).

【0191】他方近傍接合点djにおいてこれより一定
数βだけ前の点の座標はdj-βと書くことができる。ベ
クトル(dj-β→dj)は近傍接合点の直前における走
査の方向に沿う方向を持つ。仮接合点diにおいてこれ
より一定数βだけ後の点の座標はdi+βと書くことがで
きる。ベクトル(di→di+β)は仮接合点の直後にお
ける走査の方向に沿う方向を持つ。近傍接合点djから
仮接合点diに向かうベクトル(dj→di)が、輪郭点
列の走査の方向に沿って仮接合点diから出るベクトル
(di→di+β)とほぼ順平行であり、輪郭点列の走査
の方向に沿って近傍接合点djに向かうベクトル(d
j-β→dj)とほぼ順平行であるとき、近傍接合点dj
仮接合点diの入力近傍である。すなわち、
[0191] coordinates of a point earlier by a predetermined number beta than this in other near the junction d j can be written as d j-beta. The vector (d j−β → d j ) has a direction along the scanning direction immediately before the neighboring junction. Coordinate of a point after only a certain number beta than this in the temporary junction d i can be written as d i + beta. The vector (d i → d i + β ) has a direction along the scanning direction immediately after the temporary joining point. A vector (d j → d i ) from the neighboring junction d j to the temporary junction d i is a vector (d i → d i + β ) emerging from the temporary junction d i along the scanning direction of the outline point sequence. When a substantially forward parallel, toward the vicinity of the junction point d j along the direction of scanning of the contour point sequence vectors (d
j−β → d j ), the near junction d j is near the input of the temporary junction d i . That is,

【0192】 (dj-β→dj)//(dj→di)//(di→di+β) (46)(D j−β → d j ) // (d j → d i ) // (d i → d i + β ) (46)

【0193】という条件をほぼ満たすということであ
り、ベクトルの内積と外積の式で表すと、
That is, the condition is almost satisfied, and the expression of the inner product and the outer product of the vectors is as follows.

【0194】 │(dj-β→dj)×(dj→di)│<ε │(dj→di)×(di→di+β)│<ε (47)│ (d j−β → d j ) × (d j → d i ) │ <ε│ (d j → d i ) × (d i → d i + β ) │ <ε (47)

【0195】 (dj-β→dj)・(dj→di)>0 (dj→di)・(di→di+β)>0 (48)(D j −β → d j ) · (d j → d i )> 0 (d j → d i ) · (d i → d i + β )> 0 (48)

【0196】がすべて成り立つということである。ただ
しεは適当な小さい値である。つまり、ベクトル(d
j-β→dj)、(dj→di)、(di→di+β)がすべてほぼ
同一方向を向いているとき、4点dj-β、dj、di、d
i+βはほぼ一直線に並んでいることになる。この場合は
jは入力近傍である。そこでこれをdj input(i)と
して登録する。
That is, all the conditions hold. However, ε is an appropriate small value. That is, the vector (d
When j-β → d j ), (d j → d i ), and (d i → d i + β ) are almost in the same direction, four points d j−β , d j , d i , d
i + β is almost aligned. In this case, dj is near the input. Therefore, this is registered as d j input (i).

【0197】[確率の計算]最適接合点を求めるには接
合点候補についてつぎのような計算をして最適のものを
選ぶ。図26はこの計算を示すフロ−チャ−トである。
入力するものは、
[Calculation of Probability] In order to obtain the optimum junction, the following calculation is performed on the junction candidates to select the optimum one. FIG. 26 is a flowchart showing this calculation.
What to enter

【0198】 λo i (xio,yio)、dj input(i) 、dj output(i) (49)Λ o i (x io , y io ), dj input (i), dj output (i) (49)

【0199】である。λo i (xio,yio)は曲率に
よって選ばれた仮接合点xi の近くの接合点候補であ
る。oは接合点候補につけた番号である。iはxi に関
するものと言う意味である。dj input(i) は仮接合点x
i の近傍接合点の内、入力近傍接合点の位置座標であ
る。dj output(i)はxi の近傍接合点の内、出力近傍接
合点の位置座標である。
Is as follows. λ o i (x io, y io) is close to the junction point candidates temporary joining points x i selected by the curvature. o is the number assigned to the junction candidate. i means that it relates to x i . d j input (i) is the temporary junction x
This is the position coordinates of the input neighborhood junction among the neighborhood junctions of i . d j output (i) among the neighboring junction of x i, the position coordinates of the output near the junction.

【0200】これだけのものを始めに入力する。確率計
算の次数をtで示す。これは最小二乗法で誤差がある程
度小さくなった時に中止するというのではなく、始めか
ら回数を決めておく。例えば4回とする(t=0〜
4)。勿論目的によって5回以上にしても良い。
[0200] This is input first. The order of the probability calculation is denoted by t. This is not stopped when the error becomes small to some extent by the least square method, but the number of times is determined from the beginning. For example, four times (t = 0 to
4). Of course, five or more times may be used depending on the purpose.

【0201】確率変数Pi t (o)を定義する。これは
仮接合点xi の近くにある2α+1の(xi 自身を含
む)接合点候補の内oのt回目の確率である。t乗では
なくt回目であるから括弧をつけるべきであるが括弧を
サフィックスにいれることができないから単にtと書い
ている。どういう確率かというと、最適接合点としての
確率である。2α+1個の接合点候補の内これの最も高
いものを選ぶ。確率計算の回数tを増やす毎に接合点と
してより適するものの確率変数が高まってゆく。そのよ
うに確率変数を決める。もちろん幾つもの定義が可能で
ある。ここでは、次のように決める。
A random variable P i t (o) is defined. This is the t-th probability of an inner o of 2α + 1 of the (x i including itself) junction point candidate in the vicinity of the temporary joining point x i. Parentheses should be added because it is the t-th time, not the t-th power, but since the parentheses cannot be included in the suffix, it is simply written as t. What is the probability is the probability as the optimal junction. The highest one of the 2α + 1 junction points is selected. Every time the number of times t of the probability calculation is increased, the probability variable more suitable as a junction increases. Determine the random variables in that way. Of course, many definitions are possible. Here, it is determined as follows.

【0202】相補確率変数Qi t (o)を考える。これ
も接合点候補oのt回目の確率を与えている。これは入
力近傍からの寄与qi input(o) と、出力近傍からの寄与
i output(o)の和である。これも回数tが入るが、ここ
では略す。
Consider the complementary random variable Q i t (o). This also gives the t-th probability of the joint point candidate o. This is the sum of the contribution q i input (o) from the input neighborhood and the contribution q i output (o) from the output neighborhood. This also includes the number of times t, but is omitted here.

【0203】 Qi t (o)=qi input(o) +qi output(o) (50)Q i t (o) = q i input (o) + q i output (o) (50)

【0204】qi input(o) とqi output(o)は次のように
定義する。
Q i input (o) and q i output (o) are defined as follows.

【0205】 qi input(o)=max{rij(ol)×Pj (t-1)(l)} (51) (λl (j)∈{dj input(i)の接合点候補}) (52)Q i input (o) = max {r ij (ol) × P j (t−1) (1)} (51) (junction point candidate of (λ l (j) ∈ {d j input (i)) }) (52)

【0206】但しmaxの計算は接合点候補λi (j)がd
j input(i)の接合点候補に属しているという条件で最
大の値をとるということである。ここではlが変化する
パラメータである。適合係数rij(ol)は先に与えら
れている。同様に、
However, in the calculation of max, the candidate of the joining point λ i (j) is d
j input (i) takes the maximum value under the condition that it belongs to the junction candidate. Here, l is a changing parameter. The fit coefficient r ij (ol) has been given earlier. Similarly,

【0207】 qi output(o)=max{rij(ol)×Pj (t-1)(l)} (53) (λl (j)∈{dj output(i)の接合点候補}) (54)Q i output (o) = max {r ij (ol) × P j (t-1) (l)} (53) (junction point candidate of (λ l (j) ∈ {d j output (i)) }) (54)

【0208】maxは、接合点候補λl (j)が、dj
output(i)の接合点候補に属しているという条件で最
大の値を取るということである。t+1回目の確率変数
は、t回目の確率変数、相補確率変数などを用いて次の
ように定義される。
Max indicates that the junction candidate λ l (j) is equal to d j
This means that the output (i) takes the maximum value under the condition that it belongs to the junction candidate. The t + 1-th random variable is defined as follows using a t-th random variable, a complementary random variable, and the like.

【0209】 Pi (t+1)(o)=Pi (t)(o)Qi (t+1)(o)/{ΣPi (t)(o)Qi (t+1)(o)} (Σはλo (i)について行う) (55)P i (t + 1) (o) = P i (t) (o) Q i (t + 1) (o) / {ΣP i (t) (o) Q i (t + 1) ( o)} (Σ is performed on λ o (i) ) (55)

【0210】このような計算をt=0〜4まで行う。但
しこれは始め(t=0)の確率変数が分からないと計算
できない。初期確率Pi 0 (o)はどのように与えても
よいのであるが、ここではxi に近いほど大きい値を与
える。最適接合点は仮接合点xi の近くにあると考えら
れ、xi の初期確率を高くすると確率変数の収束が早く
なると考えられるからである。
Such calculation is performed from t = 0 to 4. However, this cannot be calculated unless the initial (t = 0) random variable is known. The initial probability P i 0 (o) may be given in any way, but here, a larger value is given closer to x i . This is because the optimal joint point is considered to be near the temporary joint point x i , and the convergence of the random variable is considered to be faster if the initial probability of x i is increased.

【0211】図28に初期値の設定を説明する。接合点
候補λo i はoが0から2α+1個ある。o=αはx
i 自身である。初期値Pi ′(o)はo=αの時に最大
値Kを取る。o=α−1、α+1は(K−2)とする。
以下αから遠ざかるに従って2ずつ減少して行くものと
する。o=0、2αでは初期値は1である。初期確率P
i 0 (o)は、初期値を用いて、
FIG. 28 illustrates the setting of the initial value. The joint point candidates λ o i have 0 to 2α + 1 o. o = α is x
i own. The initial value P i ′ (o) takes the maximum value K when o = α. o = α-1, α + 1 is (K−2).
Hereinafter, it is assumed that the distance decreases by 2 as the distance from α increases. At o = 0 and 2α, the initial value is 1. Initial probability P
i 0 (o) is calculated using the initial value,

【0212】 Pi 0 (o)=Pi ′(o)/ΣPi ′(o) (56)P i 0 (o) = P i ′ (o) / ΣP i ′ (o) (56)

【0213】である。Σの積算はoについて行う。こう
して初期確率が与えられたので、適合係数rij(ko)
と組み合わせて、t=1でのqi input(o) とq
i output(o)を計算することができる。これの和として相
補確率変数Qi t (o)を計算し、さらに、t+1回目
の確率変数Pi t (o)を計算できる。これはt=4に
なるまで繰り返し行う。t=4で最高の確率変数を持つ
接合点候補が最適接合点である。ここでの出力はPi 4
(o)i=0 I-1 o=0 O-1である。これを図29に示す。
[0213] The integration of Σ is performed for o. Given the initial probabilities in this way, the fit coefficient r ij (ko)
And q i input (o) at t = 1 and q
i output (o) can be calculated. The complementary random variable Q i t (o) is calculated as the sum of the above, and the (t + 1) -th random variable P i t (o) can be calculated. This is repeated until t = 4. The junction candidate having the highest random variable at t = 4 is the optimum junction. The output here is Pi 4
(O) i = 0 I-1 o = 0 O-1 . This is shown in FIG.

【0214】このようにして曲率から求めた仮接合点の
近くにある接合点候補から最適の接合点を求めることが
できる。始めに仮接合点を求めているのにさらにこの近
くの輪郭点列にまで範囲を広げて接合点候補としここか
ら最適の接合点を求めるのは本発明の著しい特徴の一つ
である。これは曲率が極大の点が必ずしも接合点として
最適でないという本発明者の発見に基づくものである。
In this manner, the optimum joining point can be obtained from the joining point candidates near the temporary joining point obtained from the curvature. It is one of the remarkable features of the present invention that, although a temporary joint point is obtained first, the range is further extended to a contour point sequence near this to be used as a joint point candidate and an optimum joint point is obtained therefrom. This is based on the inventor's discovery that a point having a maximum curvature is not always optimal as a joining point.

【0215】[適合係数の他の定義] 最適接合点の条
件は前述の方法では4つの点を結ぶ曲線の変曲点が最も
少ないということであった。つまり最も滑らかに接続す
るということである。これは変曲点の数を数える他に、
曲線の曲率を直接に対象とする方法も可能である。図2
7はこのような他の条件による接合点候補の適合係数の
求め方を示すフロ−チャ−トである。
[Other Definitions of Fitting Coefficient] The condition of the optimum joining point was that in the method described above, the inflection point of the curve connecting the four points was the least. In other words, the smoothest connection is made. This besides counting the number of inflection points,
It is also possible to directly target the curvature of the curve. FIG.
Numeral 7 is a flowchart showing how to find a matching coefficient of a joint point candidate under such other conditions.

【0216】始めのJ>1は近傍接合点が存在するとい
う条件である。この場合、入力近傍と出力近傍を考え、
4点A、B、C、Dを通る曲線を考えるが(図19、図
24)このとき変曲点ではなくて、曲率を求める。K
input というのは入力近傍における4点を結ぶ曲線の最
大曲率である。これが小さくなる曲線が望ましい。K
outputは出力近傍における4点を結ぶ曲線の最大曲率で
ある。これも小さい方が良い。そこで両者の和を取って
これの最小を与える点を求めることとする。そこで適合
係数を
The first condition J> 1 is a condition that a nearby junction exists. In this case, considering the input neighborhood and output neighborhood,
Consider a curve passing through four points A, B, C, and D (FIGS. 19 and 24). At this time, a curvature is obtained instead of an inflection point. K
The input is the maximum curvature of a curve connecting four points near the input. A curve where this becomes smaller is desirable. K
output is the maximum curvature of the curve connecting the four points near the output. This is also better if it is smaller. Therefore, the sum of the two is taken to find the point that gives the minimum. Therefore, the adaptation coefficient

【0217】 rij(ol)=min{γ(Kinput +Koutput-1,1} (57)R ij (ol) = min {γ (K input + K output ) −1 , 1} (57)

【0218】として定義する。γは定数である。これは
最適である時に曲率の和がほぼγになるように決める。
Defined as γ is a constant. This is determined so that the sum of the curvatures becomes approximately γ at the optimal time.

【0219】図29は確率変数の計算を繰り返してt=
4になった時に繰り返しを停止してこれで得た確率変数
i 4 (o)が最大になる接合点候補の番号oを求めこ
れを、前記の仮接合点xi が属する接合点候補の内の最
適接合点λo i とするのである。これを最適接合点記憶
装置Kに入力する。このような操作を輪郭点列群の全て
の仮接合点について行い、それぞれのカテゴリ−の接合
点候補を決定する。
FIG. 29 shows that the calculation of the random variable is repeated and t =
4 to a random variable P i 4 obtained in this stop repeatedly when it becomes this calculated number o junctions candidates (o) is maximized, the junction point candidate tentative junction x i of the belongs Is the optimum junction point λ o i . This is input to the optimum junction storage device K. Such an operation is performed for all the temporary joining points of the outline point sequence group, and joining point candidates of each category are determined.

【0220】[K.最適接合点記憶装置] 前記の操作によって求めた最適接合点を全て格納する装
置である。図29の最下段に示すように、最適接合点を
(xi u,yi u)として格納する。uは輪郭点列の番号で
ある。iは群uの中で接合点に付けた番号である。先程
は仮接合点にxiという番号(y座標も代表させてい
る)を付けており、番号iが同一であるが、これは差し
支えないことである。仮接合点一つに最適接合点一つが
対応するし、最適接合点は先程求めた仮接合点と同一か
または極近くにあるからである。
[K. Optimum junction storage device] This is a device that stores all the optimal junctions obtained by the above operation. As shown at the bottom of FIG. 29, the optimum joining point is stored as (x i u , y i u ). u is the number of the contour point sequence. i is the number assigned to the junction in group u. In the above, the temporary joining point is given the number x i (which also represents the y coordinate), and the number i is the same, but this is not a problem. This is because one optimal joining point corresponds to one temporary joining point, and the optimal joining point is the same as or very close to the temporary joining point obtained earlier.

【0221】ここまでの操作を順に説明したが、筋道を
分かり易くするために、ここで図30に示すロゴ・イラ
ストを例にしてこれまでの操作を簡単に振り返る。これ
は図16や、図43のダイオ−ドの図形の右肩に余分な
○を追加したものである。これは真円の処理を説明する
ためである。これの原画ををイメ−ジキャナで読み込ん
で画像とする。画像処理して輪郭点列抽出を行う。これ
は白抜きのロゴ・イラストで表される。5つの輪郭点列
がある。右肩の丸は真円抽出によって取り出され真円記
憶機構によって記憶される。これが除かれるので内外同
芯の2つの輪郭点列が減る。
The operations up to this point have been described in order, but in order to make it easy to understand the course, the operations up to this point will be briefly reviewed with the logo / illustration shown in FIG. 30 as an example. This is obtained by adding an extra circle to the right shoulder of the diode figure in FIG. 16 or FIG. This is to explain the processing of a perfect circle. The original image is read by an image canner to form an image. Image processing is performed to extract a contour point sequence. This is represented by a white logo / illustration. There are five outline point sequences. The circle on the right shoulder is extracted by the perfect circle extraction and stored by the perfect circle storage mechanism. Since this is removed, the two outline point sequences of the inner and outer concentric lines are reduced.

【0222】残りは丸と三角、線分を組み合わせた図形
になる。輪郭点列としては独立の3つの群がある。これ
らの全長に渡って区分的多項式近似をする。そして曲率
を計算して仮接合点を求める。これが3段目に書いてあ
る。仮接合点は線分の継ぎ目に現れる。4段目に×の印
で仮接合点を示す。曲率で選ぶので本来接合点になるべ
きものでも鈍角で2線分が交わる場合など、仮接合点と
して現れないことがある。この場合はこの点が接合点と
なるように追加する。この例では曲率計算で仮接合点が
全て出るので接合点の追加は不要である。次に接合点候
補を求める。さらに円と横直線の交差点と、縦の線分と
直線の交差点などで一定半径内の仮接合点として近傍接
合点を抽出する。以上の説明でここまで明らかになって
いる。
The rest is a figure combining a circle, a triangle, and a line segment. There are three independent groups of contour points. Piecewise polynomial approximation is performed over these entire lengths. Then, the curvature is calculated to determine a temporary joining point. This is written in the third row. Temporary junctions appear at seams of line segments. In the fourth row, the temporary joining points are indicated by crosses. Since the joint is selected based on the curvature, even if the joint should originally be a joint, it may not appear as a temporary joint when the two line segments intersect at an obtuse angle. In this case, it is added so that this point becomes a joining point. In this example, it is unnecessary to add a joining point because all the temporary joining points are found in the curvature calculation. Next, joint point candidates are obtained. Further, near junctions are extracted as temporary junctions within a certain radius at intersections of circles and horizontal straight lines, intersections of vertical line segments and straight lines, and the like. The above description has made it clear so far.

【0223】[L.接合点除去機構]ここではこれまで
に抽出された接合点の内不要である接合点を除去する。
図31はこれを表すフロ−チャ−トである。最適接合点
記憶装置から最終接合点を読み込む。{λo i }=
{(xi u ,yi u )}i=0 I-1である。uは群番号、i
は群での接合点の番号である。この後直線近似における
冗長な接合点除去を行う。
[L. Junction point removal mechanism] Here, unnecessary junction points are removed from the junction points extracted so far.
FIG. 31 is a flowchart showing this. The final junction is read from the optimal junction storage. {Λ o i } =
{(X i u , y i u )} i = 0 I−1 . u is the group number, i
Is the number of the junction in the group. Thereafter, redundant junction removal in the linear approximation is performed.

【0224】さらに円弧近似における冗長な接合点を除
去する。最終接合点は輪郭点列ごとに、座標(xiu
,yiu )と、番号i′によって記憶装置に記憶
される。
Further, redundant junction points in the arc approximation are removed. The final joining point is defined by coordinates (x iu
, Y iu ) and the number i ′.

【0225】これまでに求めた接合点は、輪郭線を区分
的多項式で近似し、曲率を求め、仮接合点を求め接合点
候補から最終接合点を求めたものである。従って不要な
接合点は殆どない筈であるがそれでも画像ノイズの影響
などで、不要な接合点が存在する可能性がある。それは
直線の接合点と、円弧の接合点である。
The joint points determined so far are obtained by approximating the contour with a piecewise polynomial, determining the curvature, determining the temporary joint point, and determining the final joint point from the joint point candidates. Therefore, there should be almost no unnecessary junctions, but there is still a possibility that there are unnecessary junctions due to the influence of image noise. It is the junction of a straight line and the junction of an arc.

【0226】[直線の接合点の除去] 図32の輪郭点
列の例は線分の中に接合点がある場合を示す。これの座
標を(Xi4 B 、Yi4 B )によって表現する。この接
合点を順次評価し、直線の接合点が2点以上連続した区
間が存在する時、これの内3つの連続する点列をとり、
4 =ns、ns+1、ns+2とする。両側の(Xns
B 、Yns B )と(Xns+2 B 、Yns+2 B )を直線
で結ぶ。中間の接合点(Xns+1 B 、Yns+1 B )から
この直線に下した垂線の長さをLns+1とする。これが予
め定めた定数K7 より小さいとき
[Removal of Joint Point of Straight Line] The example of the outline point sequence in FIG. 32 shows a case where there is a joint point in a line segment. These coordinates are represented by (X i4 B , Y i4 B ). The joint points are sequentially evaluated, and when there is a section in which two or more straight line joint points are continuous, a sequence of three consecutive points is taken out of these.
Let i 4 = ns, ns + 1, ns + 2. (X ns on both sides
B , Y ns B ) and (X ns + 2 B , Y ns + 2 B ) are connected by a straight line. Let L ns + 1 be the length of a perpendicular line drawn from the intermediate junction (X ns + 1 B , Y ns + 1 B ) to this straight line. When this is smaller than the constant K 7 a predetermined

【0227】 Lns+1<K7 (58)L ns + 1 <K 7 (58)

【0228】この接合点は除去する。図33はこのよう
な接合点を除去し両側の接合点を結び付けた状態を示
す。反対に、垂線の足Lns+1が定数K7 以上である時
This junction is removed. FIG. 33 shows a state where such joints are removed and the joints on both sides are connected. Conversely, when the perpendicular leg L ns + 1 is greater than the constant K 7

【0229】 Lns+1≧K7 (59)L ns + 1 ≧ K 7 (59)

【0230】この接合点は維持される。このような評価
を全ての接合点に対して行う。
This junction is maintained. Such an evaluation is performed for all joint points.

【0231】[円弧の接合点の除去] 前段階迄に抽出
された円弧の接合点の中に、複数個の接合点が連続して
いる事がある。この場合に於いて、中間の接合点を除去
してもデ−タの品質が保たれる場合、その接合点を除去
する事とする。除去の可能性の判定は次のように行う。
図34に示すように、円弧の接合点を(Xi4 B
i4 B)で表す。i4 が連続番号である。
[Removal of Arc Joints] There are cases where a plurality of joints are continuous among arc joints extracted up to the previous stage. In this case, if the data quality is maintained even if the intermediate junction is removed, the junction is removed. The possibility of removal is determined as follows.
As shown in FIG. 34, the joining points of the arcs are represented by (X i4 B ,
Y i4 B ). i 4 is a sequential number.

【0232】図34のように3つの接合点(Xns B 、Y
ns B )、(Xns+1 B 、Yns+1 B )、(Xns+2 B 、Yns+2
B )が連続して存在するとする。この時(Xns B 、Yns
B )から開始する円弧(メ)と(Xns+1 B 、Yns+1 B
から開始する円弧(ミ)とに着目する。図35に示すよ
うに、両円弧の半径をrns、rns+1とする。中心座標を
それぞれ(xns、yns)、(xns+1、yns+1)とする。
円弧メ、ミは次の条件を満足する時単一の円弧と見なさ
れる。
As shown in FIG. 34, three junctions (X ns B , Y
ns B), (X ns + 1 B, Y ns + 1 B), (X ns + 2 B, Y ns + 2
Suppose that B ) exists continuously. At this time (X ns B , Y ns
The arc (me) starting from B ) and (X ns + 1 B , Y ns + 1 B )
Attention is focused on an arc (mi) starting from. As shown in FIG. 35, let the radii of both arcs be r ns and r ns + 1 . The center coordinates are (x ns , y ns ) and (x ns + 1 , y ns + 1 ), respectively.
An arc is considered a single arc when the following conditions are met:

【0233】 |rns+1 − rns | < K8 (60)| R ns + 1 −r ns | <K 8 (60)

【0234】 {(xns+1−xns2 +(yns+1−yns21/2 <K9 (61){(X ns + 1 −x ns ) 2 + (y ns + 1 −y ns ) 21/2 <K 9 (61)

【0235】つまり中心座標がほぼ同一点で半径がほぼ
同じであれば、2つの円弧メ、ミは同じ円弧の一部分と
見做すのである。この場合中間の接合点(Xns+1 B 、Y
ns+1 B )は不必要であるものとして除去される。そうで
ない場合この接合点は維持される。
That is, if the center coordinates are substantially the same and the radii are substantially the same, the two arcs M and M are regarded as a part of the same arc. In this case, the intermediate junction (X ns + 1 B , Y
ns + 1 B ) are removed as unnecessary. Otherwise, this junction is maintained.

【0236】このような判定と除去、維持の作業が順次
すべての円弧の接合点に対して行われる。半径差、中心
差の閾値は適当に決めるべきであるが、例えばK8
1、K9 =2と定めると好都合である。
Such determination, removal, and maintenance operations are sequentially performed on all arc junctions. The threshold values of the radius difference and the center difference should be appropriately determined. For example, K 8 =
It is convenient to set 1, K 9 = 2.

【0237】以上の操作によって直線と円弧に於いて、
不要な接合点が除かれる。これはデ−タを圧縮するとい
う上で有効である。それだけでなく、直線や円弧である
べきものをあるべき姿に修正するのであるからデ−タの
品質を高めるという積極的な意義がある。こうして選ば
れた接合点は最終接合点ということにする。
With the above operation, in a straight line and a circular arc,
Unnecessary joints are eliminated. This is effective in compressing data. In addition, since it is necessary to correct what should be a straight line or a circular arc into a desired shape, it has a positive significance of improving the quality of data. The junction selected in this way is referred to as a final junction.

【0238】[M.最終接合点記憶装置]不要な接合点
を除去して得た最終接合点は最終接合点記憶装置に記憶
される。これは図31の最終段に示すとおり、座標(x
i u ,yi ui=0 I-1である。ただし図面では、最適接
合点と区別するために「′」が付いている。「′」は1
/4角にできないので明細書では「′」を省いている。
実際は「′」が付いているのである。
[M. Final junction storage device] The final junction obtained by removing unnecessary junctions is stored in the final junction storage device. This corresponds to the coordinates (x
i u , y i u ) i = 0 I-1 . However, in the drawings, “′” is added to distinguish them from the optimum joining points. "'" Is 1
Since a square cannot be formed, "" is omitted in the specification.
In fact, it has "'".

【0239】[N.デ−タ近似機構B]これまでに得た
輪郭点列、最終接合点、真円などのデ−タからデ−タを
近似する機構である。本発明の中心的な部分である。そ
れぞれの記憶装置から入力されるものは、図36に示す
ように、
[N. Data approximation mechanism B] This is a mechanism for approximating data from data such as a contour point sequence, a final joint point, and a perfect circle obtained so far. It is a central part of the present invention. The input from each storage device is as shown in FIG.

【0240】輪郭点列記憶装置・・・輪郭点列{(xk
u ,yk u )}k=0 N u -1 =0 U-1 最終接合点記憶装置・・最終接合点{(xi u ,yi
ui=0 I-1 真円記憶装置・・・・・円Circle(u)
Outline point sequence storage device: Outline point sequence {(x k
u, y k u)} k = 0 N u -1 = 0 U-1 final junction memory .. final junction point {(x i u, y i
u ) i = 0 I-1 perfect circle storage device ... circle Circle (u)

【0241】である。輪郭点列のサフィックスのuは輪
郭点列群の番号である。kはその輪郭点列群uでの輪郭
点列番号である。N(u)(N u となっている)は
群uでの輪郭点列の数である。iは群uでの最終接合点
である。単にiと書いているが、図36に示すように実
はi′である。「′」は1/4角にできないのでここで
は「′」を省いている。最終接合点が得られているが、
隣接する二つの接合点の間(接合点間)を直線、円弧、
自由曲線近似する。近似において媒介変数tを用いてx
成分をsx (t)により、y成分をsy (t)によって
表現する。
Is as follows. The suffix u of the outline point sequence is the number of the outline point sequence group. k is a contour point sequence number in the contour point sequence group u. N (u) (represented by N u) is the number of contour point sequences in the group u. i is the final junction in group u. Although it is simply written as i, it is actually i 'as shown in FIG. Since “′” cannot be reduced to a quarter angle, “′” is omitted here. The final junction has been obtained,
A straight line, an arc, or a line between two adjacent junctions (between junctions)
Approximate free curve. X using the parameter t in the approximation
The component is represented by s x (t), and the y component is represented by s y (t).

【0242】これは最初に輪郭点列の全体を媒介変数t
で表現したのと同じ手法である。しかし今度は領域が接
合点の間になっているから、tの範囲やtとsx
(t)、sx (t)の対応は前回のものとは異なってい
る。またある接合点から始まる区間が直線の区間である
か、円弧の区間であるか、あるいは自由曲線の区間であ
るかということは、曲率を各点において求めるときに分
かっている。
First, the entire contour point sequence is set to the parameter t.
This is the same method as expressed in. But this time, since the region is between the junctions, the range of t and t and s x
The correspondence between (t) and s x (t) is different from the previous one. Whether the section starting from a certain junction is a section of a straight line, a section of an arc, or a section of a free curve is known when the curvature is obtained at each point.

【0243】これを記録している場合は、始めから直
線、円弧、自由曲線の何れであるかを区別できる。つま
りその区間の全点における曲率が0であればこれは直線
である。またその区間での曲率が一定値であればこれは
円弧である。さらに曲率が変動すればこれは自由曲線で
ある。このように区間を区別できると近似計算のパラメ
−タを決定するのは簡単である。
When this is recorded, it can be distinguished from the beginning whether it is a straight line, an arc or a free curve. That is, if the curvatures at all points in the section are 0, this is a straight line. If the curvature in that section is a constant value, this is an arc. If the curvature further changes, this is a free curve. If the sections can be distinguished in this way, it is easy to determine the parameters for the approximate calculation.

【0244】しかし反対に曲率計算の結果を記憶させて
いなくても、この段階で直線、円弧、自由曲線の別を調
べることができる。区別をしてから近似をしても良い。
本発明はいずれの場合にも適用できる。先ず前者の場合
について述べる。
However, on the contrary, even if the result of the curvature calculation is not stored, it is possible to check whether a straight line, an arc or a free curve is present at this stage. The approximation may be made after the distinction.
The present invention can be applied to both cases. First, the former case will be described.

【0245】[直線区間の近似] 直線の接合点から始
まる区間の近似について説明する。接合点の抽出段階に
おいて直線と判断されている。この時、x方向の近似曲
線sx(t)は始点x1 と終点xn3とを結ぶ一次関数に
なる。y方向の近似曲線sy (t)は、始点y1 と終点
n3とを結ぶ一次関数になる。この場合媒介変数に対し
てx、yともに一次関数になる。
[Approximation of Straight Line Section] The approximation of a section starting from the junction of straight lines will be described. It is determined to be a straight line in the extraction stage of the joint point. At this time, the approximate curve s x (t) in the x direction becomes a linear function connecting the start point x 1 and the end point x n3 . The approximate curve s y (t) in the y direction is a linear function connecting the start point y 1 and the end point y n3 . In this case, both x and y are linear functions with respect to the parameters.

【0246】媒介変数tとsx (t)、sy (t)の比
例定数がパラメ−タになる。しかしこの比例定数は記憶
する必要がない。直線区間であると始点(x1 ,y1
と終点(xn3,yn3)が分かればこの間に直線を引けば
良いからである。また終点の(xn3,yn3)は次の区間
の始点として与えられるので、ここでは記憶する必要が
ない。
The proportional constant between the parameter t and s x (t), s y (t) is a parameter. However, this proportionality constant does not need to be stored. Start point (x 1 , y 1 ) if it is a straight section
If the end point ( xn3 , yn3 ) is known, a straight line may be drawn between them. The end point (x n3 , y n3 ) is given as the start point of the next section, and need not be stored here.

【0247】[円弧区間の近似] 円弧の接合点から始
まる区間の近似について説明する。この区間は接合点抽
出の段階において円弧と判断されている。円弧を表す近
似曲線sx (t)、sy (t)は、次の三角関数の線形
結合で表される。観測区間をt∈[0,T]とすると、
x (t)、sy (t)は、
[Approximation of Arc Section] The approximation of the section starting from the junction of the arcs will be described. This section is determined to be a circular arc at the point of joint point extraction. The approximate curves s x (t) and s y (t) representing the arc are expressed by the following linear combination of trigonometric functions. If the observation interval is t 区間 [0, T],
s x (t) and s y (t) are

【0248】 sx (t)=Axcos(2πt/(T/narc ))+Bx sin (2πT/(T/n arc ))+Cx (62)Sx (T) = Axcos (2πt / (T / narc )) + Bx sin (2πT / (T / n arc )) + Cx (62)

【0249】 sy (t)=Aycos(2πt/(T/narc ))+By sin (2πT/(T/n arc ))+Cy (63)Sy (T) = Aycos (2πt / (T / narc )) + By sin (2πT / (T / n arc )) + Cy (63)

【0250】によって表現される。narc は円弧の全円
に対する比である。つまり円弧の中心角を360度で割
った値である。例えば4分円の場合は、narc は1/4
である。であるから2πnarc がこの円弧の中心角であ
る。変数2πt/(T/narc)は円弧の始点からパラ
メ−タtに対応する点までの中心角である。(Cx 、C
y )は円弧の中心の座標である。この時、
Is represented by n arc is the ratio of the arc to the total circle. That is, it is a value obtained by dividing the central angle of the arc by 360 degrees. For example, in the case of a quadrant , n arc is 1/4
It is. Therefore, 2πn arc is the central angle of this arc. The variable 2πt / (T / n arc ) is the central angle from the starting point of the arc to the point corresponding to the parameter t. (C x , C
y ) is the coordinates of the center of the arc. At this time,

【0251】 Ax 2+Bx 2=Ay 2+By 2 (64)A x 2 + B x 2 = A y 2 + B y 2 (64)

【0252】 By /Ay =Bx /Ax (65)[0252] B y / A y = B x / A x (65)

【0253】が成立すれば近似関数は円弧となる。この
場合、円弧を規定するパラメ−タは関数のそれぞれの係
数Ax 、Bx 、Cx 、Ay 、By 、Cy 、narc であ
る。もしも始めからこの区間が円弧であることが分かっ
ていれば、始点、終点の座標と、曲率と中間の一点の座
標とからこのようなパラメ−タを一義的に決定できる。
If the above holds, the approximation function becomes a circular arc. In this case, parameter defines an arc - data each coefficient A x of the function, B x, is C x, A y, B y , C y, n arc. If it is known from the beginning that this section is a circular arc, such parameters can be uniquely determined from the coordinates of the start and end points, the curvature and the coordinates of one point in the middle.

【0254】[自由曲線の近似] 直線の接合点でも、
円弧の接合点でもない接合点から始まる区間を自由曲線
近似する。媒介変数tで表現するが、輪郭点列は(xi3
u ,yi3 u )で表され、これにtを対応させて、
(ti3 u ,xi3 u )、(ti3 u ,yi3 u )とい
う媒介変数表示とする。これまで輪郭点列のサフィック
スはkであったが、ここで区間の区分の番号としてkを
用いるからkの代わりに、i3を輪郭点列の番号とする
のである。そして輪郭点列の総数をn3とする。
[Approximation of Free Curve] Even at the junction of straight lines,
A section starting from a junction that is not a junction of arcs is approximated by a free curve. Although represented by the parameter t, the outline point sequence is (x i3
u , y i3 u ), and corresponding to t,
(T i3 u , x i3 u ) and (t i3 u , y i3 u ) are used as parameters. Until now, the suffix of the contour point sequence was k. However, since k is used as the section number of the section, i3 is used as the contour point sequence number instead of k. Then, the total number of contour point sequences is set to n3.

【0255】そして、二次のフルーエンシー関数ψk
底としてsx(t)、sy(t)を展開する。フルーエン
シー関数については図40に示した通りである。これは
3つの細区分にのみ値を持つ関数である。区間を[0,
T]として、二次フルーエンシー関数ψkは、M次元の
関数系
Then, s x (t) and s y (t) are developed using the second-order fluency function ψ k as the base. The fluency function is as shown in FIG. This is a function that has values only in three subdivisions. The interval is [0,
T], the quadratic fluency function ψ k is an M-dimensional functional system

【0256】 ψk(t)=3(T/M)-2Σq=0 3(−1)q(t−ξk+q2 + /{(q!(3−q)!)} (66) (k=−2,−1,0,1,2,・・・,M+2){ K (t) = 3 (T / M) −2 } q = 0 3 (−1) q (t−ξ k + q ) 2 + / {(q! (3-q)!)} (66) (k = −2, −1, 0, 1, 2,..., M + 2)

【0257】である。これを底としてsx(ti3)、sy
(ti3)は、係数ck x、ck yを用いて、
Is as follows. Using this as the base, s x (t i3 ), s y
(T i3 ) is calculated using the coefficients c k x and c k y .

【0258】 sx(ti3)=Σk=-2 M+2k xψk(ti3) (67)S x (t i3 ) = Σ k = −2 M + 2 c k x ψ k (t i3 ) (67)

【0259】 sy(ti3)=Σk=-2 M+2k yψk(ti3) (68)S y (t i3 ) = Σ k = −2 M + 2 c k y ψ k (t i3 ) (68)

【0260】と表現される。ここで、Are expressed as follows. here,

【0261】 t>ξk+qの時 (t−ξk+q2 +=(t−ξk+q2 (69)When t> ξ k + q (t−ξ k + q ) 2 + = (t−ξ k + q ) 2 (69)

【0262】 t≦ξk+qの時 (t−ξk+q2 +=0 (70)When t ≦ ξ k + q (t−ξ k + q ) 2 + = 0 (70)

【0263】と定義されている。ξk+qは、区間TをM
等分したときの細区分である。
Is defined. ξ k + q is defined as
It is a subdivision when divided equally.

【0264】 ξk+q=(k+q)T/M (71)Ξ k + q = (k + q) T / M (71)

【0265】係数ck x、ck yは、各輪郭点列の値(xi3
u,yi3 u)と、sx(ti3)、sy(ti3)の値が近似す
るように決定する。最小二乗法で係数の値を決める。2
乗誤差Qは
The coefficients c k x and c k y are calculated as the values (x i3
u , y i3 u ) and the values of s x (t i3 ) and s y (t i3 ) are determined to be similar. Determine the value of the coefficient by the least squares method. 2
The squared error Q is

【0266】 Q=Σi3=1 n3|xi3 u−sx(ti3)|2 +Σi3=1 n3|yi3 u−sy(ti3)|2 (72)Q = Σ i3 = 1 n3 | x i3 u −s x (t i3 ) | 2 + Σ i3 = 1 n3 | y i3 u −s y (t i3 ) | 2 (72)

【0267】によって定義される。これを最小にするた
めに、
Is defined by To minimize this,

【0268】 Σk=-2 M+2k x{Σi3=1 n3ψk(ti3)ψw3(ti3)} =Σi3=1 n3i3ψw3(ti3) (73)Σ k = −2 M + 2 ck x {Σ i3 = 1 n3 ψ k (t i3 ) ψ w3 (t i3 )} = Σ i3 = 1 n3 x i3 ψ w3 (t i3 ) (73)

【0269】 Σk=-2 M+2k y{Σi3=1 n3ψk(ti3)ψw3(ti3)} =Σi3=1 n3i3ψw3(ti3) (74) (m=−2,−1,0,1,・・・,M+2) (75)[0269] Σ k = -2 M + 2 c k y {Σ i3 = 1 n3 ψ k (t i3) ψ w3 (t i3)} = Σ i3 = 1 n3 y i3 ψ w3 (t i3) (74) (M = −2, −1, 0, 1,..., M + 2) (75)

【0270】によって決定される。これを解いて、係数
k x、ck yを求めることができる。この係数が適当であ
るかどうかを評価するために、次のように各点での誤差
の最大値εを求める。
Is determined by By solving this, the coefficients c k x and c k y can be obtained. In order to evaluate whether this coefficient is appropriate, the maximum value ε of the error at each point is determined as follows.

【0271】 ε=maxi3=0 n3{(xi3 u−sx(ti3))2 +(yi3 u−sy(ti3))21/2 (76)Ε = max i3 = 0 n33 (x i3 u− s x (t i3 )) 2 + (y i3 u− s y (t i3 )) 21/2 (76)

【0272】ただし、max演算では、i3の範囲は0
からn3−1までである。この範囲での最大を求めると
いうことである。εが一定数より小さくなるとこれで近
似ができたということにする。例えばε<0.9となる
かどうかということで判定する。もしも一定数よりεが
大きいと、次元数Mをひとつ増やして同様の計算を行
う。次元数が高くなると区分の数が増えるので、近似の
精度が向上する。同様の誤差の計算をすると、何時かε
<0.9となる。この時近似計算が完了したことにな
る。
However, in the max operation, the range of i3 is 0
To n3-1. This means finding the maximum in this range. When ε becomes smaller than a certain number, it is determined that the approximation has been completed. For example, it is determined whether ε <0.9. If ε is larger than a certain number, the same calculation is performed by increasing the number of dimensions M by one. As the number of dimensions increases, the number of sections increases, and the accuracy of approximation improves. When calculating the same error, sometime ε
<0.9. At this time, the approximation calculation is completed.

【0273】[O.圧縮デ−タ出力機構]ロゴ・イラス
トの輪郭線がこれまでの手順によって、直線(線分)、
真円、円弧、自由曲線に分離された。これらは始点、終
点を持ち、傾き、中心、半径などのパラメ−タを持って
いる。それぞれの種類によって格納すべきデ−タも異な
っている。
[O. Compressed data output mechanism] The outline of the logo / illustration is changed to a straight line (line segment),
It was separated into perfect circles, arcs, and free curves. These have a starting point and an ending point, and have parameters such as inclination, center, and radius. The data to be stored differs depending on the type.

【0274】直線デ−タの場合は、直線である事を示す
フラグ、直線の始点座標をデ−タとして格納する。終点
座標は次の区間の始点として与えられるのでここでは格
納する必要がない。直線の傾きは直線を定義するパラメ
−タであるが始点と、次の接合点の座標を結ぶことによ
り直線ができるので傾きも不要である。これも格納しな
い。
In the case of straight line data, a flag indicating a straight line and the coordinates of the start point of the straight line are stored as data. Since the end point coordinates are given as the start point of the next section, there is no need to store them here. The inclination of the straight line is a parameter that defines the straight line. However, since the straight line can be formed by connecting the coordinates of the starting point and the coordinates of the next junction, no inclination is required. This is not stored either.

【0275】真円デ−タの場合は、真円記憶装置Gから
直接にデ−タを得る事ができる。これは1回目のデ−タ
近似機構Aによって既に選び出されている。真円の場
合、真円を示すフラグ、円の中心座標、円の半径をデ−
タとして格納する。
In the case of perfect circle data, the data can be obtained directly from the perfect circle storage device G. This has already been selected by the first data approximation mechanism A. In the case of a perfect circle, the flag indicating the perfect circle, the center coordinates of the circle, and the radius of the circle are provided.
Stored as data.

【0276】円弧デ−タとして、円弧である事を示すフ
ラグ、円弧の始点座標、円弧分割長(円弧長/周長)、
輪郭点数、関数の係数を格納する。自由曲線のデ−タと
しては、関数の次元数、輪郭点数、輪郭点列の変動の中
点(μx 、μy )及び関数の係数cx 、cy を格納す
る。
As the arc data, a flag indicating an arc, the coordinates of the starting point of the arc, the arc division length (arc length / perimeter),
Stores the number of contour points and function coefficients. De of free curve - The data, dimensionality of the function, the contour points, the middle point (μ x, μ y) of the variation of the contour point sequence and the coefficient of the function c x, stores c y.

【0277】[P.圧縮デ−タ記憶装置]圧縮デ−タ出
力機構から出力された、直線、真円、円弧、自由曲線な
どのデ−タを記憶する。これは記憶した後適当な時期に
出力する。ここまではデ−タを圧縮生成し記憶する装置
である。これ以後が蓄積されたデ−タからロゴ・イラス
トを再生する装置を説明する。圧縮デ−タ記憶装置Pに
格納されるデ−タ構造を表1に示す。
[P. Compressed data storage device] Stores data such as straight lines, perfect circles, circular arcs, and free curves output from the compressed data output mechanism. This is output at an appropriate time after being stored. Up to this point, the data is compressed and generated and stored. Hereinafter, an apparatus for reproducing a logo / illustration from accumulated data will be described. Table 1 shows the data structure stored in the compressed data storage device P.

【0278】[0278]

【表1】 [Table 1]

【0279】デ−タの大きさについて説明する。接合点
間が直線の場合は、直線を示すフラグのために1バイ
ト、線分の始点を示すのに2バイト(x座標とy座標)
で計3バイト要る。接合点間が円弧の場合は、円弧を示
すフラグで1バイト、円弧の始点を示すのに2バイト、
円弧中心角を表すのに4バイト、輪郭点列の数を表すの
に1バイト、近似関数の係数(6個ある)を表すのに1
2バイトで合計20バイト必要である。接合点間が自由
曲線の場合は、関数の次元数Mを表すのに1バイト、輪
郭点数で1バイト、輪郭点の変動の中心を表すのに2バ
イト、近似関数の係数を表すのに2Mバイト、合計で4
+2Mバイトとなる。
The size of the data will be described. If a straight line exists between the joining points, one byte is used for the flag indicating the straight line, and two bytes are used for indicating the start point of the line segment (x coordinate and y coordinate).
Requires a total of 3 bytes. When the arc between the joining points is an arc, the flag indicating the arc is 1 byte, and the start point of the arc is 2 bytes.
4 bytes to represent the arc center angle, 1 byte to represent the number of contour points, 1 to represent the approximate function coefficients (there are 6)
A total of 20 bytes are required for 2 bytes. In the case of a free curve between the joining points, 1 byte is used to represent the dimension number M of the function, 1 byte is used as the number of contour points, 2 bytes is used to represent the center of variation of the contour points, and 2M is used to represent the coefficient of the approximate function. Bytes, 4 in total
+2 Mbytes.

【0280】以下に説明する輪郭再生機構R、ロゴ・イ
ラスト再生機構S、再生デ−タ出力機構Tはロゴ・イラ
ストを任意の大きさに再生するための再生デ−タ生成装
置を構成する。
The outline reproduction mechanism R, logo / illustration reproduction mechanism S, and reproduction data output mechanism T described below constitute a reproduction data generating device for reproducing the logo / illustration to an arbitrary size.

【0281】[R.輪郭再生機構]これは記憶されてい
る圧縮デ−タからロゴ・イラストの骨格となるべき輪郭
線を再生する機構である。輪郭線は直線、真円、円弧、
自由曲線の場合がある。
[R. Contour Reproduction Mechanism] This is a mechanism for reproducing a contour line to be a skeleton of a logo / illustration from stored compressed data. Contour lines are straight lines, perfect circles, arcs,
It may be a free curve.

【0282】[直線の再生] 直線の再生は、始点の座
標から、次の区間の接合点の座標までを直線で結ぶこと
によって行われる。直線の傾きに関するデ−タは不要で
ある。 [真円の再生] 真円の再生は、中心の座標と半径のデ
−タから、中心座標を中心として与えられた半径の円を
描く事によって行われる。 [円弧の再生] 円弧の再生は格納されている各デ−タ
(Ax ,Bx ,・・・)を次の式に代入する事によって
行われる。
[Reproduction of Straight Line] Reproduction of a straight line is performed by connecting a straight line from the coordinates of the starting point to the coordinates of the joining point in the next section. No data regarding the inclination of the straight line is required. [Reproduction of Perfect Circle] Reproduction of a perfect circle is performed by drawing a circle having a given radius around the center coordinates from data of the coordinates and the radius of the center. [Reproduction of circular arc] Reproduction of circular arc is performed by substituting each stored data (A x , B x ,...) Into the following equation.

【0283】 Sx(t) = Axcos{2πt/(T/narc)} +Bxsin{2πt/(T/narc)} +Cx (7 7)S x (t) = A x cos {2πt / (T / n arc )} + B x sin {2πt / (T / n arc )} + C x (77)

【0284】 Sy(t) = Aycos{2πt/(T/narc)} +Bysin{2πt/(T/narc)} +Cy (7 8)S y (t) = A y cos {2πt / (T / n arc )} + B y sin {2πt / (T / n arc )} + C y (78)

【0285】パラメ−タtを[0〜T]の区間で変動さ
せる事により、Sx (t)、Sy (t)からx、y座標
を得る。
The x and y coordinates are obtained from S x (t) and S y (t) by varying the parameter t in the interval [0 to T].

【0286】[自由曲線の再生] 各標本点tiに於ける近似関数の基底ψkの値は、標本点
iが区間[(L+2)(T/M,(L+3)(T/
M)]内にある時(1≦L≦M)、p=L+3−ti×
M/Tを用いて、
[Reproduction of Free Curve] The value of the basis ψ k of the approximation function at each sample point t i is such that the sample point t i is in the interval [(L + 2) (T / M, (L + 3) (T /
M)] when in (1 ≦ L ≦ M), p = L + 3-t i ×
Using M / T,

【0287】 ψk(ti)=0.5p2 k=L (79) ψk(ti)=p(1−p)+0.5 k=L+1 (80) ψk(ti)=0.5(p−1)2 k=L+2 (81) ψk(ti)=0 k≦L−1,L+3≦k (82) によって表される。ただしLは次元数M以下の自然数で
ある。同一の性質の数であるからM’と書くべきである
が、’が1/4角にならないので、Lで表現している。
Ψ k (t i ) = 0.5p 2 k = L (79) ψ k (t i ) = p (1-p) +0.5 k = L + 1 (80) ψ k (t i ) = 0 0.5 (p−1) 2 k = L + 2 (81) ψ k (t i ) = 0 k ≦ L−1, L + 3 ≦ k (82) Here, L is a natural number of dimensions M or less. It should be written as M 'because they have the same property, but since' does not become a quarter angle, it is represented by L.

【0288】このような基底ψkを用いて各標本点に於
ける近似関数値S(ti)は
Using such a base ψ k , the approximate function value S (t i ) at each sample point is

【0289】 S(ti)=Σk=L L+2kψk(ti) (83)[0289] S (t i) = Σ k = L L + 2 C k ψ k (t i) (83)

【0290】によって求められる。Is obtained by

【0291】[S.ロゴ・イラスト再生機構]輪郭線が
得られたので輪郭線で囲まれた部分を黒画素として、白
黒の2値画像にしてロゴ・イラスト形状に再生する。あ
るいは反対に輪郭線で囲まれた部分を白画素とし、残り
を黒画素とすることもできる。さらに輪郭線で囲まれた
部分をある色彩とし、他の部分を他の色彩とすることも
できる。要するに輪郭線の内外が区別できるようにすれ
ば良い。
[S. Logo / Illustration Reproduction Mechanism] Since the outline is obtained, the portion surrounded by the outline is set as a black pixel, and is reproduced as a logo / illustration shape as a black and white binary image. Or, conversely, the portion surrounded by the outline can be white pixels, and the rest can be black pixels. Further, a portion surrounded by the outline may be set to a certain color, and another portion may be set to another color. In short, it suffices that the inside and outside of the contour can be distinguished.

【0292】[T.再生デ−タ出力機構]関数の係数か
ら画像を再生するために、例えば再生画像の大きさを1
mm角からA3版大まで指定できるレイアウトエデイタ
を用いる。再生画像は300DPIの精度を持つレ−ザ
プリンタ或は600DPIの精度を持つレ−ザプリンタ
を用いて印字される。さらに、3000DPIの電植機
(印刷機器)、または400DPIのポストスクリプト
対応プリンタ、レ−ザカッタ等によって出力することが
できる。
[T. Reproduction data output mechanism] In order to reproduce an image from the coefficient of the function, for example, the size of the reproduced image is set to 1
Use a layout editor that can specify from mm square to A3 size large. The reproduced image is printed by using a laser printer having an accuracy of 300 DPI or a laser printer having an accuracy of 600 DPI. Further, it can be output by a 3000 DPI electroplanter (printing device), a 400 DPI postscript compatible printer, a laser cutter, or the like.

【0293】ロゴ・イラストは関数の係数の形で記憶さ
れていて、任意の倍率に拡大縮小することができる。ま
た座標もその中心を任意に指定する事ができる。このた
め、任意のデザインロゴ・イラストを任意の位置に任意
の大きさで出力する事ができる。
The logo / illustration is stored in the form of a coefficient of a function, and can be scaled to any magnification. Also, the center can be arbitrarily specified for the coordinates. Therefore, an arbitrary design logo / illustration can be output at an arbitrary position and in an arbitrary size.

【0294】上記の機構は、例えばC言語を用いたプロ
グラムによって、浮動小数点演算用の数値演算プロセッ
サを搭載したPC−9801DAに実装する事ができ
る。
The above mechanism can be implemented by a program using the C language, for example, on a PC-9801DA equipped with a numerical processor for floating-point arithmetic.

【0295】本発明の効果を確かめるために、図37の
音符、図38の円グラフ、図39のたばこのロゴ・イラ
ストについて本発明によりデ−タ圧縮した。その結果を
表2に示す。またこれら、音符、円グラフ、たばこ、図
43のダイオ−ド等について、原画像と本発明のデ−タ
圧縮記録した後再生したものをそれぞれの図の下半部に
示す。それぞれ優れた再生画像である。原画像と殆ど区
別がつかない。本発明による再生画像(300DPIの
レ−ザプリンタによる)が原画像を品質を落とす事無く
忠実に再生できているということが分かる。
In order to confirm the effect of the present invention, data of the musical note of FIG. 37, the pie chart of FIG. 38, and the logo illustration of the tobacco of FIG. 39 were compressed according to the present invention. Table 2 shows the results. The lower half of each of these notes, pie graphs, cigarettes, and the diodes shown in FIG. 43 shows the original image and the data obtained by compressing and recording the data according to the present invention. Each is an excellent reproduced image. Almost indistinguishable from the original image. It can be seen that the reproduced image (by the 300 DPI laser printer) according to the present invention can reproduce the original image faithfully without deteriorating the quality.

【0296】[0296]

【表2】 [Table 2]

【0297】表2はそれぞれのロゴ・イラストを本発明
の方法によりデータ圧縮した後のデータ量(Byte)
と圧縮率(%)、圧縮時間(秒)を示している。ここで
圧縮率と言うのは、原画像のデータ量(約8kbyt
e)によって本発明方法に従って圧縮されたロゴ・イラ
ストのデータ量(byte)を割って100を掛け%と
して表したものである。原画像が約8kbyteのデー
タ量を持つが、本発明方法で圧縮すると、300から5
00byteのデータ量に減少する。
Table 2 shows the data amount after each logo / illustration is compressed by the method of the present invention (bytes).
And the compression ratio (%) and the compression time (second). Here, the compression ratio refers to the data amount of the original image (about 8 kbytes).
The data amount (byte) of the logo / illustration compressed according to the method of the present invention according to e) is divided by 100 and expressed as%. The original image has a data amount of about 8 kbytes, but when compressed by the method of the present invention, 300 to 5
The data amount is reduced to 00 bytes.

【0298】つまり、音符の場合は、135バイトにデ
−タ圧縮できる。圧縮率は何と1.65%である。これ
は単純な図形で直線部が多いからであろう。圧縮時間は
12.33秒と少し長い。図38の円グラフの場合は、
デ−タ量は284バイトである。圧縮率は3.47%で
圧縮時間は8.66秒であって短い。図39のたばこ
は、デ−タ量が264バイトに減る。圧縮率は3.22
%である。また圧縮時間は8.48秒である。これらの
他に、グラフ、回路図、シンボルマ−クなど50種類の
ロゴ・イラストを用意しこれについても本発明の方法に
よりデ−タ入力出力して圧縮率、圧縮時間などを調べ
た。この結果が最下欄に書いてある。本発明によって短
い処理時間で高い圧縮率を実現できる事が分かる。
That is, in the case of a musical note, data can be compressed to 135 bytes. The compression ratio is a surprisingly 1.65%. This may be because there are many straight lines in simple figures. The compression time is slightly longer at 12.33 seconds. In the case of the pie chart in FIG. 38,
The data amount is 284 bytes. The compression ratio is 3.47% and the compression time is 8.66 seconds, which is short. The data amount of the tobacco in FIG. 39 is reduced to 264 bytes. The compression ratio is 3.22
%. The compression time is 8.48 seconds. In addition to the above, 50 types of logos and illustrations such as graphs, circuit diagrams, and symbol marks were prepared, and the compression ratio, compression time, and the like were examined by inputting and outputting data according to the method of the present invention. This result is written in the bottom column. It can be seen that a high compression ratio can be realized in a short processing time according to the present invention.

【0299】圧縮率が2〜6%程度であって、極めて少
量のデ−タに還元できる。また1ロゴ・イラスト当たり
の圧縮時間は数秒程度であって、極めて短時間である。
ここでいう圧縮時間はCPU時間であり、一語に収めら
れるデ−タの分割合成処理時間、グラフィック時間も含
まれている。このように処理時間が短く、デ−タ量が少
なくなる。
The compression ratio is about 2 to 6%, and can be reduced to a very small amount of data. The compression time per logo / illustration is about several seconds, which is extremely short.
Here, the compression time is a CPU time, and also includes a time required for processing for dividing and combining data contained in one word and a graphic time. Thus, the processing time is short and the amount of data is small.

【0300】[U.画像記憶装置2]再生されたロゴ・
イラストをそのまま記憶するものである。プリンタによ
って打ち出されたロゴ・イラストをそのまま記憶する全
ての機構装置を意味する。ビデオカメラなどを用いるこ
ともできる。プリントされた紙面もこれに含まれる。画
像記憶装置は別段無くても差し支えない。
[U. Image storage device 2]
The illustration is stored as it is. It means all mechanical devices that store logos and illustrations printed by the printer as they are. A video camera or the like can also be used. This includes the printed page. The image storage device may be omitted.

【0301】[0301]

【発明の効果】本発明は、原画であるロゴ・イラストを
光学的に読み取り、少ないデ−タにして記憶し蓄積する
ことを可能とする。もはや紙に書いた原画の形で保存す
る必要がない。直線は直線として、円弧、円は幾何学的
に正しい円弧、円として抽出し記憶するので、原画像に
含まれるノイズや読み取り時に混じるノイズを除去し画
質を向上させることができる。本発明はさらに接合点の
除去を通じてロゴ・イラストの品質を向上させることが
できる。また1ロゴ・イラスト当たりの処理時間が短
い。ために数多くの新規なロゴ・イラストを創案した時
でもこれを短時間に数学的なデ−タとして蓄積できる。
According to the present invention, it is possible to optically read an original logo / illustration and store and accumulate it with a small amount of data. You no longer need to save it in its original form on paper. Since straight lines are extracted as straight lines, arcs and circles are extracted and stored as geometrically correct arcs and circles, noise included in the original image and noise mixed at the time of reading can be removed, and the image quality can be improved. The present invention can further improve the quality of logos and illustrations through the removal of joints. Also, the processing time per logo / illustration is short. Therefore, even when many new logos / illustrations are created, they can be accumulated as mathematical data in a short time.

【0302】単に蓄積しただけでなく、再生するのも簡
単である。蓄積データを用いて、任意の大きさのロゴ・
イラストを任意の位置に再生できる。図44と図45は
拡大縮小の例である。光学的手段によって拡大するとど
うしてもノイズが増えるし輪郭線がぼやけるが、本発明
は計算の上で拡大するので直線は直線、円弧は円弧とし
て再生される。自由曲線でも同じ事である。これも計算
の上で拡大されるので線がぼこぼこになったり、ぼやけ
たりしない。
It is easy to not only store but also reproduce. Using the stored data, a logo of any size
Illustrations can be played at any position. FIGS. 44 and 45 show examples of enlargement and reduction. Although noise is inevitably increased and the outline is blurred when enlarged by optical means, the present invention enlarges on calculation, so that straight lines are reproduced as straight lines and arcs are reproduced as arcs. The same is true for free curves. This is also magnified on the calculation so that the line does not become uneven or blurred.

【0303】図46と図47は拡大縮小変形回転移動な
どが自由であることを示す。図47でaは縦方向に引き
伸ばしている。bは縦方向に圧縮している。cは斜めに
引き伸ばしている。dは45度程度回転している。e、
fは縮小回転などの例である。図48は同じマ−クの拡
大縮小を示す。位置も任意であることを示している。こ
れは自由曲線の多い例であるが、これでもきちんと接合
点を定義でき本発明を適用できるのである。図49、図
50は葉書にイラストを印刷する場合を示す。原図を任
意の大きさにし、葉書の任意の場所に入れることができ
る。文字とのバランスを考えて適当な部位に挿入する。
従来のように原図を鋏で切って糊で貼り付けるというよ
うな手数が不要である。
FIGS. 46 and 47 show that enlargement, reduction, deformation, rotation, and the like are free. In FIG. 47, a is elongated in the vertical direction. b is compressed in the vertical direction. c is obliquely stretched. d is rotated by about 45 degrees. e,
f is an example of reduced rotation. FIG. 48 shows the scaling of the same mark. This indicates that the position is also arbitrary. Although this is an example with many free curves, the present invention can be applied to the case where the junction can be properly defined. FIGS. 49 and 50 show a case where an illustration is printed on a postcard. The original drawing can be arbitrarily sized and placed anywhere on the postcard. Insert into an appropriate part considering the balance with the characters.
It is not necessary to cut the original drawing with scissors and paste it with glue as in the related art.

【0304】従来はロゴ・イラストの拡大、縮小が容易
でなく、光学的手段によって拡大、縮小する他に手段が
なかった。光学的に画像を拡大縮小移動などを行うとノ
イズが入って品質が低下する。また自由度も低く時間も
掛かる。何回も複写を繰り返すと品質の低下が著しい。
Conventionally, it has been difficult to enlarge or reduce a logo / illustration, and there has been no means other than enlargement or reduction by optical means. If the image is optically enlarged or reduced, noise is introduced and the quality is reduced. Also, the degree of freedom is low and it takes time. The quality is remarkably deteriorated when copying is repeated many times.

【0305】本発明は、接合点と区分的多項式の係数と
してデ−タを蓄積するので、ロゴ・イラストのスケ−ル
の拡大縮小、平行移動などは計算によって行うことがで
きる。従ってロゴ・イラストの拡大縮小移動などが迅速
で自由に行える。場所の移動は全体の座標の平行移動に
よってなされる。拡大縮小は、基準となる点の座標、円
弧半径、区分的多項式の係数{ch x}、{ch y}にも倍
率を掛けることにより計算によってなされる。デ−タの
数が少ないので計算は迅速に行われる。
According to the present invention, since data is accumulated as a joint point and a coefficient of a piecewise polynomial, scaling and translation of the scale of the logo / illustration can be performed by calculation. Therefore, it is possible to quickly and freely move the logo / illustration by scaling. The movement of the place is made by the parallel movement of the whole coordinates. Scaling the coordinates of the point as a reference, the arc radius, the coefficient of piecewise polynomials {c h x}, made by calculated by multiplying the magnification in {c h y}. The calculation is performed quickly because the number of data is small.

【0306】また図47に示すような回転も、計算だけ
でできる。基準となる座標と、区分的多項式の係数{c
h x}、{ch y}に回転角に対応する係数を掛けてこれを
足し合わせ新しい係数を求める。
The rotation as shown in FIG. 47 can be performed only by calculation. Coordinates to be reference and coefficient {c of piecewise polynomial
h x h and {c h y } are multiplied by a coefficient corresponding to the rotation angle, and these are added to obtain a new coefficient.

【0307】図47のような異方的拡大縮小も計算によ
って与えられる。ここで異方的というのは拡大縮小の係
数が方向によって異なるということである。円と楕円、
正方形と長方形の間の変換のようなものである。これは
x方向の係数{ch x}と、y方向の係数{ch y}に異な
る乗数を掛けてさらに前記の回転を行えば良い。
The anisotropic scaling as shown in FIG. 47 is also given by calculation. Here, "anisotropic" means that the scaling factor differs depending on the direction. Circles and ellipses,
It's like a transformation between a square and a rectangle. This is the coefficient of the x-direction {c h x}, may further be performed rotation of the over different multiplier coefficient in the y-direction {c h y}.

【0308】このように移動、回転、拡大、縮小、異方
的拡大縮小などアッフィン変換は係数{ch x}、
{ch y}の一次変換によって簡単に実行できる。これは
計算によるものであるから、変形によりノイズが入ると
いうようなことはない。またデ−タの数が少なくなって
いるから計算の時間も短くて済む。形状の決まっている
文字と違いロゴ・イラストの場合はこのような変形はし
ばしば有用である。
[0308] moving Thus, rotation, enlargement, reduction, Affin transformation such as anisotropic scaling the coefficients {c h x},
Easily performed by the primary conversion {c h y}. Since this is due to calculation, noise does not occur due to deformation. Also, since the number of data is reduced, the calculation time can be reduced. Such deformation is often useful for logos and illustrations, unlike characters with fixed shapes.

【0309】本発明では図形要素が接合点と、円弧中
心、半径、自由曲線の係数などで集合的に表現されるの
で、上記の計算の数が少なく時間も短い。しかもこの計
算によってノイズを発生するということがない。つまり
これらの操作によってロゴ・イラストの品質が劣化する
ということもない。
In the present invention, since the graphic elements are collectively represented by the joint points, the center of the arc, the radius, the coefficients of the free curve, etc., the number of the above calculations is small and the time is short. Moreover, no noise is generated by this calculation. In other words, these operations do not degrade the quality of the logo / illustration.

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

【図1】本発明のロゴ・イラストデ−タ入力出力装置の
全体の機構を示す全体構成図。
FIG. 1 is an overall configuration diagram showing an overall mechanism of a logo / illustration data input / output device of the present invention.

【図2】ロゴ・イラストを読み取った画像において画素
に対して定義するX、Y座標系を示す図。
FIG. 2 is a diagram showing an X, Y coordinate system defined for pixels in an image obtained by reading a logo / illustration.

【図3】ひとつの画素の周りのチェ−ンコ−ドを示す
図。
FIG. 3 is a diagram showing a chain code around one pixel.

【図4】画像デ−タにおいて輪郭点を探索するための走
査の方向を示す図。
FIG. 4 is a diagram showing a scanning direction for searching for a contour point in image data.

【図5】一つの輪郭点が分かった時に次の輪郭点を見付
けるための探索方向を示す図。
FIG. 5 is a diagram showing a search direction for finding a next contour point when one contour point is found.

【図6】黒画素と白画素が存在する時ある輪郭点とその
次の輪郭点を示す図。
FIG. 6 is a diagram showing a contour point when a black pixel and a white pixel exist and a contour point next thereto.

【図7】ロの字型の画像デ−タにおいて外側の輪郭線と
内側の輪郭線を抽出し画素に値2を対応させている状態
を示す図。
FIG. 7 is a diagram showing a state in which an outer contour line and an inner contour line are extracted from square-shaped image data and a pixel is assigned a value of 2;

【図8】輪郭点列抽出装置の構成を示すフロ−チャ−
ト。
FIG. 8 is a flowchart showing the configuration of a contour point sequence extraction device.
G.

【図9】輪郭点列を近似し曲率を求めるためのデ−タ近
似機構のフロ−チャ−ト。
FIG. 9 is a flowchart of a data approximation mechanism for approximating a contour point sequence and obtaining a curvature.

【図10】デ−タ近似機構の一部であって輪郭点列の全
体を区分的多項式で近似する際の係数を決定する過程を
示すフロ−チャ−ト。
FIG. 10 is a flow chart showing a process of determining a coefficient which is a part of the data approximation mechanism and approximates the entire contour point sequence by a piecewise polynomial.

【図11】前段で近似された輪郭点列の各点における曲
率計算のためのフロ−チャ−ト。
FIG. 11 is a flowchart for calculating a curvature at each point of a contour point sequence approximated in the preceding stage.

【図12】区分的多項式で近似されたデ−タに基づいて
真円を抽出するための機構を示すフロ−チャ−ト。
FIG. 12 is a flowchart showing a mechanism for extracting a perfect circle based on data approximated by a piecewise polynomial.

【図13】接合点抽出手法の概略を示す流れ図。FIG. 13 is a flowchart showing an outline of a joining point extraction technique.

【図14】先に計算された曲率から接合点の位置を抽出
するための機構を示すフロ−チャ−ト。
FIG. 14 is a flowchart showing a mechanism for extracting a position of a joining point from a curvature calculated previously.

【図15】ロゴ・イラストの一例としての16分音符の
図。原図(a)とこれの輪郭点列抽出と接合点抽出の結
果を示す図(b)。×印は接合点を示す。
FIG. 15 is a diagram of a sixteenth note as an example of a logo illustration. FIG. 7B shows the original drawing (a) and the results of contour point sequence extraction and junction point extraction thereof. The mark “x” indicates the junction.

【図16】ロゴ・イラストの一例としてのダイオ−ドの
図。原図(a)とこれの輪郭点列抽出と接合点抽出の結
果を示す図(b)。
FIG. 16 is a diagram of a diode as an example of a logo illustration. FIG. 7B shows the original drawing (a) and the results of contour point sequence extraction and junction point extraction thereof.

【図17】最適接合点抽出機構の概略のフロ−チャ−
ト。
FIG. 17 is a schematic flowchart of an optimum joint extracting mechanism;
G.

【図18】曲率によって選ばれた仮接合点とこの近傍の
接合点候補の番号を示す図。
FIG. 18 is a diagram showing temporary junction points selected based on curvature and numbers of candidate junction points in the vicinity thereof.

【図19】曲率によって選ばれた仮接合点に出力近傍の
近傍接合点がある場合の各点に付す番号を示す図。
FIG. 19 is a diagram showing numbers assigned to respective points in the case where a temporary junction selected by curvature has a nearby junction near the output.

【図20】近傍接合点がある場合において適合係数を決
定するためのフロ−チャ−ト。
FIG. 20 is a flowchart for determining an adaptation coefficient when there are neighboring junctions.

【図21】曲率によって選ばれた仮接合点の近くの接合
点候補C、出力近傍の接合点候補B、仮接合点の次の接
合点Dと、出力近傍の接合点の直前の接合点Aを結ぶ近
似曲線の例と変曲点の数を示す図。
FIG. 21 shows a junction candidate C near the temporary junction selected by the curvature, a junction B near the output, a junction D next to the temporary junction, and a junction A immediately before the junction near the output. The figure which shows the example of the approximate curve which connects and the number of inflection points.

【図22】曲率によって選ばれた仮接合点に近傍接合点
が存在しない場合の適合係数を求めるためのフロ−チャ
−ト。
FIG. 22 is a flowchart for calculating an adaptation coefficient when there is no neighboring joint at a temporary joint selected by curvature.

【図23】仮接合点に近傍接合点が存在しない場合にお
いて、この仮接合点の接合点候補Bと、前後の仮接合点
の接合点候補A、Cとこれらを結ぶ曲線と、これらの点
に付する番号を明らかにするための図。
FIG. 23 is a diagram showing a connection point candidate B of the temporary connection point, connection point candidates A and C of the temporary connection points before and after the temporary connection point, and a curve connecting these points when there is no nearby connection point at the temporary connection point; The figure for clarifying the number attached to.

【図24】曲率によって選ばれた仮接合点の近くの接合
点候補C、入力近傍の近傍接合点の近くの接合点候補
B、その仮接合点の直前の仮接合点の接合点候補Dの定
義と符号を説明するための図。
FIG. 24 shows a candidate joint C near a temporary joint selected by curvature, a candidate B near a nearby joint near input, and a candidate D of a temporary joint immediately before the temporary joint. The figure for demonstrating a definition and a code | symbol.

【図25】ひとつの仮接合点の入力近傍、出力近傍であ
る近傍接合点の決定のためのフロ−チャ−ト。
FIG. 25 is a flowchart for determining a neighboring junction which is an input neighborhood and an output neighborhood of one temporary junction.

【図26】接合点候補の内どれが最適の接合点であるか
を表す確率変数の定義と繰り返し演算を示すフロ−チャ
−ト。
FIG. 26 is a flowchart showing the definition of a random variable indicating which of the junction candidates is the optimum junction and the repetitive operation.

【図27】他の適合係数の与え方を示すフロ−チャ−
ト。
FIG. 27 is a flow chart showing how to give another adaptation coefficient.
G.

【図28】仮接合点を中心とする2α+1個の接合点候
補に与える初期確率を示す図。
FIG. 28 is a diagram showing an initial probability given to 2α + 1 joint point candidates with a temporary joint point as a center.

【図29】全ての仮接合点に関して確率変数の計算を行
い、最大確率を与える接合点候補を最適接合点とし最適
接合点記憶装置に記憶することを示す図。
FIG. 29 is a diagram showing that a random variable is calculated for all temporary junctions, and a junction candidate that gives the maximum probability is stored as an optimum junction in the optimum junction storage device.

【図30】変形ダイオ−ドの図を例にしてこれまでの手
順を簡単に振返って示す図。
FIG. 30 is a diagram showing a simple review of the procedure up to now, taking a modified diode diagram as an example.

【図31】最適接合点から不要な接合点を除去し、最終
接合点を求める操作を説明するフロ−チャ−ト。
FIG. 31 is a flowchart for explaining an operation of removing an unnecessary joint point from an optimum joint point and obtaining a final joint point.

【図32】複数個の直線の接合点が連続して存在してい
る時において除去すべきか否かを判断すべき対象である
中間の接合点と両端の接合点の符号を示す図。
FIG. 32 is a diagram showing signs of intermediate junctions and junctions at both ends which are objects to be determined whether or not to be removed when a plurality of straight junctions are continuously present.

【図33】図32の配置において両端の接合点を結ぶ直
線へ中間の接合点から下した垂線の足の長さがある閾値
よりも小さい時に中間の接合点を除去することを示す
図。
FIG. 33 is a view showing removal of an intermediate junction when the length of a perpendicular foot extending from the intermediate junction to a straight line connecting the junctions at both ends in the arrangement of FIG. 32 is smaller than a certain threshold;

【図34】複数個の円弧の接合点が連続して存在してい
る時において除去すべきか否かを判断すべき中間の接合
点と、両端の接合点の符号を示す図。
FIG. 34 is a view showing intermediate joint points to be determined whether or not to be removed when a plurality of arc joint points are continuously present, and the signs of the joint points at both ends.

【図35】図34において第1の接合点から始まる円弧
の半径、中心、第2の接合点から始まる円弧の半径、中
心を示す図。
FIG. 35 is a diagram showing a radius and a center of an arc starting from a first junction and a radius and a center of an arc starting from a second junction in FIG. 34;

【図36】輪郭点列、最終接合点、真円などのデ−タか
らデ−タを近似し近似関数によって輪郭点列を表す操作
を説明するための図。
FIG. 36 is a view for explaining an operation of approximating data from data such as a contour point sequence, a final joint point, and a perfect circle, and expressing the contour point sequence by an approximation function.

【図37】16分音符のロゴ・イラストの原画像(a)
とこれを本発明の方法によってデ−タ圧縮しさらに再生
した画像の図(b)。
FIG. 37: Original image of a 16th note logo / illustration (a)
(B) of an image obtained by compressing the data and reproducing the data by the method of the present invention.

【図38】円グラフのロゴ・イラストの原画像(a)と
これを本発明の方法によってデ−タ圧縮しさらに再生し
た画像(b)の図。
FIG. 38 is a diagram of an original image (a) of a logo / illustration in a pie chart and an image (b) obtained by data compression and reproduction of the original image by the method of the present invention.

【図39】たばこのロゴ・イラストの原画像(a)とこ
れを本発明の方法によってデ−タ圧縮しさらに再生した
画像(b)の図。
FIG. 39 is a diagram of an original image (a) of a logo / illustration of a cigarette and an image (b) obtained by compressing and compressing the original image by the method of the present invention.

【図40】2次のフル−エンシ−関数と0次、1次、3
次のフル−エンシ−関数の概略図。
FIG. 40 shows a quadratic full-energy function and 0th, 1st and 3rd order
Schematic diagram of the next full-energy function.

【図41】2次のフル−エンシ−関数を採用した場合に
基底関数の数が少ない時十分にデ−タを近似できないと
しても、次元数を上げると近似を上げることができる事
を示す概略図。
FIG. 41 is a schematic diagram showing that approximation can be increased by increasing the number of dimensions even when data is not sufficiently approximated when the number of basis functions is small when a quadratic full-energy function is employed. FIG.

【図42】たばこのロゴ・イラストを例にとり、輪郭点
列の全体を区分的多項式近似する手続を示す図。
FIG. 42 is a view showing a procedure for piecewise polynomial approximation of the whole outline point sequence, taking a cigarette logo / illustration as an example.

【図43】ダイオ−ドのロゴ・イラストの原画像(a)
とこれを本発明の方法によってデ−タ圧縮しさらに再生
した画像(b)の図。
FIG. 43: Original image of diode logo / illustration (a)
And (b) an image obtained by compressing the data and reproducing the data by the method of the present invention.

【図44】自由曲線の多いロゴ・イラストの例。FIG. 44 is an example of a logo / illustration with many free curves.

【図45】図44のロゴ・イラストの縮小図。FIG. 45 is a reduced view of the logo / illustration of FIG. 44;

【図46】自由曲線の多いロゴ・イラストの例。FIG. 46 is an example of a logo / illustration with many free curves.

【図47】図46の図形を本発明の方法によって記録し
変形して出力する例を示す図。
FIG. 47 is a diagram showing an example in which the graphic in FIG. 46 is recorded, transformed, and output by the method of the present invention.

【図48】飾り文字と図形を含むロゴ・イラストの例で
あり、(a)は縮小図、(b)は拡大図である。いずれ
を本発明の装置よって記録しても他方の図形を簡単に得
ることができる。
FIG. 48 is an example of a logo / illustration including a decorative character and a figure, where (a) is a reduced view and (b) is an enlarged view. Whichever is recorded by the apparatus of the present invention, the other figure can be easily obtained.

【図49】葉書の一部に本発明の方法によってかたつむ
りのロゴ・イラストを入れた例を示す図。大きさ、位置
を任意に決定し変更することができる。
FIG. 49 is a diagram showing an example in which a snail logo / illustration is inserted into a part of a postcard by the method of the present invention. The size and position can be arbitrarily determined and changed.

【図50】葉書の一部に本発明の方法によって山岳のロ
ゴ・イラストを入れた例を示す図。大きさ、位置を任意
に決定し変更することができる。
FIG. 50 is a diagram showing an example in which a mountain logo / illustration is inserted into a part of a postcard by the method of the present invention. The size and position can be arbitrarily determined and changed.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−49483(JP,A) 特開 昭57−159363(JP,A) 特開 昭62−274372(JP,A) 特開 昭61−221979(JP,A) 特開 平1−283589(JP,A) 特開 昭62−205479(JP,A) 特開 昭63−304385(JP,A) 特開 平3−105574(JP,A) 特開 昭62−95686(JP,A) 特開 昭62−184582(JP,A) 電子情報通信学会論文誌D VOL. J70−D NO.6 P.1164−1172 (昭和62年6月) 電子情報通信学会論文誌D−II V OL.J73−D−II VOL.9 P.1448−1457(平成2年9月) 電子情報通信学会技術研究報告PRU 91−54 P.21−28(平成3年9月) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-60-49483 (JP, A) JP-A-57-159363 (JP, A) JP-A-62-274372 (JP, A) 221979 (JP, A) JP-A-1-283589 (JP, A) JP-A-62-205479 (JP, A) JP-A-63-304385 (JP, A) JP-A-3-105574 (JP, A) JP-A-62-95686 (JP, A) JP-A-62-184582 (JP, A) Transactions of the Institute of Electronics, Information and Communication Engineers D VOL. J70-D NO. 6P. 1164-1172 (June 1987) IEICE Transactions D-II VOL. J73-D-II VOL. 9P. 1448-1457 (September 1990) IEICE Technical Report PRU 91-54 21-28 (September 1991)

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 (a)光学的にロゴ・イラストデータを
読み取り、縦横に有限個並ぶ画素に対応させて記憶する
ロゴ・イラスト読み取り装置と、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出する輸郭線抽出機構と、 (c)抽出された輪郭線の2次元座標(X,Y)を連続
する群毎に記憶する輪郭点列記憶機構と、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求めるデータ近似機構Aと、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求める曲率
演算機構と、 (f)群毎の曲率のデータから真円を抽出する真円抽出
機構と、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出する仮接合点位置抽出機構と、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択する手
段と、前記第1接合点候補と前記第2接合点候補のすべ
ての組合せについて、前記第1固定点と前記第1接合点
候補と前記第2接合点候補と前記第2固定点の4点を最
も滑らかに結ぶ線の滑らかさに基づき前記第1接合点候
補の適合度を求める手段と、最も適合度の高い前記第1
接合点候補を選択して前記第1仮接合点に代わる最適接
合点とする手段とを有する最適接合点抽出機構と、 (i)連続する二以上の直線又は連続する二以上の円弧
の始点である最適接合点の中からそれがなくても近似精
度が保たれるような不要な最適接合点を見いだしこれを
除去し直線又は円弧を統合する不要接合点除去機構と、 (j)除去されずに残った最適接合点を最終接合点とし
て記憶する最終接合点記億装置と、 (k)同一群の点列内の隣接する最終接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
ときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最終接合点間を、直線、円
弧、区分的多項式で近似するデータ近似機構Bと、 (l)真円データと点列の群毎に前記の最終接合点の座
標と隣接する最終接合点の間を近似する関数のパラメー
タとを記憶する圧縮データ記憶機構と、 (m)記憶された圧縮データを入力し真円データと点列
の群毎の最終接合点の座標と隣接する最終接合点の間
近似する関数パラメータを得て輪郭線を再生する輪郭
再生機構と、 (n)再生された輪郭線の内部の画素と外部の画素に異
なる値を対応させるロゴ・イラスト再生機構と、 (o)再生されたロゴ・イラスト出力する再生データ出
力機構を含むことを特徴とするロゴ・イラストデータ入
力出力装置。
1. A logo / illustration reading device that optically reads logo / illustration data and stores the logo / illustration data corresponding to a finite number of pixels arranged vertically and horizontally, and (b) a logo / illustration reading device that associates the logo / illustration data with pixels arranged vertically and horizontally. Logo
(C) a contour point sequence storage mechanism that stores the two-dimensional coordinates (X, Y) of the extracted contour line for each continuous group; Is approximated by a quadratic piecewise polynomial where t is an independent variable and x and y are dependent variables, and the number of dimensions of the piecewise polynomial until the approximation accuracy falls within a predetermined range. a data approximation mechanism a for obtaining the approximate polynomial in each group of repeated contour point sequence the least squares approximation with increasing, x by differential operation of (e) the approximate result,
(f) a perfect circle extraction mechanism for extracting a perfect circle from the curvature data for each group; and (g) a contour excluding the perfect circle. A temporary joining point position extracting mechanism for extracting a point having a curvature of infinity or a value larger than a certain value as a temporary joining point from the curvature data of the point sequence ; (h) one of the temporary joining points (the first (1 temporary joint point) outline point sequence
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
A method for selecting the near junction, the first fixed point, and the second fixed point
A step, and all of the first junction candidate and the second junction candidate
For all combinations, the first fixed point and the first joint point
The four points of the candidate, the second joint point candidate, and the second fixed point are
The first joint point based on the smoothness of the line connecting
Means for determining the degree of complementarity of the complement;
Optimum connection alternative to the first temporary connection point by selecting a connection point candidate
Maintained and optimal junction extraction mechanism having a means to consent, is (i) approximation accuracy without it from the optimum junction is two or more arc start point to the straight line or a continuous two or more consecutive An unnecessary joint removal mechanism that finds unnecessary unnecessary joints and removes them and integrates a straight line or a circular arc; and (j) a final joint notation that stores the optimal joints left unremoved as final joints. billion devices and, (k) a straight line between the adjacent final junction point in point sequence of the same group, independent variable t when is approximated by an arc of the order which at a predetermined approximation accuracy is not obtained, x, y between the final junction point approximating approximation accuracy in quadratic piecewise polynomial that is a dependent variable are adjacent repeat the least square approximation with increasing number of dimensions of the second-order piecewise polynomial to within a predetermined value Data approximator for approximating by linear, arc, piecewise polynomial And B, the compressed data storage mechanism for storing the parameters of the function that approximates between the final junction adjacent to (l) the final junction point coordinates for each group of circularity data and point sequence, (m) a contour reproducing mechanism for reproducing the contour to obtain the parameters of the function that approximates between the final junction point and the adjacent final junction point coordinates for each group of inputs the stored compressed data has been perfect circle data and a sequence of points, (N) a logo / illustration reproducing mechanism for associating different values to pixels inside and outside the reproduced outline, and (o) a reproduction data output mechanism for outputting the reproduced logo / illustration. Logo / illustration data input / output device.
【請求項2】 (a)光学的にロゴ・イラストフォント
データを読み取り、縦横に有限個並ぶ画素に対応させて
記憶するロゴ・イラスト読み取り装置と、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出する輸郭線抽出機構と、 (c)抽出された輪郭線の2次元座標(X、Y)を連続
する群毎に記憶する輪郭点列記憶機構と、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求めるデータ近似機構Aと、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求める曲率
演算機構と、 (f)群毎の曲率のデータから真円を抽出する真円抽出
機構と、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出する仮接合点位置抽出機構と、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択する手
段と、前記第1接合点候補と前記第2接合点候補のすべ
ての組合せについて、前記第1固定点と前記第1接合点
候補と前記第2接合点候補と前記第2固定点の4点を最
も滑らかに結ぶ線の滑らかさに基づき前記第1接合点候
補の適合度を求める手段と、最も適合度の高い前記第1
接合点候補を選択して前記第1仮接合点に代わる最適接
合点とする手段とを有する最適接合点抽出機構と、 (k)同一群の点列内の隣接する最適接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
ときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最適接合点間を、直線、円
弧、区分的多項式で近似するデータ近似機構Bと、 (l)真円データと点列の群毎に前記の最適接合点の座
標と隣接する最適接合点間を近似する関数のパラメー
タとを記憶する圧縮データ記憶機構と、 (m)記憶された圧縮データを入力し真円データと点列
の群毎の最適接合点の座標と隣接する最適接合点の間
近似する関数パラメータを得て輪郭線を再生する輸郭
再生機構と、 (n)再生された輪郭線の内部の画素と、外部の画素に
異なる値を対応させるロゴ・イラスト再生機構と、 (o)再生されたロゴ・イラストを出力する再生データ
出力機構を含むことを特徴とするロゴ・イラストデータ
入力出力装置。
2. (a) a logo / illustration reading device that optically reads logo / illustration font data and stores the font / illustration font data in correspondence with a finite number of pixels arranged vertically and horizontally; Logo
A contour line extraction mechanism for extracting a contour line of an illustration; (c) a contour point sequence storage mechanism for storing two-dimensional coordinates (X, Y) of the extracted contour line for each continuous group; Is approximated by a quadratic piecewise polynomial where t is an independent variable and x and y are dependent variables, and the number of dimensions of the piecewise polynomial until the approximation accuracy falls within a predetermined range. a data approximation mechanism a for obtaining the approximate polynomial in each group of repeated contour point sequence the least squares approximation with increasing, x by differential operation of (e) the approximate result,
(f) a perfect circle extraction mechanism for extracting a perfect circle from the curvature data for each group; and (g) a contour excluding the perfect circle. A temporary joining point position extracting mechanism for extracting a point having a curvature of infinity or a value larger than a certain value as a temporary joining point from the curvature data of the point sequence ; (h) one of the temporary joining points (the first (1 temporary joint point) outline point sequence
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
A method for selecting the near junction, the first fixed point, and the second fixed point
A step, and all of the first junction candidate and the second junction candidate
For all combinations, the first fixed point and the first joint point
The four points of the candidate, the second joint point candidate, and the second fixed point are
The first joint point based on the smoothness of the line connecting
Means for determining the degree of complementarity of the complement;
Optimum connection alternative to the first temporary connection point by selecting a connection point candidate
The optimum junction extraction mechanism having a means for the consent, not a straight line between the optimum junction, is approximated by an arc of the order which at a predetermined approximation accuracy obtained adjacent in (k) point sequence of the same group independent variable t is time, x, a least squares approximation with increasing number of dimensions of the second-order piecewise polynomial up approximation accuracy is approximated by a quadratic piecewise polynomial that is a dependent variable y is within a predetermined value between the optimum junction to repeatedly adjacent straight, adjacent arc, a data approximation mechanism B approximated by piecewise polynomial, and (l) said optimum bonding point coordinates for each group of circularity data and point sequence a compressed data storage mechanism for storing the parameters of the function that approximates between the optimum junction, adjacent (m) and the stored optimal junction of the coordinates of each group enter the compressed data perfect circle data and point sequence to obtain the parameters of the function that approximates between the optimum junction contour lines (N) a logo / illustration playback mechanism for associating pixels inside the played contour with different values for external pixels; and (o) outputting the played logo / illustration. A logo / illustration data input / output device comprising a reproduction data output mechanism.
【請求項3】 (a)光学的にロゴ・イラストデータを
読み取り、縦横に有限個並ぶ画素に対応させて記憶する
ロゴ・イラスト読み取り装置と、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出する輸郭線抽出機構と、 (c)抽出された輪郭線の2次元座標(X、Y)を連続
する群毎に記憶する輪郭点列記憶機構と、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求めるデータ近似機構Aと、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求める曲率
演算機構と、 (f)群毎の曲率のデータから真円を抽出する真円抽出
機構と、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出する仮接合点位置抽出機構と、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択する手
段と、前記第1接合点候補と前記第2接合点候補のすべ
ての組合せについて、前記第1固定点と前記第1接合点
候補と前記第2接合点候補と前記第2固定点の4点を最
も滑らかに結ぶ線の滑らかさに基づき前記第1接合点候
補の適合度を求める手段と、最も適合度の高い前記第1
接合点候補を選択して前記第1仮接合点に代わる最適接
合点とする手段とを有する最適接合点抽出機構と、 (i)連続する二以上の直線又は連続する二以上の円弧
の始点である最適接合点の中からそれがなくても近似精
度が保たれるような不要な最適接合点を見いだしこれを
除去し直線又は円弧を統合する不要接合点除去機構と、 (j)除去されずに残った最適接合点を最終接合点とし
て記憶する最終接合点記億装置と、 (k)同一群の点列内の隣接する接合点間を直線、円
弧の順で近似しこれで所定の近似精度が得られないとき
はtを独立変数、x、yを従属変数とした2次の区分的
多項式で近似し近似精度が所定の値に収まるまで2次
区分的多項式の次元数を増加させながら最小二乗近似を
繰り返して隣接する接合点間を、直線、円弧、区分的
多項式で近似するデータ近似機構Bと、 (l)真円データと点列の群毎に前記の最終接合点の座
標と隣接する最終接合点間を近似する関数のパラメー
タを記憶する圧縮データ記憶機構と、 (m)記憶された圧縮データを入力し真円データと点列
の群毎の最終接合点の座標と隣接する最終接合点の間
近似する関数パラメータを得て輪郭線を再生する輪郭
再生機構と、 (n)再生された輪郭線の内部の画素と、外部の画素に
異なる値を対応させるロゴ・イラスト再生機構と、 (o)再生されたロゴ・イラストを出力する再生データ
出力機構を含むことを特徴とするロゴ・イラストデータ
入力出力装置。
3. A logo / illustration reading device that optically reads logo / illustration data and stores the logo / illustration data in correspondence with a finite number of pixels arranged vertically and horizontally, and (b) a logo / illustration reading device that associates the logo / illustration data with pixels arranged vertically and horizontally. Logo
A contour line extraction mechanism for extracting a contour line of an illustration; (c) a contour point sequence storage mechanism for storing two-dimensional coordinates (X, Y) of the extracted contour line for each continuous group; Is approximated by a quadratic piecewise polynomial where t is an independent variable and x and y are dependent variables, and the number of dimensions of the piecewise polynomial until the approximation accuracy falls within a predetermined range. a data approximation mechanism a for obtaining the approximate polynomial in each group of repeated contour point sequence the least squares approximation with increasing, x by differential operation of (e) the approximate result,
(f) a perfect circle extraction mechanism for extracting a perfect circle from the curvature data for each group; and (g) a contour excluding the perfect circle. A temporary joining point position extracting mechanism for extracting a point having a curvature of infinity or a value larger than a certain value as a temporary joining point from the curvature data of the point sequence ; (h) one of the temporary joining points (the first (1 temporary joint point) outline point sequence
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
A method for selecting the near junction, the first fixed point, and the second fixed point
A step, and all of the first junction candidate and the second junction candidate
For all combinations, the first fixed point and the first joint point
The four points of the candidate, the second joint point candidate, and the second fixed point are
The first joint point based on the smoothness of the line connecting
Means for determining the degree of complementarity of the complement;
Optimum connection alternative to the first temporary connection point by selecting a connection point candidate
Maintained and optimal junction extraction mechanism having a means to consent, is (i) approximation accuracy without it from the optimum junction is two or more arc start point to the straight line or a continuous two or more consecutive An unnecessary joint removal mechanism that finds unnecessary unnecessary joints and removes them and integrates a straight line or a circular arc; and (j) a final joint notation that stores the optimal joints left unremoved as final joints. billion a device, the independent variable, x, y and t is the time is not obtained straight line approximated by an arc of the order which at a predetermined approximation accuracy between the junction points adjacent in the sequence of points (k) the same group the junctions approximation accuracy is approximated by a quadratic piecewise polynomial that is a dependent variable are adjacent repeat the least square approximation with increasing number of dimensions of the secondary <br/> piecewise polynomial to within a predetermined value Data approximation mechanism B for approximating the space with a straight line, arc, or piecewise polynomial The compressed data storage mechanism for storing the parameters of the function that approximates between the final junction adjacent to (l) the final junction point coordinates for each group of circularity data and point sequence, stored (m) a contour reproducing mechanism for reproducing the contour to obtain the parameters of the function that approximates between the final junction point and the adjacent end junction of the coordinates of each group enter the compressed data perfect circle data and point sequence, (n) A logo / illustration playback mechanism for associating pixels inside the played back contour line with different values for the outside pixels; and (o) a playback data output mechanism for outputting the played back logo / illustration. Logo / illustration data input / output device.
【請求項4】 (a)光学的にロゴ・イラストデータを
読み取り、縦横に有限個並ぶ画素に対応させて記憶する
ロゴ・イラスト読み取り装置と、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出する輪郭線抽出機構と、 (c)抽出された輪郭線の2次元座標(X、Y)を連続
する群毎に記憶する輸郭点列記憶機構と、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求めるデータ近似機構Aと、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求める曲率
演算機構と、 (f)群毎の曲率のデータから真円を抽出する真円抽出
機構と、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出する仮接合点位置抽出機構と、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択する手
段と、前記第1接合点候補と前記第2接合点候補のすべ
ての組合せについて、前記第1固定点と前記第1接合点
候補と前記第2接合点候補と前記第2固定点の4点を最
も滑らかに結ぶ線の滑らかさに基づき前記第1接合点候
補の適合度を求める手段と、最も適合度の高い前記第1
接合点候補を選択して前記第1仮接合点に代わる最適接
合点とする手段とを有する最適接合点抽出機構と、 (k)同一群の点列内の隣接する最適接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
ときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最適接合点間を、直線、円
弧、区分的多項式で近似するデータ近似機構Bと、 (l)真円データと点列の群毎に前記の最適接合点の座
標と隣接する最適接合点の間を近似する関数のパラメー
タを記憶する圧縮データ記憶機構と、 (m)記憶された圧縮データを入力し真円データと点列
の群毎の最適接合点の座標と隣接する最適接合点の間
近似する関数パラメータを得て輪郭線を再生する輪郭
再生機構と、 (n)再生された輪郭線の内部の画素と外部の画素に異
なる値を対応させるロゴ・イラスト再生機構と、 (o)再生されたロゴ・イラストを出力する再生データ
出力機構を含むことを特徴とするロゴ・イラストデータ
入力出力装置。
4. A logo / illustration reading device that optically reads logo / illustration data and stores the logo / illustration data in correspondence with a finite number of pixels arranged vertically and horizontally, and (b) a logo / illustration reading device that associates the logo / illustration data with pixels arranged vertically and horizontally. Logo
A contour line extraction mechanism for extracting an illustration of the outline, and輸郭line series of points storage mechanism for storing for each group successive (c) 2-dimensional coordinates of the extracted contour lines (X, Y), (d ) The X and Y coordinates of the contour point sequence for each group are approximated by a quadratic piecewise polynomial in which t is an independent variable and x and y are dependent variables, and the dimension of the piecewise polynomial until the approximation accuracy falls within a predetermined range. A data approximation mechanism A for repeating the least square approximation while increasing the number to obtain an approximate polynomial for each group of contour point sequences; and (e) differentiating the above approximation results to obtain x,
(f) a perfect circle extraction mechanism for extracting a perfect circle from the curvature data for each group; and (g) a contour excluding the perfect circle. A temporary joining point position extracting mechanism for extracting a point having a curvature of infinity or a value larger than a certain value as a temporary joining point from the curvature data of the point sequence ; (h) one of the temporary joining points (the first (1 temporary joint point) outline point sequence
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
A method for selecting the near junction, the first fixed point, and the second fixed point
A step, and all of the first junction candidate and the second junction candidate
For all combinations, the first fixed point and the first joint point
The four points of the candidate, the second joint point candidate, and the second fixed point are
The first joint point based on the smoothness of the line connecting
Means for determining the degree of complementarity of the complement;
Optimum connection alternative to the first temporary connection point by selecting a connection point candidate
The optimum junction extraction mechanism having a means for the consent, not a straight line between the optimum junction, is approximated by an arc of the order which at a predetermined approximation accuracy obtained adjacent in (k) point sequence of the same group independent variable t is time, x, a least squares approximation with increasing number of dimensions of the second-order piecewise polynomial up approximation accuracy is approximated by a quadratic piecewise polynomial that is a dependent variable y is within a predetermined value between the optimum junction to repeatedly adjacent straight, adjacent arc, a data approximation mechanism B approximated by piecewise polynomial, and (l) said optimum bonding point coordinates for each group of circularity data and point sequence A compressed data storage mechanism for storing a parameter of a function approximating between the optimal joint points ; and (m) inputting the stored compressed data to form an optimal point adjacent to the coordinates of the optimal joint point for each group of the perfect circle data and the point sequence. re contours to give the parameters of the function that approximates between the junction (N) a logo / illustration playback mechanism for associating different values to the pixels inside and outside the reproduced outline, and (o) playback data output for outputting the played logo / illustration A logo / illustration data input / output device characterized by including a mechanism.
【請求項5】 (a)光学的にロゴ・イラストデータを
読み取り、縦横に有限個並ぶ画素に対応させてデータを
記憶し、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出し、 (c)抽出された輪郭線の2次元座標(X,Y)を連続
する群毎に記憶し、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求め、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求め、 (f)群毎の曲率のデータから真円を抽出し、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出し、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択し、前
記第1接合点候補と前記第2接合点候補のすべての組合
せについて、前記第1固定点と前記第1接合点候補と前
記第2接合点候補と前記第2固定点の4点を最も滑らか
に結ぶ線の滑らかさに基づき前記第1接合点候補の適合
度を求め、最も適合度の高い前記第1接合点候補を選択
して前記第1仮接合点に代わる最適接合点とし、 (k)同一群の点列内の隣接する最適接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
いときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最適接合点間を、直線、円
弧、区分的多項式で近似し、 (l)真円データと点列の群毎に前記の最適接合点の座
標と隣接する最適接合点の間を近似する関数のパラメー
タを記憶することによってロゴ・イラストデータを入力
し、 (m)他方ロゴ・イラストを出力するときは、記憶され
た真円データと点列の群毎の最適接合点の座標と隣接
最適接合点の間を近似する関数パラメータを出力
し、これからロゴ・イラストの輪郭線を再生し、 (n)再生された輪郭線の内部の画素と外部の画素に異
なる値を対応させることによりロゴ・イラストを再生
し、 (o)再生されたロゴ・イラストを出力することを特徴
とするロゴ・イラストデータ入力出力方法。
5. A logo / illustration data that is optically read, data is stored in correspondence with a finite number of pixels arranged vertically and horizontally, and (b) a logo / illustration data that is read in association with pixels arranged vertically and horizontally.
(C) storing the two-dimensional coordinates (X, Y) of the extracted contour line for each continuous group; and (d) X, Y coordinates of the contour point sequence for each group. Is approximated by a quadratic piecewise polynomial where t is an independent variable and x and y are dependent variables, and the least squares approximation is repeated while increasing the number of dimensions of the piecewise polynomial until the approximation accuracy falls within a predetermined range. obtains an approximate polynomial in each group, x by differential operation of (e) the approximate result,
The curvature at each point in the point sequence for each group in the y space is obtained. (f) A perfect circle is extracted from the curvature data for each group. (g) Infinity is obtained from the curvature data of the contour point sequence excluding the perfect circle. Or a point having a curvature greater than a certain value is extracted as a temporary junction, and (h ) a contour point sequence of one of the temporary junctions (first temporary junction)
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
Select the neighboring junction, the first fixed point, and the second fixed point, and
All combinations of the first junction candidate and the second junction candidate
The first fixed point, the first junction candidate,
The four points of the second joint point candidate and the second fixed point are the most smooth.
Of the first candidate junction based on the smoothness of the line connecting
Of the first junction point with the highest degree of fitness
Are to the optimum junction in place of the first temporary junction, obtained (k) a straight line between adjacent optimal junction in point sequence of the same group is approximated by an arc of the order which at a predetermined approximation accuracy independent variable t is the absence, x, least squares approximation with increasing number of dimensions of the second-order piecewise polynomial up approximation accuracy is approximated by a quadratic piecewise polynomial that is a dependent variable y is within a predetermined value between the optimum junction adjacent repeatedly, lines, arcs, and approximated by a piecewise polynomial, the optimal junction adjacent to (l) above the optimum junction point coordinates for each group of circularity data and point sequence enter the logo illustration data by storing the parameters of the function that approximates between, (m) when outputting the other logo illustration, the optimum junction of each group of the stored circularity data and point sequence It is adjacent to the coordinates
Outputting the parameters of the function that approximates between that optimum junction, now play the outline of the logo illustration, be made to correspond to different values within the pixel and the pixels outside the (n) reproduced contour A logo / illustration data input / output method characterized by reproducing a logo / illustration by (o) and outputting the reproduced logo / illustration.
【請求項6】 (a)光学的にロゴ・イラストデータを
読み取り、縦横に有限個並ぶ画素に対応させてデータを
記憶し、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出し、 (c)抽出された輪郭線の2次元座標(X,Y)を連続
する群毎に記憶し、 (d)前記の群毎の輪郭点列のX、Y座標をtを独立変
数、xとyを従属変数とする2次の区分的多項式で近似
し、近似精度が所定範囲になるまで区分的多項式の次元
数を増やしながら最小二乗近似を繰り返し輪郭点列の群
毎の近似多項式を求め、 (e)前記の近似結果を微分演算することによってx、
y空間での群毎の点列の各点における曲率を求め、 (f)群毎の曲率のデータから真円を抽出し、(g)真円を除く輪郭点列 の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出し、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択し、前
記第1接合点候補と前記第2接合点候補のすべての組合
せについて、前記第1固定点と前記第1接合点候補と前
記第2接合点候補と前記第2固定点の4点を最も滑らか
に結ぶ線の滑らかさに基づき 前記第1接合点候補の適合
度を求め、最も適合度の高い前記第1接合点候補を選択
して前記第1仮接合点に代わる最適接合点とし、 (i)連続する二以上の直線又は連続する二以上の円弧
の始点である最適接合点の中からそれがなくても近似精
度が保たれるような不要な最適接合点を見いだしこれを
除去し直線又は円弧を統合し、 (j)除去されずに残った最適接合点を最終接合点とし
て記憶し、 (k)同一群の点列内の隣接する最終接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
ときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最終接合点間を、直線、円
弧、区分的多項式で近似し、 (l)真円データと点列の群毎に前記の最終接合点の座
標と隣接する最終接合点間を近似する関数のパラメー
タとを記憶することによってロゴ・イラストデータを入
力し、 (m)他方ロゴ・イラストを出力するときは、記憶され
た真円データと点列の群毎の最終接合点の座標と隣接
最終接合点の間を近似する関数パラメータを出力
し、これからロゴ・イラストの輪郭線を再生し、 (n)再生された輪郭線の内部の画素と外部の画素に異
なる値を対応させることによりロゴ・イラストを再生
し、 (o)再生されたロゴ・イラストを出力することを特徴
とするロゴ・イラストデータ入力出力方法。
6. A logo / illustration data that is optically read, data is stored in correspondence with a finite number of pixels arranged vertically and horizontally, and b) a logo / illustration data read in association with pixels arranged vertically and horizontally.
(C) storing the two-dimensional coordinates (X, Y) of the extracted contour line for each continuous group; and (d) X, Y coordinates of the contour point sequence for each group. Is approximated by a quadratic piecewise polynomial where t is an independent variable and x and y are dependent variables, and the least squares approximation is repeated while increasing the number of dimensions of the piecewise polynomial until the approximation accuracy falls within a predetermined range. obtains an approximate polynomial in each group, x by differential operation of (e) the approximate result,
The curvature at each point in the point sequence for each group in the y space is obtained. (f) A perfect circle is extracted from the curvature data for each group. (g) Infinity is obtained from the curvature data of the contour point sequence excluding the perfect circle. Or a point having a curvature greater than a certain value is extracted as a temporary junction, and (h ) a contour point sequence of one of the temporary junctions (first temporary junction)
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
Select the neighboring junction, the first fixed point, and the second fixed point, and
All combinations of the first junction candidate and the second junction candidate
The first fixed point, the first junction candidate,
The four points of the second joint point candidate and the second fixed point are the most smooth.
Of the first candidate junction based on the smoothness of the line connecting
Of the first junction point with the highest degree of fitness
(I) Approximation accuracy is maintained even if there is no optimum joining point, which is the starting point of two or more continuous straight lines or two or more continuous arcs, instead of the first temporary joining point. Unnecessary optimal joints such as sagging are found and removed, and a straight line or an arc is integrated. (J) The optimal joints remaining without being removed are stored as final joints. (K) Point sequence of the same group between adjacent final junction point of the inner straight line approximated by an arc of the order independent variable t when not obtained predetermined approximation accuracy in this, x, in second-order piecewise polynomial as the dependent variable y between the final junction approximation to the approximation accuracy is adjacent repeated a least squares approximation with increasing number of dimensions of the second-order piecewise polynomial to within a predetermined value, approximate straight lines, arcs, piecewise polynomial, (L) The coordinates of the above-mentioned final junction point and the neighborhood for each group of perfect circle data and point sequence Enter the logo illustration data by storing the parameters of the function that approximates between the final junction point that, (m) when outputting the other logo illustration, group of stored circularity data and point sequence It is adjacent to the final junction point in each coordinate
Outputting the parameters of the function that approximates between that final junction, now play the outline of the logo illustration, be made to correspond to different values within the pixel and the pixels outside the (n) reproduced contour A logo / illustration data input / output method characterized by reproducing a logo / illustration by (o) and outputting the reproduced logo / illustration.
【請求項7】 (a)光学的にロゴ・イラストフォント
データを読み取り、縦横に有限個並ぶ画素に対応させて
データを記憶し、 (b)縦横に並ぶ画素に対応付けて読み取られたロゴ・
イラストの輪郭線を抽出し、 (c)抽出された輪郭線の2次元座標(X、Y)を連続
する群毎に記憶し、 (e)X、Y空間での群毎の点列の各点における離散的
曲率を求め、 (f)群毎の曲率のデータから真円を抽出し、 (g)真円を除く輪郭点列の曲率のデータから無限大で
あるかある一定値より大きい値の曲率を持つ点を仮接合
点として抽出し、 (h)前記仮接合点の1つ(第1仮接合点)の輪郭点列
上の前後所定個の点の1つを第1接合点候補とし、前記
第1仮接合点から所定半径内で同一輪郭点列上にある他
の仮接合点の1つ(近傍接合点)の輪郭点列上の前後所
定個の点の1つを第2接合点候補とし、同一輪郭点列上
で点列走査方向に第1固定点と前記第1仮接合点と前記
近傍接合点と第2固定点がこの順で一列状に並ぶように
前記近傍接合点と第1固定点と第2固定点を選択し、前
記第1接合点候補と前記第2接合点候補のすべての組合
せについて、前記第1固定点と前記第1接合点候補と前
記第2接合点候補と前記第2固定点の4点を最も滑らか
に結ぶ線の滑らかさに基づき前記第1接合点候補の適合
度を求め、最も適合度の高い前記第1接合点候補を選択
して前記第1仮接合点に代わる最適接合点とし、 (i)連続する二以上の直線又は連続する二以上の円弧
の始点である最適接合点の中からそれがなくても近似精
度が保たれるような不要な最適接合点を見いだしこれを
除去し直線又は円弧を統合し、 (j)除去されずに残った最適接合点を最終接合点とし
て記憶し、 (k)同一群の点列内の隣接する最終接合点間を直
線、円弧の順で近似しこれで所定の近似精度が得られな
ときはtを独立変数、x、yを従属変数とした2次の
区分的多項式で近似し近似精度が所定の値に収まるまで
2次区分的多項式の次元数を増加させながら最小二乗
近似を繰り返して隣接する最終接合点間を、直線、円
弧、区分的多項式で近似し、 (l)真円データと点列の群毎に前記の最終接合点の座
標と隣接する最終接合点間を近似する関数のパラメー
タとを記憶することによってロゴ・イラストフォントデ
ータを入力し、 (m)他方ロゴ・イラストを出力するときは、記憶され
た真円データと点列の群毎の最終接合点の座標と隣接
最終接合点の間を近似する関数パラメータを出力
し、これからロゴ・イラストフォントの輪郭線を再生
し、 (n)再生された輪郭線の内部の画素と、外部の画素に
異なる値を対応させることによりロゴ・イラストを再生
し、 (o)再生されたロゴ・イラストフォントをロゴ・イラ
ストとして出力することを特徴とするロゴ・イラストデ
ータ入力出力方法。
7. A logo / illustration font data is optically read, and data is stored in correspondence with a finite number of pixels arranged vertically and horizontally. (B) A logo / illustration font read in association with pixels arranged vertically and horizontally is provided.
(C) storing the two-dimensional coordinates (X, Y) of the extracted contour for each continuous group; and (e) storing a point sequence for each group in the X, Y space. Calculating a discrete curvature at a point; (f) extracting a perfect circle from the curvature data for each group; and (g) infinity or a value greater than a certain value from the curvature data of the contour point sequence excluding the perfect circle. (H ) a contour point sequence of one of the temporary connection points (first temporary connection point)
One of the predetermined number of points before and after the above is regarded as a first joining point candidate,
Others on the same contour point sequence within a predetermined radius from the first temporary joint point
Before and after on the outline point sequence of one of the temporary joint points (neighboring joint points)
One of the fixed points is regarded as a second joint point candidate, and on the same contour point sequence.
And the first fixed point, the first temporary joining point, and the
So that the neighboring junction and the second fixed point are arranged in a line in this order.
Select the neighboring junction, the first fixed point, and the second fixed point, and
All combinations of the first junction candidate and the second junction candidate
The first fixed point, the first junction candidate,
The four points of the second joint point candidate and the second fixed point are the most smooth.
Of the first candidate junction based on the smoothness of the line connecting
Of the first junction point with the highest degree of fitness
(I) Approximation accuracy is maintained even if there is no optimum joining point, which is the starting point of two or more continuous straight lines or two or more continuous arcs, instead of the first temporary joining point. Unnecessary optimal joints such as sagging are found and removed, and a straight line or an arc is integrated. (J) The optimal joints remaining without being removed are stored as final joints. (K) Point sequence of the same group between adjacent final junction point of the inner straight line approximated by an arc of the order independent variable t when not obtained predetermined approximation accuracy in this, x, in second-order piecewise polynomial as the dependent variable y between the final junction approximation to the approximation accuracy is adjacent repeated a least squares approximation with increasing number of dimensions of the second-order piecewise polynomial to within a predetermined value, approximate straight lines, arcs, piecewise polynomial, (L) The coordinates of the above-mentioned final junction point and the neighborhood for each group of perfect circle data and point sequence To enter a logo illustration font data by storing the parameters of the function that approximates between the final junction point, when outputting (m) to the other logo illustration, stored circularity data and point sequence It is adjacent to the coordinates of the final junction of each group
That between the final junction output parameters of the function that approximates, now play the outline of the logo illustration fonts, corresponding (n) and inner pixels of the reproduced contours, different values outside the pixel A logo / illustration data is reproduced by outputting the logo / illustration font by outputting the logo / illustration font as a logo / illustration.
JP4269646A 1992-09-01 1992-09-11 Logo / Illustration data input / output device and input / output method Expired - Fee Related JP2646476B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP4269646A JP2646476B2 (en) 1992-09-11 1992-09-11 Logo / Illustration data input / output device and input / output method
CN93117077A CN1033110C (en) 1992-09-01 1993-08-30 Input and output device of characters, logomarks, illustrations and input and output method of same
CA002105125A CA2105125C (en) 1992-09-01 1993-08-30 Apparatus and method for inputting, compressing and outputting characters, illustrations, drawings and logomarks
AU46008/93A AU656090B2 (en) 1992-09-01 1993-08-31 Apparatus and method for inputting, compressing and outputting characters, illustrations, drawings and logomarks
EP19930306856 EP0586219A3 (en) 1992-09-01 1993-08-31 Apparatus and method for image compression
US08/114,364 US5572605A (en) 1992-09-01 1993-09-01 Apparatus and method for inputting, compressing and outputting characters, illustrations, drawings and logomarks
KR1019930017344A KR0129505B1 (en) 1992-09-01 1993-09-01 Apparatus and method for image compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4269646A JP2646476B2 (en) 1992-09-11 1992-09-11 Logo / Illustration data input / output device and input / output method

Publications (2)

Publication Number Publication Date
JPH0696199A JPH0696199A (en) 1994-04-08
JP2646476B2 true JP2646476B2 (en) 1997-08-27

Family

ID=17475252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4269646A Expired - Fee Related JP2646476B2 (en) 1992-09-01 1992-09-11 Logo / Illustration data input / output device and input / output method

Country Status (1)

Country Link
JP (1) JP2646476B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3031613B2 (en) * 1996-11-12 2000-04-10 株式会社つくばソフト研究所 Color / shade image input / output device and input / output method
JP2942222B2 (en) * 1997-08-11 1999-08-30 株式会社つくばソフト研究所 Communication device for color images and grayscale images
JP2008092612A (en) 2006-09-29 2008-04-17 Nippon Densan Corp Manufacturing method for motor, motor, and recording disk drive
US8269775B2 (en) * 2008-12-09 2012-09-18 Qualcomm Incorporated Discarding of vertex points during two-dimensional graphics rendering using three-dimensional graphics hardware

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57159363A (en) * 1981-03-26 1982-10-01 Fujitsu Ltd Graphic information inputting system
JPS6049483A (en) * 1983-08-29 1985-03-18 Matsushita Electric Ind Co Ltd Approximate coding device for handwritten linear graphic
JPS61221979A (en) * 1985-03-28 1986-10-02 Fujitsu Ltd Graphic processing system
JPS6295686A (en) * 1985-10-21 1987-05-02 Sumitomo Electric Ind Ltd Segment approximating method for ridgeline of object in picture
JPS62184572A (en) * 1986-02-10 1987-08-12 Fujitsu Ltd Retrieving system for dictionary of cooperative compound word in word division device
JPS62205479A (en) * 1986-03-05 1987-09-10 Daikin Ind Ltd Specific graphic generating circuit of crt display device
JPS62274372A (en) * 1986-05-22 1987-11-28 Fujitsu Ltd Compression system for pattern information quantity
JP2521756B2 (en) * 1987-06-04 1996-08-07 富士通株式会社 Pattern data generator
JPH01283589A (en) * 1988-05-11 1989-11-15 Mitsubishi Electric Corp Character string clip processing system
JPH03105574A (en) * 1989-09-20 1991-05-02 Honda Motor Co Ltd Image processor and image processing method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
電子情報通信学会技術研究報告PRU91−54 P.21−28(平成3年9月)
電子情報通信学会論文誌D VOL.J70−D NO.6 P.1164−1172(昭和62年6月)
電子情報通信学会論文誌D−II VOL.J73−D−II VOL.9 P.1448−1457(平成2年9月)

Also Published As

Publication number Publication date
JPH0696199A (en) 1994-04-08

Similar Documents

Publication Publication Date Title
KR0129505B1 (en) Apparatus and method for image compression
US5553217A (en) Document layout using tiling
US20050093875A1 (en) Synthesis of progressively-variant textures and application to arbitrary surfaces
CN110163208B (en) Scene character detection method and system based on deep learning
JPS63145577A (en) Pattern data generating method
JP2608571B2 (en) Apparatus and method for vectorizing input scanned image data
US6014471A (en) Apparatus and method for retouching a digital representation of a color image
JP2646475B2 (en) Character data input / output device and input / output method
JPH0256708B2 (en)
JP2646476B2 (en) Logo / Illustration data input / output device and input / output method
JPH0221024B2 (en)
US20020006224A1 (en) Computer automated process for vectorization of raster images
JPH08194716A (en) Picture processing method and its device
JPH06348837A (en) Dividing/reading/compressing/storage device and synthesizing/outputting device for character and graphic
JP2007109177A (en) Image processing apparatus, its control method, and program
JP3647075B2 (en) Image search method and apparatus
JPH06175638A (en) Method and device for character generation
JP2559359B2 (en) Image structure storage method and image registration apparatus
JP2701194B2 (en) Iron print making equipment
JP2954434B2 (en) Image processing method and apparatus
JP2006091790A (en) Pattern inspecting method
KR19990069959A (en) Image data retrieval method
Tavakoli A new approach to pattern recognition
KR900002811B1 (en) Method for compressing character or pictorial image data
JP2857260B2 (en) Judgment method of rectangular area

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090509

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees