JP3194779B2 - Filling device - Google Patents

Filling device

Info

Publication number
JP3194779B2
JP3194779B2 JP11728292A JP11728292A JP3194779B2 JP 3194779 B2 JP3194779 B2 JP 3194779B2 JP 11728292 A JP11728292 A JP 11728292A JP 11728292 A JP11728292 A JP 11728292A JP 3194779 B2 JP3194779 B2 JP 3194779B2
Authority
JP
Japan
Prior art keywords
point
contour
points
memory
singular
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
JP11728292A
Other languages
Japanese (ja)
Other versions
JPH05314271A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP11728292A priority Critical patent/JP3194779B2/en
Publication of JPH05314271A publication Critical patent/JPH05314271A/en
Application granted granted Critical
Publication of JP3194779B2 publication Critical patent/JP3194779B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字や図形などを表示す
る画像処理システムにおける輪郭線内部を塗りつぶす塗
りつぶし装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a painting apparatus for painting the inside of a contour in an image processing system for displaying characters, figures, and the like.

【0002】[0002]

【従来の技術】文字や図形などを表示する画像処理シス
テムにおいては、文字や図形など輪郭線の内部を塗りつ
ぶして文字や図形を表示する塗りつぶし装置が使用され
ている。
2. Description of the Related Art In an image processing system for displaying characters and figures, a filling device for displaying characters and figures by filling the inside of outlines such as characters and figures is used.

【0003】従来の輪郭線の内部を塗りつぶす装置とし
ては、例えば特公平2−201692号公報に記載され
ている方法が使用されていた。以下、図10を参照して
従来例を説明する。図10は三角形ABCを塗りつぶし
て表示させる場合の説明図であり、塗りつぶし装置に
は、図10(a)および(b)に対応するメモリaおよ
びメモリbを備えて輪郭線の情報を記録させる。
As a conventional device for painting the inside of a contour line, for example, a method described in Japanese Patent Publication No. 2-201692 has been used. Hereinafter, a conventional example will be described with reference to FIG. FIG. 10 is an explanatory diagram in the case where the triangle ABC is displayed by being painted out. The painting-out device is provided with memories a and b corresponding to FIGS. 10A and 10B and records information of the outline.

【0004】すなわち、三角形ABCの輪郭線に対応す
るX軸およびY軸座標データと、輪郭線の属性を表わす
“1”または“0”のデータを前記メモリaおよびbに
記録する。図10の場合は、メモリaには、図10
(a)で示されるように、辺ABとACの属性は
“1”、辺BCは“0”が、またメモリbには、図10
(b)で示されるように、辺ABの属性は“0”で、辺
ACおよびBCは“0”が記録されている。
That is, X-axis and Y-axis coordinate data corresponding to the contour of the triangle ABC and "1" or "0" data representing the attribute of the contour are recorded in the memories a and b. In the case of FIG.
As shown in FIG. 10A, the attributes of the sides AB and AC are “1”, the side BC is “0”, and the memory b has the attributes shown in FIG.
As shown in (b), the attribute of the side AB is “0”, and “0” is recorded in the sides AC and BC.

【0005】そこで、塗りつぶし処理は、先ずメモリa
に記録されている属性が“1”で、メモリbに記録され
ている属性が“0”の場合は塗りつぶし開始点、逆に、
メモリaの属性が“0”で、メモリbの属性が“1”の
場合は塗りつぶし終了点、メモリaおよびbの属性が共
に“1”の場合は塗りつぶし始終点として、塗りつぶし
開始点と同一X軸上の終了点までの各画素を塗りつぶ
し、始終点の場合は1点のみの塗りつぶしで三角形AB
Cの塗りつぶしを行なわせていた。
Therefore, the filling process is performed first in the memory a.
Is “1” and the attribute recorded in the memory b is “0”, the painting start point is set.
When the attribute of the memory a is “0” and the attribute of the memory b is “1”, the filling end point is determined, and when the attributes of the memories a and b are both “1”, the filling start and end points are determined to be the same as the X. Fill each pixel up to the end point on the axis, and fill the triangle AB with only one point for the start and end points
C had been painted.

【0006】[0006]

【発明が解決しようとする課題】前述したように、従来
の塗りつぶし装置は、塗りつぶす文字または図形の輪郭
線座標データとその属性を示すデータを記録した2個の
メモリを備え、塗りつぶしに際しては、記録されたデー
タの属性の組合せによって塗りつぶし開始点、塗りつぶ
し終了点および塗りつぶし始終点を判別して、輪郭線の
内部を塗りつぶすようにしていた。
As described above, the conventional painting apparatus has two memories for recording outline coordinate data of a character or figure to be painted and data indicating its attributes. A paint start point, a paint end point, and a paint start and end point are determined based on a combination of the attributes of the obtained data, and the inside of the outline is painted.

【0007】このため、文字や図形の輪郭線座標データ
および属性を示すデータが格納される2個のメモリは非
常に膨大な記録容量を有するメモリが必要であった。本
発明は、輪郭線描画情報より直接塗りつぶし情報を生成
し、装置構成を簡易化するよう改良した塗りつぶし装置
を提供することを目的とする。
For this reason, the two memories for storing the outline coordinate data of characters and figures and the data indicating the attributes required a memory having an extremely large recording capacity. SUMMARY OF THE INVENTION An object of the present invention is to provide a painting apparatus improved by directly generating painting information from contour drawing information and simplifying the apparatus configuration.

【0008】[0008]

【課題を解決するための手段】前述の課題を解決するた
めに本発明が採用した手段を説明する。輪郭線の特徴点
と特徴点間を結ぶ近似式情報に基づいて輪郭線を算出
し、輪郭線の内部を塗りつぶす塗りつぶし装置であっ
て、前記輪郭線の特徴点と特徴点間を結ぶ近似式情報に
基づいて輪郭線の輪郭点を算出する輪郭点算出部と、前
記輪郭点算出部で算出された連続する3個の輪郭点より
始終点,特異点および空白点を分類する輪郭点分類部
と、前記輪郭点分類部で分類された特異点を記録する特
異点記録メモリと、前記輪郭点分類部で分類された始終
点を表示部に対応して展開して記録するビットマップメ
モリと、前記ビットマップメモリに記録された始終点間
のビットを塗りつぶし、前記特異点記録メモリに記録さ
れている特異点に対応するビットマップメモリのビット
を塗りつぶす塗りつぶし処理部と、を備える。
Means adopted by the present invention to solve the above-mentioned problems will be described. A filling device for calculating a contour line based on approximate expression information connecting feature points of the contour line and filling the inside of the contour line, wherein approximate formula information connecting the feature point of the contour line and the feature point is provided. A contour point calculating unit that calculates a contour point of a contour line based on the contour point; a contour point classifying unit that classifies a starting point, an ending point, a singular point, and a blank point from three consecutive contour points calculated by the contour point calculating unit; A singularity recording memory for recording singularities classified by the contour point classifying unit, a bitmap memory for developing and recording the start and end points classified by the contour point classifying unit in correspondence with a display unit, and A paint processing unit that paints bits between the start and end points recorded in the map memory and paints bits in the bit map memory corresponding to the singular points recorded in the singular point recording memory.

【0009】[0009]

【作用】輪郭点算出部は、輪郭線の特徴点と特徴点を結
ぶ近似式情報に基づいて輪郭線を構成する輪郭線を算出
する。輪郭点分類部は、前記輪郭点算出部で算出された
連続する3個の輪郭点より、輪郭点を始終点,特異点お
よび空白点のいずれかに分類する。
The outline point calculation unit calculates an outline forming the outline based on approximate expression information connecting the characteristic points of the outline. The contour point classifying section classifies the contour points into any of a start point, an end point, a singular point, and a blank point from the three consecutive contour points calculated by the contour point calculating section.

【0010】前記輪郭点分類部で分類された始終点はビ
ットマップメモリ上に記録され、特異点は特異点メモリ
に記録される。塗りつぶし処理部では、前記ビットマッ
プメモリ上に記録された始終点間を塗りつぶすととも
に、前記特徴点メモリに記録されている特異点に対応す
るビットマップメモリを塗りつぶす。
The start and end points classified by the contour point classifying unit are recorded on a bit map memory, and the singular points are recorded on a singular point memory. The filling processing unit fills the space between the start and end points recorded on the bitmap memory, and also fills the bitmap memory corresponding to the singular point recorded in the feature point memory.

【0011】以上のように、輪郭線の特異点と特徴点間
を結ぶ近似式情報に基いて輪郭線を構成する輪郭点を算
出し、算出された連続する3個の輪郭点より、輪郭点を
始終点,特異点および空白点に分類し、始終点と分類さ
れた輪郭点は対応するビットマップメモリに記録し、特
異点はメモリに記録させ、ビットマップメモリ上の始終
点間を塗りつぶすと共に前記特異点を記録させているメ
モリより特異点を読み出して対応するビットマップメモ
リ、塗りつぶすようにさせたので輪郭線の輪郭点および
塗りつぶし情報を記録しておくメモリが不必要となり、
装置構成を非常に簡易化できる。
As described above, the contour points forming the contour are calculated based on the approximate expression information connecting the singular point of the contour and the feature point, and the contour points are calculated from the three consecutive calculated contour points. Are classified into start and end points, singular points and blank points, the contour points classified as the start and end points are recorded in the corresponding bitmap memory, the singular points are recorded in the memory, and the start and end points on the bitmap memory are painted and Since the singular point is read from the memory storing the singular point and the corresponding bitmap memory is filled, the memory for recording the contour point of the contour and the filling information is unnecessary,
The device configuration can be greatly simplified.

【0012】[0012]

【実施例】本発明の第1の実施例を図1〜図5を参照し
て説明する。図1は他の実施例とも共通の構成図、図2
は第1の実施例の塗りつぶしの原理説明図、図3は始終
点,特異点および空白点の説明図、図4は特殊特異点の
説明図、図5は第1の実施例の動作フローチャートであ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a configuration diagram common to other embodiments, and FIG.
FIG. 3 is an explanatory diagram of the principle of painting in the first embodiment, FIG. 3 is an explanatory diagram of a start / end point, a singular point and a blank point, FIG. 4 is an explanatory diagram of a special singular point, and FIG. 5 is an operation flowchart of the first embodiment. .

【0013】図1において、6は輪郭線の特徴点および
特徴点間を結ぶ曲線の近似式情報が格納されている輪郭
線情報メモリである。1は輪郭点算出部であり、前記輪
郭線情報メモリ6に格納されている特徴点および特徴点
間を結ぶ近似式情報に基いて輪郭線を構成する輪郭点の
算出が行なわれる。
In FIG. 1, reference numeral 6 denotes a contour line information memory in which characteristic points of a contour line and approximate expression information of a curve connecting the characteristic points are stored. Reference numeral 1 denotes a contour point calculation unit, which calculates contour points forming a contour line based on feature points stored in the contour information memory 6 and approximate expression information connecting the feature points.

【0014】2は輪郭点分類部であり、後で詳細に説明
するように、輪郭点を始終点,特異点および空白点に分
類する。3は特異点記録メモリであり、前記輪郭点分類
部で特異点として分類された輪郭点の位置データが記録
される。
Reference numeral 2 denotes a contour point classifying unit, which classifies contour points into start and end points, singular points, and blank points, as will be described in detail later. Reference numeral 3 denotes a singular point recording memory, which records the position data of the contour points classified as singular points by the contour point classifying unit.

【0015】4はビットマップメモリであり、表示部7
上の各画素に対応してX軸およびY軸の2次元のアドレ
スを有するメモリで構成される。5は塗りつぶし処理部
であり、輪郭線の内部を塗りつぶす処理が行なわれる。
8はプロセッサ(CPU)であり、全ての処理を行な
う。
Reference numeral 4 denotes a bit map memory.
It is composed of a memory having a two-dimensional address of the X axis and the Y axis corresponding to each of the above pixels. Reference numeral 5 denotes a painting processing unit, which performs processing for painting the inside of the outline.
Reference numeral 8 denotes a processor (CPU), which performs all processes.

【0016】まず、第1の実施例の原理を図2を参照し
て説明する。図2において、●,◎および○印は輪郭線
を構成する輪郭点を示している。各輪郭点はビットマッ
プメモリ4のX軸およびY軸に対応する位置データで、
外側の輪郭線を構成する輪郭点は時計方向に、また内側
の輪郭線を構成する輪郭点は反時計方向に順次算出され
る。
First, the principle of the first embodiment will be described with reference to FIG. In FIG. 2, marks ●, ◎, and ○ indicate contour points constituting a contour line. Each contour point is position data corresponding to the X-axis and the Y-axis of the bitmap memory 4, and
The contour points constituting the outer contour are sequentially calculated in the clockwise direction, and the contour points constituting the inner contour are sequentially calculated in the counterclockwise direction.

【0017】また、図2で●印で示す輪郭点を始終点、
◎印で示す輪郭点を特異点、○印で示す輪郭点を空白点
と呼ぶことにする。塗りつぶしの原理は、まず、算出さ
れた輪郭点を始終点●,特異点◎および空白点に分類す
る。分類する方法については後で説明する。始終点●と
して分類された輪郭点のビットマップメモリ上の対応点
を“1”にし、特異点◎として分類された輪郭点は特異
点記録メモリに記録する。
In FIG. 2, the outline points indicated by ● are the start and end points,
The outline points indicated by ◎ are referred to as singular points, and the outline points indicated by ○ are referred to as blank points. The principle of filling is to first classify the calculated contour points into start and end points, singular points, and blank points. The method of classification will be described later. The corresponding point on the bitmap memory of the contour point classified as the start and end point ● is set to “1”, and the contour point classified as the singular point ◎ is recorded in the singular point recording memory.

【0018】全ての輪郭線を構成する輪郭点の分類が完
了した後で塗りつぶし処理を行う。すなわち、ビットマ
ップメモリを左より右に掃引して、最初に“1”が記録
されているビットより次に“1”が記録されているビッ
トの間の全てのビットを“1”にする。更に掃引を続
け、次に“1”が記録されているビットから次に“1”
が記録されているビット間のビットを“1”にする。次
下順次処理を行って、1ラインの掃引が完了すると、次
のラインに対しても同様の処理を行なう。
After the classification of the contour points constituting all the contour lines is completed, a painting process is performed. That is, the bit map memory is swept from the left to the right, and all bits between the bit where "1" is recorded first and the bit where "1" is recorded next are set to "1". The sweep is further continued, and then the bit where “1” is recorded is changed to the next “1”.
Is set to "1" between bits in which is recorded. When the next lower line is sequentially processed and the sweep of one line is completed, the same process is performed for the next line.

【0019】全てのラインの処理が終了後、特異点記録
メモリに記録されている特異点◎のデータを読み出し、
対応するビットマップメモリのビットを“1”にして塗
りつぶしを行なう。つぎに、図3を参照して、始終点,
特異点および空白点の分類方法を説明する。
After the processing of all the lines is completed, the data of the singular point ◎ recorded in the singular point recording memory is read out,
The corresponding bit of the bit map memory is set to "1" to perform painting. Next, referring to FIG.
A method for classifying singular points and blank points will be described.

【0020】いま、分類する輪郭点をPO 、PO より1
つ前の輪郭点をP- またPO より1つ後の輪郭点をP+
とする3個の連続する輪郭点を考える。また、以後の説
明を容易にするため、PO の座標を(xO ,yO )、P
- の座標を(x- ,y- )、P+ の座標を(x+
+ )とし、 xO −x- =X- O −y- =Y- + −x0 =X+ + −y0 =Y+ …(1) で表わすことにする。 (A1)図3(A1)に対応するものであり、P- ,P
O およびP+ がx軸方向に連続している場合、すなわ
ち、 X- =X+ =1 Y- =Y+ =0 の場合PO =○(空白点) …(A1) と分類する。
[0020] Now, the contour points to classify P O, than P O 1
One previous contour point P - The contour points after one than P O P +
Consider three continuous contour points as follows. Further, in order to facilitate the following description, the coordinates of P O are represented by (x O , y O ), P
- coordinates of (x -, y -), a P + coordinates (x +,
y + ), and expressed as x O −x = X y O −y = Y x + −x 0 = X + y + −y 0 = Y + (1) (A1) Corresponding to FIG. 3 (A1), and P , P
When O and P + are continuous in the x-axis direction, that is, when X = X + = 1 Y = Y + = 0, it is classified as P O = ○ (blank point) (A1).

【0021】以後同様に、 (A2) X- =X+ =−1 Y- =Y+ =0 の場合PO =○ …(A2) (B1) Y- =Y+ =−1 の場合PO =●(始終点) …(B1) (B2) Y- =Y+ =1 の場合PO =● ) …(B2) (C1) X+ =1 Y- =−1,Y+ =0 の場合PO =○ …(C1) (C2) X- =−1 Y- =0,Y+ =1 の場合PO =● …(C2) (D1) X+ =−1 Y- =−1,Y+ =0 の場合PO =● …(D1) (D2) X- =1 Y- =0,Y+ =1 の場合PO =○ …(D2) (E1) X+ =−1 Y- =1,Y+ =0 の場合PO =○ …(E1) (E2) X- =1 Y- =0,Y+ =−1 の場合PO =● …(E2) (F1) X+ =1 Y- =1,Y+ =0 の場合PO =● …(F1) (F2) X- =−1 Y- =0,Y+ =−1 の場合PO =○ …(F2) (G1) X- かX+ のいづれか一方が1で他方が0または両方が1 Y- =1,Y+ =−1 の場合PO =◎(特異点) …(G1) (G2) X- かX+ のいづれか一方が−1で他方が0または両方が−1 Y- =1,Y+ =−1 の場合PO =○ …(G2) (H1) X- かX+ のいづれか一方が1で他方が0または両方が1 Y- =−1,Y+ =1 の場合PO =○ …(H1) (H2) X- かX+ のいづれか一方が−1で他方が0または両方が−1 Y- =−1,Y+ =1 の場合PO =◎ …(H2) と判定する。[0021] Thereafter Similarly, (A2) X - = X + = -1 Y - = For Y + = 0 P O = ○ ... (A2) (B1) Y - = Y + = -1 if P O = ● (start and end points) ... (B1) (B2) Y - = Y + = 1 if P O = ●) ... (B2 ) (C1) X + = 1 Y - = -1, if the Y + = 0 P O = ○ (C1) (C2) X = −1 Y = 0, Y + = 1 Po = ● (C2) (D1) X + = −1 Y = −1, Y In the case of + = 0, P O = ● (D1) (D2) X = 1 Y = 0, in the case of Y + = 1 Po = O (D2) (E1) X + = −1 Y = 1, Y + = 0 if P O = ○ ... (E1) (E2) X - = 1 Y - = 0, Y + = -1 if P O = ● ... (E2) (F1) X + = 1 Y - = 1, the case of Y + = 0 P O = ● ... (F1) (F2) X - = -1 Y - = 0, Y + = -1 if P O = ○ ... (F2) (G1) X - or X + of Izure or one of the other is 1 0 or both 1 Y - = 1, Y + = -1 for In the case, P O = 特異 (singular point) (G1) (G2) When one of X or X + is −1 and the other is 0 or both are −1 Y = 1, Y + = −1, P O = ○ ... (G2) (H1 ) X - or X + of Izure or one is 1 and the other is 0 or both at 1 Y - = -1, Y + = for 1 P O = ○ ... (H1 ) (H2) X - or X + of Izure or one of the other at -1 0 or both -1 Y - = -1 is determined, Y + = 1 if P O = ◎ ... and (H2).

【0022】また、図2で示すように、内側の輪郭線の
輪郭点については、図3の(A1)〜(H1)による判
定結果と(A2)〜(H2)による判定結果をそれぞれ
取替える。すなわち、(A1)と(A2),(B1)と
(B2),…,(H1)と(H2)の判定結果を取替え
る。
As shown in FIG. 2, for the contour points of the inner contour line, the judgment results by (A1) to (H1) and the judgment results by (A2) to (H2) in FIG. That is, the judgment results of (A1) and (A2), (B1) and (B2),..., (H1) and (H2) are exchanged.

【0023】つぎに、特殊特異点について、図4を参照
して説明する。輪郭線を構成する輪郭点は、輪郭線の特
徴点と特徴点間を結ぶ曲線の近似式が与えられて順次輪
郭点が算出される。そこで、図4(A)で示されるよう
に、P1 およびP2 の特徴点と近似式が与えられて輪郭
点が算出され、前記式(A1)〜(H2)で輪郭点が分
類されると、図4(B)で示されるように、P2 を除い
て始終点●と分類される。
Next, the special singularity will be described with reference to FIG. The contour points forming the contour are sequentially calculated based on an approximate expression of a curve connecting the characteristic points between the feature points. Therefore, as shown in FIG. 4 (A), the contour point approximation formula is given and the feature point of the P 1 and P 2 are calculated, contour points are classified by the formula (A1) ~ (H2) When, as shown in FIG. 4 (B), the classified as start and end points ● except P 2.

【0024】次に、図4(C)で示されるように、P2
およびP3 の特徴点と近似式が与えられて輪郭点が算出
され、前記式(A1)〜(H2)で輪郭点が分類される
と、P2 は特異点◎、P2 以外は始終点●と分類され
る。したがって、P2 を除くP2 よりP4 までは始終点
と分類されてビットマップメモリ上に記録される。この
ように始終点が重なって記録されると、塗りつぶし処理
のとき、ビットマップメモリ上では重なって記録されて
いることを判断することができず、塗りつぶし処理がで
きなくなる。
Next, as shown in FIG. 4 (C), P 2
And contour point approximation formula is given and the feature points P 3 is calculated, the contour points are classified by the formula (A1) ~ (H2), P 2 singularity ◎, start and end points except P 2 Classified as ●. Therefore, until the P 4 than P 2, except for P 2 is recorded is all the time classified as a point on the bit map memory. If the start and end points are overlapped in this way, it is not possible to determine that the overlap is recorded on the bitmap memory during the filling process, and the filling process cannot be performed.

【0025】そこで、図4(D)に示すように、始終点
と判定されてビットマップメモリに記録するとき、記録
するビットに格納されている値が“1”の場合は格納値
を“0”にして、対応する輪郭点を特異点として特異点
記録メモリに記録する。つぎに、図5を参照して、第1
の実施例の動作を説明する。
Therefore, as shown in FIG. 4 (D), when the start and end points are determined and recorded in the bit map memory, if the value stored in the bit to be recorded is "1", the stored value is set to "0". And records the corresponding contour point as a singular point in the singular point recording memory. Next, referring to FIG.
The operation of this embodiment will be described.

【0026】輪郭線情報メモリ6には、あらかじめ表示
部7に表示させる文字または図形の輪郭線の特徴点と特
徴点間を結ぶ曲線の近似式情報が格納されており、前記
図2で説明したように外側輪郭線に対しては時計方向
に、また内側輪郭線に対しては反時計方向に輪郭点が算
出されるよう情報が順次格納されているものとする。
The outline information memory 6 previously stores approximate expression information of a characteristic point of a character or graphic outline displayed on the display unit 7 and a curve connecting the characteristic points, as described with reference to FIG. As described above, information is sequentially stored so that contour points are calculated in the clockwise direction for the outer contour line and counterclockwise for the inner contour line.

【0027】処理S1 処理S1では、輪郭点算出部1は輪郭線情報メモリ6に
格納されている輪郭線の特徴点と特徴点間を結ぶ曲線の
近似式情報を読み出す。 処理S2 読出された輪郭線情報にもとづいて、輪郭点算出部1は
輪郭線を構成する輪郭点を算出する。
Processing S1 In processing S1, the contour point calculation unit 1 reads out the approximate expression information of the characteristic points of the outline stored in the outline information memory 6 and the curve connecting the characteristic points. Process S2 Based on the read outline information, the outline point calculation unit 1 calculates outline points constituting the outline.

【0028】処理S3 輪郭点分類部2は、処理S2で算出された輪郭点につい
て、式(A1)〜(H2)で示される条件にもとずいて
輪郭点を分類し、輪郭点が始終点と判定された場合は処
理S4に、特異点と判定された場合は処理S7に、また
空白点と判定された場合は処理S8に移る。
Process S3 The contour point classifying unit 2 classifies the contour points calculated in the process S2 based on the conditions represented by the equations (A1) to (H2), and determines whether the contour points are the start and end points. If it is determined that the point is a singular point, the process proceeds to step S7. If it is determined that the point is a blank point, the process proceeds to step S8.

【0029】処理S4 処理S3で始終点と判定された場合は、判定された輪郭
点に対応するビットマップメモリ4上のメモリに格納さ
れているデータ値が“1”か否かの判定を行ない、YE
Sの場合は処理S5に、NOの場合は処理S6に移る。
Step S4 If the start and end points are determined in step S3, it is determined whether or not the data value stored in the memory on the bitmap memory 4 corresponding to the determined contour point is "1". , YE
In the case of S, the process proceeds to step S5, and in the case of NO, the process proceeds to step S6.

【0030】処理S5 処理S5では、処理S4でデータ値が“1”と読出され
たビットマップメモリ4の対応するメモリのデータ値を
“0”に替え、また、そのアドレス情報を特異点記録メ
モリ3に記録する。
Process S5 In process S5, the data value of the corresponding memory of the bit map memory 4 which has been read as "1" in process S4 is changed to "0", and the address information is changed to the singular point recording memory. Record in 3.

【0031】処理S6 処理S4での判定結果がNOの場合、処理S6では、処
理S4で“0”と読出されたビットマップメモリ4のメ
モリのデータ値を“1”にする。すなわち、処理S4〜
S5では、図4で説明したように、始終点と判定された
中から特殊特異点を取り出し、特異点として記録させる
処理を行なわさせている。
Step S6 If the decision result in the step S4 is NO, in the step S6, the data value of the memory of the bit map memory 4 which is read "0" in the step S4 is set to "1". That is, processing S4 to
In S5, as described with reference to FIG. 4, a process of extracting a special singular point from the start and end points and recording it as a singular point is performed.

【0032】処理S7 処理S3で特異点として判定された輪郭点に対しては特
異点記録メモリ3に記録させる。 処理S8 処理S8では輪郭線を構成する全ての輪郭点について輪
郭点分類処理が終了したか否かの判定が行なわれ、NO
の場合は処理S1に移って処理S1〜S8が続行され、
YESの場合は処理S9に移る。
Process S7 The contour point determined as a singular point in step S3 is recorded in the singular point recording memory 3. Process S8 In the process S8, it is determined whether or not the contour point classification process has been completed for all the contour points constituting the contour line.
In the case of, the process moves to the process S1 and the processes S1 to S8 are continued,
In the case of YES, the process moves to step S9.

【0033】処理S9 処理S9では、塗りつぶし処理部5は、ビットマップメ
モリ4のX軸アドレスを順次左から右に掃引してデータ
値を読み出し、最初にデータ値が“1”となったメモリ
より次に“1”が読出されるまでのメモリのデータ値を
“1”に書換え、次にまた読出されたデータ値が“1”
よりその次に読出されたデータ値が“1”までのメモリ
のデータ値“1”に書換える。順次X軸方向に対して上
記処理を繰返す。
Processing S9 In processing S9, the painting processing unit 5 reads the data value by sequentially sweeping the X-axis address of the bitmap memory 4 from left to right, and reads the data value from the memory in which the data value becomes "1" first. Next, the data value of the memory until "1" is read out is rewritten to "1", and the data value read out again becomes "1".
Further, the data value read next is rewritten to the data value "1" of the memory up to "1". The above processing is sequentially repeated in the X-axis direction.

【0034】X軸1ラインの処理が完了すると、次のY
軸値に対するX軸の掃引を行ない、対応するメモリのデ
ータ値を“1”に書替えて塗りつぶし処理を行なう。ビ
ットマップメモリ4に対する全てのメモリに対する掃引
が終了すると、特異点記録メモリ3に記録されている特
異点に対応するビットマップメモリ4のビットを“1”
に書換えて全ての処理を終了する。
When the processing of one line on the X axis is completed, the next Y
The X-axis is swept with respect to the axis value, and the data value of the corresponding memory is rewritten to “1” to perform the painting process. When the sweep for all the memories for the bitmap memory 4 is completed, the bit of the bitmap memory 4 corresponding to the singular point recorded in the singular point recording memory 3 is set to “1”.
And all the processing ends.

【0035】ビットマップメモリ4に“1”と記録され
たビットに対応する画素が表示部7で表示されて文字や
図形となって表示される。なお、実施例の処理S4〜S
5の処理は図4で説明した特殊特異点の処理を行なわ
せ、点P2 よりP4 までの輪郭点の全てを特異点記録メ
モリ3に記録させるようにしていたが、このように連続
して特異点が記録されるような場合は点P2およびP4
の位置情報と点P2 とP4 との間の特異点を表わす曲線
情報とを記録させて、処理S9での塗りつぶし処理時に
は、これらの情報をもとにして特異点を算出させて塗り
つぶすようにしても良い。
Pixels corresponding to bits recorded as "1" in the bit map memory 4 are displayed on the display unit 7 and displayed as characters or figures. Note that the processes S4 to S of the embodiment
Treatment of 5 to perform the processing of the special singularity described in FIG. 4, had so as to record all contour points of the point P 2 to P 4 singularity recording memory 3, thus continuously When the singular point is recorded, the points P 2 and P 4
Position information and by recording the contour information representing singularities between points P 2 and P 4 of the filling processing time in the processing S9, as filled by computing singular point by the information based on You may do it.

【0036】つぎに、図6を参照して、第2の実施例の
原理を説明する。第1の実施例では塗りつぶし処理部5
はビットマップメモリ4の全てのメモリを読出して記録
値が“1”であるか否かを判定し、塗りつぶし処理を行
っていた。このため塗りつぶし処理時間を多く必要とす
る。第2の実施例は、この塗りつぶし処理時間を短縮さ
せるようにしたものである。
Next, the principle of the second embodiment will be described with reference to FIG. In the first embodiment, the filling processing unit 5
Read out all the memories of the bitmap memory 4 to determine whether or not the recording value is "1", and perform the filling process. For this reason, a long time is required for the filling processing. In the second embodiment, the time required for the painting process is reduced.

【0037】第2の実施例では、第1の実施例で説明し
た輪郭点分類部2で分類される始終点を始点と終点とに
分けることによって行なわれる。図2でも明らかなよう
に、ビットマップメモリ4に“1”と記録された始終点
の中で塗りつぶしの際に塗りつぶしの終点、すなわち、
ビットマップメモリ4をX軸に対して掃引したとき、偶
数番目に“1”となる点は、図6(A)の●印で示した
点である。
In the second embodiment, the process is performed by dividing the start and end points classified by the contour point classifying unit 2 described in the first embodiment into a start point and an end point. As is clear from FIG. 2, the end point of the fill, that is, the end point of the fill, among the start and end points recorded as “1” in the bitmap memory 4, that is,
When the bitmap memory 4 is swept with respect to the X-axis, points that become "1" at even-numbered points are the points indicated by ● in FIG. 6A.

【0038】この図6(A)の●印で示される終点は図
3の(B1),(D1)および(E2)である。すなわ
ち、終点は式(B1),(D1)および(E2)で表わ
される輪郭点である。また、図6(B)での●印で示さ
れる始点は図3の(B2),(C2)および(F1)に
対応し、それぞれ式(B2),(C2)および(F1)
で表わされる輪郭点である。
The end points indicated by ● in FIG. 6A are (B1), (D1) and (E2) in FIG. That is, the end point is a contour point represented by equations (B1), (D1), and (E2). 6B correspond to (B2), (C2) and (F1) in FIG. 3, respectively, and correspond to equations (B2), (C2) and (F1), respectively.
Is a contour point represented by

【0039】そこで、輪郭点算出部1で算出された輪郭
点の分類を、第1回目は式(B2),(C2)および
(F1)と判定された輪郭点を空白点に変更して分類を
行なう。全ての輪郭点の分類が終了すると第2回目の分
類を行う。第2回目の輪郭点の分類は、式(B2),
(C2)および(F1)で表わされる輪郭点のみを分類
して出力する。
Therefore, the classification of the contour points calculated by the contour point calculation unit 1 is changed in the first time by changing the contour points determined by the equations (B2), (C2) and (F1) into blank points. Do. When the classification of all contour points is completed, the second classification is performed. The second classification of the contour points is performed using the equation (B2),
Only the contour points represented by (C2) and (F1) are classified and output.

【0040】第2回目の分類で始点と判定された輪郭点
(図6(B))に対応するビットマップメモリ4のビッ
トを“1”にし、“1”としたビットのX軸を掃引して
第1回目の分類で終点として判定され“1”が記録され
ているビット(図6(A))までのビットを“1”に書
換えて塗りつぶしを行なう。
The bit of the bit map memory 4 corresponding to the contour point (FIG. 6B) determined as the starting point in the second classification is set to "1", and the X-axis of the bit set to "1" is swept. The bits up to the bit (FIG. 6A) in which the first classification is determined as the end point and "1" is recorded are rewritten to "1", and painting is performed.

【0041】このように塗りかえを行なわすことによっ
て、全てのビットマップメモリに記録されているデータ
値を読出す必要がなくなり塗りつぶし処理時間を短縮で
きる。つぎに第2の実施例の動作を図7を参照して説明
する。
By performing the repainting in this manner, it is not necessary to read out the data values recorded in all the bitmap memories, and the repainting processing time can be reduced. Next, the operation of the second embodiment will be described with reference to FIG.

【0042】処理S11およびS12 処理S11およびS12では、それぞれ第1の実施例で
説明したと同様の処理S1およびS2が行なわれて輪郭
点が算出される。 処理S13 処理S13では、輪郭点分類部2は式(A1)〜(H
2)で示される条件に基いて輪郭点を分類する。ただ
し、式(B2),(C2)および(F1)と分類された
ときは空白点と判定して出力する。判定結果が終点の場
合は処理S14に、特異点と判定された場合は処理S1
5に、また空白点と判定された場合は処理S16に移
る。
Processes S11 and S12 In processes S11 and S12, the same processes S1 and S2 as described in the first embodiment are performed to calculate contour points. Processing S13 In processing S13, the contour point classifying unit 2 calculates the expressions (A1) to (H).
The contour points are classified based on the condition shown in 2). However, when it is classified into the equations (B2), (C2) and (F1), it is determined to be a blank point and output. If the result of the determination is the end point, the process proceeds to step S14.
The process proceeds to step S16 when it is determined to be a blank point.

【0043】処理S14 終点と判定された輪郭点に対応するビットマップメモリ
4のビットに“1”を記録する。 処理S15 特異点と判定された輪郭点を特異点メモリ3に記録す
る。
Processing S14 "1" is recorded in the bit of the bit map memory 4 corresponding to the contour point determined as the end point. Process S15 The contour point determined as a singular point is recorded in the singular point memory 3.

【0044】処理S16 処理S16では全ての輪郭点の分類処理が終了したか否
かの判定が行なわれ、NOの場合は処理S11に移り、
処理S11〜S16が繰返えされ、YESの場合は処理
S17に移る。
Process S16 In process S16, it is determined whether or not the classification process for all the contour points has been completed. If NO, the process proceeds to process S11.
Processes S11 to S16 are repeated, and if YES, the process moves to process S17.

【0045】処理S17およびS18 処理S17およびS18は、処理S11およびS12と
同様の処理が行なわれて輪郭点が算出される。 処理S19 処理S19では、輪郭点分類部2は式(B2),(C
2)および(F1)と分類された輪郭点は始点と判定し
処理S20に、それ以外の場合は処理S23に移る。
Processes S17 and S18 In processes S17 and S18, the same processes as processes S11 and S12 are performed to calculate the contour points. Processing S19 In processing S19, the contour point classifying unit 2 calculates the equations (B2) and (C
The contour points classified as (2) and (F1) are determined to be the starting points, and the process proceeds to step S20; otherwise, the process proceeds to step S23.

【0046】処理S20 処理S20では、処理S19で始点と判定された輪郭点
に対応するビットマップメモリ4のビットのデータを読
出し、読出したデータ値が“1”か否かの判定を行な
い、NOの場合は処理S22に、またYESの場合は処
理S22に移る。
Processing S20 In processing S20, the bit data of the bit map memory 4 corresponding to the contour point determined as the starting point in processing S19 is read, and it is determined whether or not the read data value is "1". In the case of, the process proceeds to step S22, and in the case of YES, the process proceeds to step S22.

【0047】処理S21 処理S21では、塗りつぶし処理部5は、処理S19で
始点と判定された輪郭点に対応するビットマップメモリ
4のビットよりX軸方向に掃引し、次に“1”が記録さ
れているビットまでの各ビットのデータ値を“1”に書
換えて塗りつぶしを行なう。
Processing S21 In processing S21, the painting processing unit 5 sweeps in the X-axis direction from the bit of the bit map memory 4 corresponding to the contour point determined as the starting point in processing S19, and then "1" is recorded. The data value of each bit up to the bit in question is rewritten to “1” and painted.

【0048】処理S22 処理S22では、処理S20においてビットマップメモ
リ4より読出したビットのデータ値を“0”に書換える
と共に、特異点記録メモリ5に記録する。 処理S23 全ての輪郭点の分類が終了したか否かの判定が行われ、
NOの場合は処理S17に移り、処理S17〜S23が
繰返えされる。またYESの場合は処理S24に移る。
Process S22 In process S22, the data value of the bit read from the bit map memory 4 in process S20 is rewritten to "0" and recorded in the singularity recording memory 5. Process S23 It is determined whether or not the classification of all contour points has been completed.
In the case of NO, the process shifts to step S17, and steps S17 to S23 are repeated. In the case of YES, the process moves to step S24.

【0049】処理S24 処理S24では、塗りつぶし処理部5は、特異点記録メ
モリ3に記録れている特異点を読出し、対応するビット
マップメモリ4のビットを“1”に書換えて全ての処理
を終了する。
Processing S24 In processing S24, the paint-out processing section 5 reads the singularity recorded in the singularity recording memory 3, rewrites the corresponding bit of the bitmap memory 4 to "1", and ends all the processing. I do.

【0050】つぎに、図8を参照して、第3の実施例の
原理を説明する。第2の実施例では輪郭点の分類を連続
する3個の輪郭点の位置情報に基づいて判定を行なわせ
ていた。第3の実施例は輪郭線情報メモリに格納されて
いる特徴点と特徴点間を結ぶ近似情報に基づいて判定さ
せるようにしたものである。
Next, the principle of the third embodiment will be described with reference to FIG. In the second embodiment, the classification of the contour points is determined based on the position information of three consecutive contour points. In the third embodiment, a determination is made based on approximate information connecting feature points stored in the contour information memory.

【0051】図8はかな文字「の」の輪郭線を表わした
ものであり、輪郭線情報メモリ6には、特徴点として、
例えば図8に示す、P0 ,P1 ,…,P8 と各特徴点間
を結ぶ曲線の近似式情報が格納されている。そこで、例
えば、特徴点Pn とPn+1 およびPn とPn+1 を結ぶ近
似式情報を読出し、これらの情報より点Pn とPn+1
向って算出される輪郭点が単調に減少するか、単調に増
加するか、または単調に減少または増加しないか否かを
判別させる。そして単調に減少すると判別された区間で
算出される輪郭点を終点、単調に増加すると判別された
区間で算出される輪郭点を始点、また単調に減少または
増加しないと判別された場合は、減少から増加、または
増加から減少に変更される点に区間を区分して算出され
る輪郭点を終点または始点とする。
FIG. 8 shows the outline of the kana character “no”. The outline information memory 6 stores
For example, as shown in FIG. 8, approximate expression information of a curve connecting between P 0 , P 1 ,..., P 8 and each feature point is stored. Therefore, for example, approximate expression information connecting the feature points P n and P n + 1 and P n and P n + 1 is read, and a contour point calculated toward the points P n and P n + 1 is obtained from the information. A determination is made as to whether the value decreases monotonically, increases monotonically, or does not decrease or increase monotonously. The end point is the contour point calculated in the section determined to be monotonically decreasing, the starting point is the contour point calculated in the section determined to be monotonically increasing, and is decreased if it is determined not to decrease or increase monotonically. The contour point calculated by dividing the section into points that are changed from “increase” or “change from increase” to “decrease” is defined as an end point or a start point.

【0052】すなわち、特徴点Pn およびPn+1 のビッ
トマップメモリ上の座標に対応させてPn (xn ,f
(xn ))およびPn+1 (xn+1 ,f(xn+1 ))で表
わし、点Pn とPn+1 を結ぶ曲線の近似式f(x)が f(x)=A′x3 +B′x2 +C′x+D′ …(2) で与えられたとする。
That is, P n (x n , f n ) is associated with the coordinates of the feature points P n and P n + 1 on the bitmap memory.
( Xn )) and Pn + 1 ( xn + 1 , f ( xn + 1 )), and the approximate expression f (x) of the curve connecting the points Pn and Pn + 1 is f (x) = A′x 3 + B′x 2 + C′x + D ′ (2)

【0053】式(2)で表わされる曲線が、区間
[xn ,xn+1 ]で単調に増加から減少、または減少か
ら増加に変更される点があるか否は、区間[xn ,x
n+1 ]で式(2)の微分値が0となる点があるか否かで
判別できる。そこで、式(2)の微分をとって、f′
(x)は f′(x)=3A′x2 +2B′x+C′ ≡Ax2 +Bx+C …(3) で表わされる。
[0053] the curve represented by the formula (2), the interval whether [x n, x n + 1 ] decreased from monotonously increased or there is a point to be changed from decrease to increase the interval [x n, x
n + 1 ] can be determined based on whether or not there is a point at which the differential value of equation (2) becomes 0. Therefore, taking the derivative of equation (2), f ′
(X) is expressed by f '(x) = 3A'x 2 + 2B'x + C' ≡Ax 2 + Bx + C ... (3).

【0054】式(3)はxに関して2次式であり、根の
判別式Dが D=B2 −4AC≧0 …(4) ならば実根を有し、式(3)の値が0となるxの値xm
は xm12 =[−B±(B2 −4AC)0.5 ]/2A …(5) で与えられる。
Equation (3) is a quadratic equation with respect to x. If the discriminant D of the root is D = B 2 -4AC ≧ 0 (4), it has a real root, and the value of equation (3) is 0. X value x m
Is given by x m12 = [− B ± (B 2 −4AC) 0.5 ] / 2A (5)

【0055】したがって、 D≧0の場合 (a)xm12 が区間[xn ,xn+1 ]内ならば (a1)xm1およびxm2を特異点 …(6) (a2)f(xn )>f(xm1)ならば 区間[xn ,xm1−1]を終点となる区間 …(7) (a3)f(xn )<f(xm1)ならば 区間[xn ,xm1−1]を始点となる区間 …(8) (a4)f(xm1)>f(xm2)ならば 区間[xm1+1,xm2−1]を終点とする区間 …(9) (a5)f(xm1)<f(xm2)ならば 区間[xm1+1,xm2−1]を始点とする区間 …(10) (a6)f(xm2)>f(xn+1 )ならば 区間[xm2+1,xn+1 ]を終点とする区間 …(11) (a7)f(xm2)<f(xn+1 )ならば 区間[xm2+1,xn+1 ]を始点とする区間 …(12) (b)xm1またはxm2のいづれか一方(xm )のみ区間[xn ,xn+1 ]ならば (b1)xm を特異点 …(13) (b2)f(xn )>f(xm )ならば 区間[xn ,xm −1]を終点とする区間 …(14) (b3)f(xn )<f(xm )ならば 区間[xn ,xm −1]を始点とする区間 …(15) (b4)f(xm )>f(xn+1 )ならば 区間[xm +1,xn+1 ]を終点とする区間 …(16) (b5)f(xm )<f(xn+1 )ならば 区間[xm +1,xn+1 ]を始点とする区間 …(17) (c)xm12 が区間[xn ,xn+1 ]外ならば (c1)f(xn )>f(xn+1 )ならば 区間[xn ,xn+1 ]を終点とする区間 …(18) (c2)f(xn )<f(xn+1 )ならば 区間[xn ,xn+1 ]を始点とする区間 …(19) とする。Therefore, if D ≧ 0 (a) If x m12 is within the section [x n , x n + 1 ], (a1) x m1 and x m2 are singular points ... (6) (a2) f (x n )> f (x m1 ), the end of the section [x n , x m1 -1] (7) (a3) If f (x n ) <f (x m1 ), the section [x n , x m1 -1] as a starting point (8) (a4) If f (x m1 )> f (x m2 ), a section ending at a section [x m1 +1, x m2 -1] ... (9) (A5) If f (x m1 ) <f (x m2 ), the section starting from the section [x m1 +1, x m2 −1] (10) (a6) f (x m2 )> f (x n + 1 ) if section [ xm2 + 1, xn + 1 ] as end point ... (11) (a7) If f ( xm2 ) <f ( xn + 1 ), section [ xm2 + 1, xn section +1] the starting ... (12) (b) of the x m1 or x m @ 2 Families or the other (x m) section only [x n, x n + 1 ] if (b1) singularity x m ... (13) (b2 ) f (x n)> f (x m) If the interval [ x n, x m -1] a section to the end point ... (14) (b3) f (x n) <f (x m) If the interval [x n, interval starting at the x m -1] ... ( 15) (b4) If f (x m )> f (x n + 1 ), the section ending at the section [x m +1, x n + 1 ]... (16) (b5) f (x m ) <f (x n + 1) if the interval [x m + 1, x n + 1] interval starting at the ... (17) (c) x m12 is the interval [x n, x n + 1 ] if the outer (c1) If f ( xn )> f ( xn + 1 ), a section ending at the section [ xn , xn + 1 ] (18) (c2) f ( xn ) <f ( xn + 1 ) Then, the interval [x n , x n + 1 ] as the starting point is defined as (19).

【0056】 D<0の場合 (d1)f(xn )>f(xn+1 )ならば 区間[xn ,xn+1 ]を終点とする区間 …(20) (d2)f(xn )<f(xn+1 )ならば 区間[xn ,xn+1 ]を始点とする区間 …(21) とする。When D <0 (d1) If f (x n )> f (x n + 1 ), the section ending at the section [x n , x n + 1 ] (20) (d 2) f ( If (x n ) <f (x n + 1 ), a section starting from the section [x n , x n + 1 ] is set as (21).

【0057】以上のように、特徴点および特徴点間を結
ぶ近似式情報より、終点とする区間、始点とする区間お
よび特異点が判別されれば、第2の実施例で説明したよ
うに、終点とする区間で算出された輪郭点をビットマッ
プメモリ上に記録させ、次に始点とする区間で算出され
る輪郭点より終点として記録されているビットマップメ
モリのビットを塗りつぶす。
As described above, if the end point section, the start point section, and the singular point are determined from the characteristic points and the approximate expression information connecting the characteristic points, as described in the second embodiment, The contour point calculated in the section to be the end point is recorded on the bitmap memory, and the bit of the bitmap memory recorded as the end point is painted out from the contour point calculated in the section to be the start point.

【0058】つぎに第3の実施の動作を図9を参照して
説明する。 処理S31 処理S31では、輪郭点分類部2は輪郭線情報メモリ6
より特徴点と特徴点間を結ぶ近似式情報を読出す。
Next, the operation of the third embodiment will be described with reference to FIG. Process S31 In process S31, the contour point classifying unit 2 sets the contour line information memory 6
Approximate expression information connecting feature points is read.

【0059】処理S32 輪郭点分類部2は、処理S31で読出した輪郭線情報に
もとずいて、特異点、終点とする区間および始点とする
区間に特徴点間を分類する。すなわち、式(4)〜(2
1)に基づいて判別を行って分類する。
Process S32 The contour point classifying section 2 classifies feature points into singular points, end points and start points based on the contour information read out in step S31. That is, equations (4) to (2)
Classification is performed by performing determination based on 1).

【0060】分類された結果、始点とする区間と分類さ
れた場合は処理S33に、終点とする区間と分類された
場合は処理S34に、また特異点と分類された場合は処
理S36に移る。 処理S33 始点とする区間および近似式情報を図示しないメモリに
記録する。
As a result of the classification, when the section is classified as the start point, the process proceeds to step S33. When the section is classified as the end point, the process proceeds to step S34. When the section is classified as a singular point, the process proceeds to step S36. Process S33 The section as the starting point and the approximate expression information are recorded in a memory (not shown).

【0061】処理S34およびS35 終点とする区間に対して、輪郭点算出部1は輪郭点を算
出し、ビットアップメモリ4の対応するビットに“1”
を記録する。 処理S36 特異点を特異点記録メモリ3に記録する。
Steps S34 and S35 The contour point calculator 1 calculates the contour point for the section to be the end point, and sets "1" to the corresponding bit of the bit-up memory 4.
Record Process S36 The singular point is recorded in the singular point recording memory 3.

【0062】処理S37 処理S37では、全ての輪郭線情報メモリ6に記録され
ている輪郭線情報の処理が終了したか否かの判定を行な
い、NOの場合は処理S31に移って処理S31〜S3
7が繰返えされ、YESの場合は処理S38に移る。
Processing S37 In processing S37, it is determined whether or not the processing of the outline information recorded in all the outline information memories 6 has been completed. If NO, the process proceeds to step S31 to proceed to steps S31 to S3.
7 is repeated, and in the case of YES, the process proceeds to step S38.

【0063】処理S38 処理S38では、処理S33で始点とする区間として分
類されている区間および近似式情報を読出す。 処理S39 処理S38で読出された情報をもとにして輪郭点算出部
1は輪郭点を算出する。
Step S38 In step S38, the section classified as the start point in step S33 and the approximate expression information are read. Process S39 The contour point calculation unit 1 calculates a contour point based on the information read in the process S38.

【0064】処理S40 処理S40では、処理S39で算出された輪郭点に対応
するビットマップメモリ4のビットのデータが“1”で
あるか否かの判定を行ない、YESの場合は処理S41
に、NOの場合は処理S42に移る。
Process S40 In process S40, it is determined whether or not the bit data of the bit map memory 4 corresponding to the contour point calculated in process S39 is "1".
On the other hand, in the case of NO, the process shifts to step S42.

【0065】処理S41 塗りつぶし処理部5は、処理S39で算出された輪郭点
に対応するビットマップメモリ4のビットよりX軸方向
に掃引し、次に“1”が記録されているビットまでの各
ビットのデータ値を“1”に書換えて塗りつぶしを行な
う。
Step S41: The paint-out processing unit 5 sweeps in the X-axis direction from the bit of the bit map memory 4 corresponding to the contour point calculated in step S39, and then performs each processing up to the bit where "1" is recorded. The data value of the bit is rewritten to "1" and painting is performed.

【0066】処理S42 処理S39で算出された輪郭点に対応するビットマップ
メモリ4のビットを“0”に書換えると共に、特異点記
録メモリ5に記録する。 処理S43 処理S33で記録された始点とする区間に対する処理が
全て終了したか否かの判定を行ない、NOの場合は処理
S38に移り処理S38〜S43が繰返えされ、YES
の場合は処理S44に移る。
Process S42 The bit of the bit map memory 4 corresponding to the contour point calculated in the process S39 is rewritten to “0” and recorded in the singularity recording memory 5. Process S43 It is determined whether or not all the processes for the section set as the start point recorded in the process S33 have been completed. If NO, the process proceeds to the process S38 and the processes S38 to S43 are repeated, and YES
In the case of, the process proceeds to step S44.

【0067】処理S44 処理S44では、塗りつぶし部5は、特異点記録メモリ
3に記録されている特異点を読出し、対応するビットマ
ップメモリ4のビットを“1”に書換えて全ての処理を
終了する。
Processing S44 In processing S44, the painting unit 5 reads the singular point recorded in the singular point recording memory 3, rewrites the corresponding bit of the bit map memory 4 to "1", and ends all the processing. .

【0068】以上、本発明の一実施例について説明した
が、本発明はこの実施例に限定されるものではなく、そ
の発明の主旨に従った各種変形が可能である。
Although the embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and various modifications in accordance with the gist of the invention are possible.

【0069】[0069]

【発明の効果】以上説明したように、本発明によれば次
の諸効果が得られる。 以上のように、輪郭線の特徴点と特徴点間を結ぶ近
似式情報に基いて輪郭線を構成する輪郭点を算出し、算
出された連続する3個の輪郭点より、輪郭点を始終点,
特異点および空白点に分類し、始終点と分類された輪郭
点は対応するビットマップメモリに記録し、特異点はメ
モリに記録させ、ビットマップメモリ上の始終点間を塗
りつぶすと共に前記特異点を記録させているメモリより
特異点を読み出して対応するビットマップメモリ塗りつ
ぶすようにさせたので輪郭線の輪郭点および塗りつぶし
情報を記録しておくメモリが不必要となり、装置構成を
非常に簡易化できる。
As described above, according to the present invention, the following effects can be obtained. As described above, the contour points constituting the contour are calculated based on the approximate expression information connecting the characteristic points of the contour, and the contour points are set as the start and end points from the three consecutive calculated contour points. ,
The contour points classified as singular points and blank points are recorded in the corresponding bitmap memory, the singular points are recorded in the memory, the singular points are recorded in the memory, and the singular points between the start and end points on the bitmap memory are recorded and the singular points are recorded. Since the singular point is read out from the memory and the corresponding bitmap memory is filled, a memory for recording the contour points of the contour and the painting information is not required, and the configuration of the apparatus can be greatly simplified.

【0070】 また、輪郭点分類部で分類された全て
の終点をビットマップメモリに記録させ、その後始点と
分類された輪郭点と前記終点として記録されているビッ
トマップメモリのビット間を塗りつぶすようにしたので
塗りつぶし処理時間を短縮させることができる。
Further, all the end points classified by the contour point classifying unit are recorded in the bit map memory, and thereafter, the gap between the contour point classified as the start point and the bit of the bit map memory recorded as the end point is filled. As a result, the time required for the filling process can be reduced.

【0071】 また、輪郭点分類部で輪郭点が始点と
なる区間、終点となる区間および特異点を分類し、最初
終点となる区間の輪郭点を算出してビットマップメモリ
に記録し、その後始点となる区間で算出された輪郭点よ
り前記終点として記録されているビットマップメモリ上
のビットまで塗りつぶすようにさせたので、輪郭点分類
処理時間を短縮させることができる。
Further, the contour point classifying unit classifies the section in which the contour point is the start point, the section in which the contour point is the end point, and the singular point, calculates the contour point of the section in which the contour point is the first end point, records the contour point in the bitmap memory, and then records the start point. Since the contour point calculated in the section is filled up with the bit on the bit map memory recorded as the end point, the contour point classification processing time can be reduced.

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

【図1】本発明の実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の第1の実施例の塗りつぶし原理説明図
である。
FIG. 2 is an explanatory diagram of a filling principle according to the first embodiment of the present invention.

【図3】同実施例の始終点,特異点および空白点の説明
図である。
FIG. 3 is an explanatory diagram of a start / end point, a singular point, and a blank point in the embodiment.

【図4】同実施例の特殊特異点の説明図である。FIG. 4 is an explanatory diagram of a special singularity of the embodiment.

【図5】本発明の第1の実施例の動作フローチャートで
ある。
FIG. 5 is an operation flowchart of the first embodiment of the present invention.

【図6】本発明の第2の実施例の塗りつぶし原理説明図
である。
FIG. 6 is an explanatory diagram of a painting principle according to a second embodiment of the present invention.

【図7】本発明の第2の実施例の動作フローチャートで
ある。
FIG. 7 is an operation flowchart of the second embodiment of the present invention.

【図8】本発明の第3の実施例の塗りつぶし原理説明図
である。
FIG. 8 is an explanatory diagram of a painting principle according to a third embodiment of the present invention.

【図9】本発明の第3の実施例の動作フローチャートで
ある。
FIG. 9 is an operation flowchart of the third embodiment of the present invention.

【図10】従来例の説明図である。FIG. 10 is an explanatory diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 輪郭点算出部 2 輪郭点分類部 3 特異点記録メモリ 4 ビットマップメモリ 5 塗りつぶし処理部 6 輪郭線情報メモリ 7 表示部 8 プロセッサ(CPU) DESCRIPTION OF SYMBOLS 1 Contour point calculation part 2 Contour point classification part 3 Singular point recording memory 4 Bit map memory 5 Fill processing part 6 Contour information memory 7 Display part 8 Processor (CPU)

フロントページの続き (56)参考文献 特開 平3−171089(JP,A) 特開 平3−91882(JP,A) 特開 平2−238581(JP,A) 特開 平3−107765(JP,A) 特開 昭61−77984(JP,A) 特開 昭61−241880(JP,A) 特開 昭63−101981(JP,A) 特開 平2−90282(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 11/40 200 Continuation of the front page (56) References JP-A-3-171089 (JP, A) JP-A-3-91882 (JP, A) JP-A-2-238581 (JP, A) JP-A-3-107765 (JP) JP-A-61-77984 (JP, A) JP-A-61-241880 (JP, A) JP-A-63-101981 (JP, A) JP-A-2-90282 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) G06T 11/40 200

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 輪郭線の特徴点と特徴点間を結ぶ近似式
情報に基づいて輪郭線を算出し、輪郭線の内部を塗りつ
ぶす塗りつぶし装置であって、 前記輪郭線の特徴点と特徴点間を結ぶ近似式情報に基づ
いて輪郭線の輪郭点を算出する輪郭点算出部と、 前記輪郭点算出部で算出された連続する3個の輪郭点よ
り始終点,特異点および空白点を分類する輪郭点分類部
と、 前記輪郭点分類部で分類された特異点を記録する特異点
記録メモリと、 前記輪郭点分類部で分類された始終点を表示部に対応し
て展開して記録するビットマップメモリと、 前記ビットマップメモリに記録された始終点間のビット
を塗りつぶし、前記特異点記録メモリに記録されている
特異点に対応するビットマップメモリのビットを塗りつ
ぶす塗りつぶし処理部と、を備えたことを特徴とする塗
りつぶし装置。
1. A filling device for calculating a contour line based on approximation formula information connecting feature points of the contour line and filling the inside of the contour line, wherein the feature point of the contour line and the feature point A contour point calculating unit for calculating a contour point of a contour line based on approximate expression information connecting the contours, and a contour for classifying a start point, an end point, a singular point, and a blank point from three consecutive contour points calculated by the contour point calculating unit. A point classification unit, a singularity recording memory for recording the singularity classified by the contour point classification unit, and a bitmap for developing and recording the start and end points classified by the contour point classification unit in correspondence with the display unit A memory, and a fill processing unit that fills bits between a start point and an end point recorded in the bit map memory and fills bits of a bit map memory corresponding to a singular point recorded in the singular point recording memory. Filling apparatus characterized.
【請求項2】 前記輪郭点算出部での輪郭点の算出を2
回行なわせ、第1回の算出値より前記輪郭点分類部は始
点,終点,特異点および空白点の分類を行って終点を前
記ビットマップメモリに記録し、第2回目の輪郭点の算
出値よりの分類によって始点が得られた場合は、得られ
た始点より前記第1回目でビットマップメモリ上に記録
された同一X軸上の終点まで前記塗りつぶし処理部で塗
りつぶすようにしたことを特徴とする請求項1記載の塗
りつぶし装置。
2. The method according to claim 2, wherein the calculation of the contour point by the contour point calculation unit is performed by two.
The contour point classifying unit classifies the start point, the end point, the singular point and the blank point from the first calculated value, records the end point in the bitmap memory, and calculates the second point based on the calculated value of the contour point. When the starting point is obtained by the classification of the above, the filling processing unit paints the starting point from the obtained starting point to the end point on the same X axis recorded in the bitmap memory at the first time. The filling device according to claim 1.
【請求項3】 前記輪郭点分類部での連続する3個の輪
郭点より始終点,特異点および空白点を分類するのに替
えて、輪郭線の特徴点と特徴点間を結ぶ近似式情報より
始点となる区間、終点となる区間および特異点を分類
し、全ての終点となる区間に対応する輪郭点を前記輪郭
点算出部で算出してビットマップメモリに記録し、その
後始点となる区間に対応する輪郭点を算出して、算出さ
れた始点と前記終点として記録されているビットマップ
メモリのビットを塗りつぶすようにしたことを特徴とす
る請求項1記載の塗りつぶし装置。
3. Instead of classifying a start point, an end point, a singular point, and a blank point from three consecutive contour points in the contour point classifying unit, the contour point classification unit uses approximate contour information to connect characteristic points of a contour line. The section serving as the start point, the section serving as the end point, and the singular point are classified, and the contour points corresponding to all the sections serving as the end points are calculated by the contour point calculation unit and recorded in the bitmap memory. 2. The filling device according to claim 1, wherein a corresponding contour point is calculated, and bits of a bitmap memory recorded as the calculated start point and the calculated end point are filled.
【請求項4】 前記特異点がビットマップメモリ上で連
続して存在する場合に連続する特異点の両端の位置情報
と両端を結ぶ曲線情報とを特異点記録メモリに記録させ
るようにしたことを特徴とする請求項1乃至3記載の塗
りつぶし装置。
4. The method according to claim 1, wherein when the singular points are continuously present on the bitmap memory, position information on both ends of the continuous singular points and information on a curve connecting both ends are recorded in the singular point recording memory. The filling device according to claim 1, wherein:
JP11728292A 1992-05-11 1992-05-11 Filling device Expired - Fee Related JP3194779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11728292A JP3194779B2 (en) 1992-05-11 1992-05-11 Filling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11728292A JP3194779B2 (en) 1992-05-11 1992-05-11 Filling device

Publications (2)

Publication Number Publication Date
JPH05314271A JPH05314271A (en) 1993-11-26
JP3194779B2 true JP3194779B2 (en) 2001-08-06

Family

ID=14707891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11728292A Expired - Fee Related JP3194779B2 (en) 1992-05-11 1992-05-11 Filling device

Country Status (1)

Country Link
JP (1) JP3194779B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1130666C (en) 1998-06-08 2003-12-10 松下电器产业株式会社 Graphic obliterator
JP5017031B2 (en) * 2007-09-13 2012-09-05 キヤノン株式会社 Image processing apparatus, image processing method, image processing program, and storage medium
WO2010095178A1 (en) * 2009-02-23 2010-08-26 富士通株式会社 Multicolor vector image processing device and method

Also Published As

Publication number Publication date
JPH05314271A (en) 1993-11-26

Similar Documents

Publication Publication Date Title
WO1984002993A1 (en) Method and apparatus for representation of a curve of uniform width
JP3238580B2 (en) Thicker text generator
JP2844639B2 (en) Character pattern signal generator
JP3194779B2 (en) Filling device
JPH0916146A (en) Character and symbol pattern generating device
US7961191B2 (en) Outline font brightness value correction system, method and program
US5519412A (en) Pattern processing method
JP3333578B2 (en) Area calculator
JP2770582B2 (en) Figure filling device
JP2610825B2 (en) Graphic processing unit
JP3039015B2 (en) Character processor
JP3224138B2 (en) Kanji font generation method
JPH06100906B2 (en) Character processing method
JP2768331B2 (en) Curve linear approximation device
JP2886702B2 (en) Outline font processor
JP3312560B2 (en) Texture mapping device
JP3212873B2 (en) Tone image generation method
JP2715496B2 (en) Image filling device
JP2740484B2 (en) Graphic processing method
JP3692639B2 (en) Drawing processor
JP2980079B2 (en) Three-dimensional image processing apparatus and method
JP2521756B2 (en) Pattern data generator
JPH06259507A (en) Graphic dividing device
JP2551322B2 (en) Image reproduction method and apparatus
JP3185975B2 (en) Caricature creation method and its device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010424

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

Free format text: PAYMENT UNTIL: 20090601

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090601

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees