JPH03222077A - Contour paint-out circuit - Google Patents

Contour paint-out circuit

Info

Publication number
JPH03222077A
JPH03222077A JP2017075A JP1707590A JPH03222077A JP H03222077 A JPH03222077 A JP H03222077A JP 2017075 A JP2017075 A JP 2017075A JP 1707590 A JP1707590 A JP 1707590A JP H03222077 A JPH03222077 A JP H03222077A
Authority
JP
Japan
Prior art keywords
exclusive
input
dot
exor
contour
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017075A
Other languages
Japanese (ja)
Inventor
Masayuki Okamoto
雅之 岡本
Mitsuru Yamauchi
山内 満
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2017075A priority Critical patent/JPH03222077A/en
Publication of JPH03222077A publication Critical patent/JPH03222077A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute paint-out exactly and quickly by connecting N numbers of EXOR gates and one latch(LT) as prescribed, and outputting an EXOR gate output Q after the paint-out to an input decision bit. CONSTITUTION:When N=8, the first input D1-DN is 00100000 of I, and the output of LT is C0=00. Then, output Q1-QN is 00111111, that is, when D1=0, C0=0 then Q1=0, when D2=0 and Q1=0, then Q2=0, but since D3=1 when Q2=0 then Q3=1 when Q3=1, then D4=0 and Q4=1, and so on, and when D5-D8 is zero, then Q5-Q8 becomes one, and Q8=1 is fetched to a latch circuit LT. Next, for an input of 10110000, the output is 00100000. Next, for an input of 01001000, the output becomes 01110000. Apparently, the places between the first one and the next even number order is filled with one, so dots are filled between contour dots. Further, a generated discrimination dot is used, so it does not end at an odd number, so the error of painting out until the end of the character/ graphic does not occur.

Description

【発明の詳細な説明】 〔発明の概要〕 文字または図形の輪郭データをベースに輪郭オの領域を
塗り潰すための輪郭塗り潰し回路に関し塗り潰しを誤ま
りなく正確に、かつ迅速に行なうことができるようにす
ることを目的とし、複数個の排他オアゲートと1個のラ
ッチ回路を備え、走査方向で奇数番目に検出される画像
の輪郭ドツト又は輪郭ドツト群の最初のドツト位置zコ
設定され、また偶数番目に検出される該輪郭ドツト又は
輪郭ドツト群の最後のドツトの1ドツト彷の位置に設定
される判別ビットが設定されたパターンデータを複数個
ずつを該排他オアゲートの一方の入力とし、前記ラッチ
回路の出力と前段排他オアゲートの出力を他方の入力と
し、該ラッチ回路へは最終段排他オアゲートの出力を入
力して、次の判別ビット入力時の初段排他オアゲートの
他方の入力とし、これらの排他オアゲートの出力を入力
判別ビットに対する塗り潰し後出力とするよう構成する
[Detailed Description of the Invention] [Summary of the Invention] An outline filling circuit for filling in an outline area based on outline data of characters or figures, so that filling can be done accurately and quickly without mistakes. It is equipped with a plurality of exclusive OR gates and one latch circuit, and sets the first dot position z of the contour dot or group of contour dots of the image that is detected oddly in the scanning direction, and A plurality of pieces of pattern data each having a discrimination bit set at a position one dot away from the last dot of the contour dot or group of contour dots detected the second time are input to one side of the exclusive OR gate, and the The output of the circuit and the output of the previous stage exclusive OR gate are used as the other inputs, and the output of the final stage exclusive OR gate is input to the latch circuit, which is used as the other input of the first stage exclusive OR gate when the next discrimination bit is input. The output of the OR gate is configured to be the output after filling in the input discrimination bit.

〔産業上の利用分野〕[Industrial application field]

本発明は、文字または図形の輪郭データをへ一スに輪郭
内の領域を塗り潰すための輪郭塗り潰し回路に関する。
The present invention relates to an outline filling circuit for filling in an area within an outline based on outline data of a character or figure.

文字または図形データはパターンデータで持つ場合と輪
郭データ(ベクトルデータ等)で持つ場合があり、後者
は文字/図形の拡大/縮小が容易であるが、表示/記録
には輪郭内を塗り潰す処理が必要である。前者はこの逆
で、記録/表示はそのパターンデータを用いて直ちに実
行できるが、拡大/縮小は容易でない、品質が劣化する
、という問題がある。本発明は後者に属し、その輪郭塗
り潰し手段、詳しくは塗り潰し回路に係るものである。
Text or figure data may be held as pattern data or as outline data (vector data, etc.).The latter makes it easy to enlarge/reduce the text/figure, but for display/recording it is necessary to fill in the outline. is necessary. The former is the opposite; recording/display can be performed immediately using the pattern data, but there are problems in that enlarging/reducing is not easy and quality deteriorates. The present invention belongs to the latter category, and relates to its contour filling means, and more specifically to its filling circuit.

〔従来の技術〕[Conventional technology]

従来の輪郭塗り潰し回路には特開昭61−34677に
開示されている回路があり、第6図にその概要を示す。
A conventional outline filling circuit includes a circuit disclosed in Japanese Patent Application Laid-Open No. 61-34677, an outline of which is shown in FIG.

図示のようにこれはn個のオアゲートG1〜Gnとn個
の排他オアゲートEG、−EG、、および1個のう・ン
チLTを備え、nビットの輪郭パターンデータA、〜A
7を受けて塗り潰し処理後のnビットのパターンデータ
B、−B、1を出力する。
As shown in the figure, this includes n OR gates G1 to Gn, n exclusive OR gates EG, -EG, and one U-NC LT, and includes n-bit contour pattern data A, to A.
7 and outputs n-bit pattern data B, -B, and 1 after filling processing.

排他オアゲートEC,、EC,、・・・・・・の入力は
、当該輪郭パターンデータビットA、、A2.・・・・
・・と前段排他オアゲートの出力C+、Cz、・・・・
・・(初段EG。
The inputs of the exclusive OR gates EC, EC, . . . are the corresponding contour pattern data bits A, , A2 .・・・・・・
...and the outputs of the previous stage exclusive OR gate C+, Cz, ...
...(Shodan EG.

についてはラッチLTの出力Co)である。データブロ
ックA、−A、の終端ビットA、に対する排他オアゲー
トEC,の出力C,lはラッチLTに取込まれ、次のデ
ータブロックA、〜A、1が入力するとき、始端ビット
A1に対する排他オアゲートE G tの一方の入力に
なる。
is the output Co) of the latch LT. The output C,l of the exclusive OR gate EC, for the end bit A, of the data block A,-A, is taken into the latch LT, and when the next data block A,~A,1 is input, the exclusive OR gate for the start end bit A1 It becomes one input of the OR gate E G t.

輪郭パターンデータは、例えば第4図(a)で言えば文
字Aの輪郭で11輪郭外は全て0であるデータである。
The outline pattern data is, for example, the data in which the outline of the character A in FIG.

鎖l1IIL上に限って言えば点P2.P2.P3゜P
4で1、それ以外のPoからP、まで、PlからPlま
で、PlからP3まで、P3からP4まで、P4からP
、までの間は全て0である。か\るデータooooio
o・・・・・・をnビットずつに区切り、その第1ブロ
ツク、第2ブロツク、・・・・・・を端子A1〜A7へ
繰り返し入力し、その都度出力B、〜B、lを得る。
Speaking only on chain l1IIL, point P2. P2. P3゜P
4 in 1, other Po to P, Pl to Pl, Pl to P3, P3 to P4, P4 to P
, everything is 0. Data oooooio
Divide o... into n bits each, and repeatedly input the first block, second block, etc. to terminals A1 to A7, each time obtaining outputs B, ~B, and l. .

最初はラッチLTはリセット信号R3によりリセットさ
れて出力C0は0である。従って入力A I。
Initially, the latch LT is reset by the reset signal R3 and the output C0 is 0. Therefore input AI.

Az、・・・・・・がooooiooiooo・・・・
・・とすると、A t ” Co = 0であるからB
1はO,C,もOである。またC r = A z =
 OT:あるからB2は0.Czも0である。以下同様
で83.C3は01B4.C4もOになる。しかしAs
=1であるからB、は1、C5も1となり、A h ”
’ Oであるが、C1がlなのでB6は1、C6も1に
なる。同様にB、=i。
Az,... is oooooioiooooo...
..., then A t ” Co = 0, so B
1 is O, C, is also O. Also, C r = A z =
OT: Because there is, B2 is 0. Cz is also 0. The same goes for 83. C3 is 01B4. C4 also becomes O. But As
= 1, so B is 1, C5 is also 1, and A h ”
'O, but since C1 is l, B6 becomes 1 and C6 also becomes 1. Similarly, B, =i.

C?、=1になり、B6も1になるがC8はAg=1゜
C7=1であるからOになる。B9はCIl、A9がO
であるからOになり、C1もOになる。B、。。
C? ,=1, and B6 also becomes 1, but C8 becomes O because Ag=1°C7=1. B9 is CIl, A9 is O
Therefore, it becomes O, and C1 also becomes O. B. .

B、なども0.C8゜+C11なども0になる。こうし
て本回路ではA、〜A7のうちの最初の1から次の1ま
で、B、〜B7の該当ビットが1になり、A1〜A、、
に再び1が現われるならそのlから次の1まで、B、〜
B、、の該当ビットが1になり(奇数番から偶数番まで
が1になり)、輪郭内塗り潰しが行なわれる。
B, etc. are also 0. C8°+C11 etc. also become 0. In this way, in this circuit, the corresponding bits of B, ~B7 become 1 from the first 1 of A, ~A7 to the next 1, and A1 ~A, .
If 1 appears again in , from that l to the next 1, B, ~
The corresponding bits of B, , become 1 (odd numbers to even numbers become 1), and the inside of the outline is filled in.

しかしこの回路では輪郭パターンデータに1が1つしか
ない(奇数番の1に対する偶数番の1がない)と、その
l以降が全てlになってしまう(塗り潰されてしまう)
という問題がある。lが1つしかないというケースは、
文字、図形の鋭い角や細幅部分で発生する。
However, in this circuit, if there is only one 1 in the contour pattern data (there is no even numbered 1 for an odd numbered 1), everything after that number will become 1 (will be filled out).
There is a problem. In the case where there is only one l,
Occurs on sharp corners and narrow parts of characters and figures.

輪郭点から判別点を決定し、判別点間を埋めるソフト処
理で輪郭内塗り潰しを行なう方式を本発明者は先に出願
している(特開昭63−305478 )。
The present inventor has previously filed an application (Japanese Unexamined Patent Publication No. 305478/1986) for a method in which discriminant points are determined from contour points and the contour is filled in by software processing to fill in the spaces between the discriminant points.

この概要を第7図で説明すると(a)は原図形であり、
この原図形の輪郭を抽出すると同図(ロ)になる。この
輪郭図形の各画素(各ドツト)を同図(C)のように左
廻りに辿り、所定の論理でドツトの発生/消去を行なう
と同図(d)が得られる。この図の2重丸で示したドツ
トがこ\では判別点と呼ぶものであり、横方向(塗り潰
しの際の走査方向)では各2つだけしかない。
To explain this overview using Figure 7, (a) is the original figure,
When the outline of this original figure is extracted, the same figure (b) is obtained. If each pixel (each dot) of this contour figure is traced counterclockwise as shown in FIG. 10C and the dots are generated/erased according to a predetermined logic, the image shown in FIG. 2D is obtained. The dots indicated by double circles in this figure are here called discrimination points, and there are only two of each in the horizontal direction (scanning direction when filling in).

判別点の設定要領を下表に示す。この表で■は当該画素
に判別点を設定しない、■は当該画素に判別点を設定す
る、■は当該画素の右側に判別点を設定する、■は当該
画素、および当該画素の右側の両方に判別点を設定する
、である。
The table below shows how to set the discrimination points. In this table, ■ indicates that no discrimination point is set for the pixel in question, ■ indicates that a discrimination point is set for the pixel in question, ■ indicates that a discrimination point is set on the right side of the pixel, and ■ indicates both the pixel and the right side of the pixel. The decision point is set at .

参照する画素に対して、その1つ前の画素からの移動方
法を、先行する移動方向とし、参照する画素に対して、
その1つ後の画素への移動方向を、追従する移動方向と
し、参照する画素に対して、どのように判別点を設定す
べきかが、その交差する処理となる。処理としては、■
〜■の4通りであり、判別点J I+ J I 1 +
 ・・・・・・はこの表のルールで設定される。
For the reference pixel, the movement method from the previous pixel is set as the preceding movement direction, and for the reference pixel,
The moving direction to the next pixel is set as the moving direction to be followed, and how to set the discrimination point for the reference pixel is the intersecting process. As for processing,■
There are four ways ~ ■, and the discrimination point J I + J I 1 +
... are set according to the rules in this table.

この第7図(d)で、走査はテレビスキャン(左から右
、上から下)として、最初の判別点で塗り潰し開始(最
初の判別点は塗り潰す)、次の判別点で塗り潰し終了(
次の判別点は塗り潰さない、塗り潰すのはその1つ前ま
で)とすると、第7図(a)の原図形が得られる。
In Fig. 7(d), the scanning is done as a TV scan (from left to right, top to bottom), and the filling starts at the first discrimination point (the first discrimination point is filled out), and the filling ends at the next discrimination point (
Assuming that the next discrimination point is not filled in, but only the one before it is filled in), the original figure shown in FIG. 7(a) is obtained.

〔発明が解決しようとする課題] 従来の第6図の塗り潰し回路では、輪郭点に1が1つで
あると、その点から文字/図形領域の終端までが塗り潰
されてしまうという問題がある。
[Problems to be Solved by the Invention] The conventional filling circuit shown in FIG. 6 has a problem in that if there is one 1 at an outline point, the area from that point to the end of the character/figure area will be filled.

この点第7図の方式では、輪郭点から判別点を生成し、
判別点は必らず2つであって(対になっ1いる)、この
対の判別点間を塗り潰すというソート処理で、誤まりの
ない塗り潰し処理ができる。
In this respect, the method shown in Figure 7 generates discriminant points from contour points,
There are always two discrimination points (one exists in pairs), and by sorting the areas between the discrimination points in the pair, it is possible to perform error-free filling processing.

しかしソフト処理であるから時間がか\る。However, since it is a software process, it takes time.

本発明はか覧る点を改善し、塗り潰しを誤まセなく正確
に、かつ迅速に行なうことができるよ;にすることを目
的とするものである。
It is an object of the present invention to improve the visibility and to enable filling in accurately and quickly without making any mistakes.

(課題を解決するための手段) 第1図に本発明の塗り潰し回路を示す。N個O徘他オア
ゲートEXORI〜EXORNとラッチ回路LTを図示
のように接続してなる。排他オアゲートEOR+〜EX
ORHの一方の入力は判別点データのNピット分り、−
D、であり、他方の入力は前段排他オアゲートの出力で
あり、但し初段EXOR、のそ才はランチ回路LTの出
力である。最終段排他オフゲー) EXORMの出力は
ラッチ回路LTの入力とtす、このラッチ回路LTはク
ロンクCKの入カズ該EXORNの出力取込みを行ない
、リセット信号FSTの入力でリセットされて出力を0
にする。FST入力は各走査ラインの先頭が入力される
各排他オアゲートの出力Q1〜Q、は、入力り、〜DN
に対する塗り潰し処理後の出力である。
(Means for Solving the Problems) FIG. 1 shows a filling circuit of the present invention. It is formed by connecting N OR gates EXORI to EXORN and a latch circuit LT as shown. Exclusive or gate EOR+~EX
One input of ORH is for N pits of discrimination point data, -
D, and the other input is the output of the previous stage EXOR gate, except that the first stage EXOR is the output of the launch circuit LT. (Final stage exclusive off-game) The output of EXORM is input to the latch circuit LT. This latch circuit LT receives the output of the EXORN from the input of the clock CK, and is reset by the input of the reset signal FST to set the output to 0.
Make it. The FST input is the output Q1~Q of each exclusive OR gate into which the beginning of each scanning line is input, and the input is ~DN.
This is the output after the filling process.

文字/図形には白黒を反転したもの(白地に黒の文字/
図形が正常であるのに対して、黒地に白の文字/図形に
したもの)があるが、この場合の塗り潰し回路を第2図
に示す。こ\では、第1図のEXOR、〜EXORNの
前段に黒白反転用のN個の排他オアゲート群E OR+
 +〜EORMIを、また後段に白黒反転用(復旧用)
のN個の排他オアゲート群EOR,,〜EOR,□を付
加している。
Text/shapes are inverted black and white (black text on a white background/
In contrast to normal graphics, there is one in which white characters/figures are used on a black background.The filling circuit in this case is shown in FIG. In this case, a group of N exclusive OR gates EOR+ for black-and-white inversion is placed before EXOR and ~EXORN in Figure 1.
+~EORMI, and later for black and white inversion (for restoration)
N exclusive OR gate groups EOR, , ~EOR, □ are added.

〔作用〕[Effect]

この回路により、Nビットずつに区切った判定ビットD
r〜D、を正しく塗り潰し処理したものQ、−Q、を迅
速に出力することができる。
With this circuit, the judgment bit D divided into N bits each
Q, -Q, obtained by correctly filling out r to D, can be quickly output.

N=8として第3図を参照しながらこれを詳細に説明す
ると、第1図の入力D1〜D7が第3図(a)1の00
100000であり、最初ラッチ回路LTの出力C6は
クリアされて0であるから、出力Q1〜QNは第3図(
b) [の00111111となる。即ちD1=0、C
0=0ならQl=oでありDz=0.Q1=0ならQ2
=0である。しかしD=1であるからQ2=0ならQ3
=tになり、Q3=lならD4=0でQ4=1.以下同
様でD5〜DがOならQ、〜Q8はlになる。ラッチ回
路L′ヘハこのQs=tが取込まれる。
To explain this in detail with reference to FIG. 3 assuming N=8, the inputs D1 to D7 in FIG. 1 are 00 in FIG. 3(a)1.
100000, and the output C6 of the latch circuit LT is initially cleared to 0, so the outputs Q1 to QN are as shown in Figure 3 (
b) [ becomes 00111111. That is, D1=0, C
If 0=0, then Ql=o and Dz=0. If Q1=0 then Q2
=0. However, since D=1, if Q2=0, then Q3
=t, and if Q3=l, then D4=0 and Q4=1. Similarly, if D5 to D are O, Q and Q8 are l. This Qs=t is taken into the latch circuit L'.

次にD I−D sとして第3図(a) 11の処理単
位10110000が入力すると、Q、−Q、は同図t
b> nの如<00100000になる。即ち、D。
Next, when the processing unit 10110000 of FIG. 3(a) 11 is input as D I-D s, Q, -Q,
b>n<00100000. That is, D.

=1そしてC0=1であるからQ+=o、D z = 
0そしてQ1=0であるからQ2=0、D3==1モし
てQ2=0であるからQ3=1.D4=lそしてQ−1
であるからQ4=0、D、=0そしてQ、=0であるか
らQ、=O,以下同様で、Q6〜Q、= 0になる。
= 1 and C0 = 1, so Q+ = o, D z =
0, and since Q1=0, Q2=0, D3==1, and Q2=0, so Q3=1. D4=l and Q-1
Therefore, Q4=0, D,=0, and Q,=0, so Q,=O, and so on, so that Q6 to Q,=0.

次にD1〜D8として第3図(a) I[[の処理単位
0100IO00が入力すると、Q1〜Q8は同図(b
) I[[の01110000になる。即ち、D1=0
かつC0=0であるからQ、=0.D2=1かっQ=0
であるからQ2=1.D3=OかつQz=tであるから
Q3=l、D、=0かつQ:l= 1であるからQ、=
1、D5=1かつQ、=1であるからQ、=0、以下同
様でQ6〜Q、=0になる。
Next, when the processing unit 0100IO00 of FIG. 3(a) I[[ is input as D1 to D8, Q1 to Q8 are
) I[[becomes 01110000. That is, D1=0
And since C0=0, Q,=0. D2=1 or Q=0
Therefore, Q2=1. Since D3=O and Qz=t, Q3=l, D,=0 and Q:l=1, so Q,=
1, D5=1 and Q,=1, so Q,=0, and so on, so that Q6 to Q,=0.

明らかに第3図(b)は第4図(a)の1の間を1で埋
めたもの、詳しくは最初(奇数番目)の1から次の(偶
数番目)の1の手前までを1で埋めたものであり、輪郭
ドツト間をドツトで埋めたものである。第6図のように
オアゲートGt〜G、lは必要とせず、また第6図のよ
うに輪郭ドツトそのものを使用するのでなく、それより
生成した判別ドツトを使用し、これは必ず対になってい
るので、奇数番で終ることはなく従って該奇数番より文
字/図形領域の終端まで塗り潰してしまうという誤りを
生じることはない。またハードウェアでの同時処理であ
るから、ソフトウェアで逐次処理のように、処理に時間
がか\ることもない。
Obviously, Figure 3 (b) is the result of filling in the spaces between the 1's in Figure 4 (a) with 1's, more specifically, from the first (odd numbered) 1 to just before the next (even numbered) 1, it is filled in with 1's. The dots are filled in between the outline dots. As shown in Fig. 6, the OR gates Gt~G,l are not required, and instead of using the contour dots themselves as shown in Fig. 6, the discrimination dots generated from them are used, and these dots are always paired. Therefore, it does not end at an odd number, and therefore, there is no possibility of the error of filling in from the odd number to the end of the character/graphic area. Also, since it is a simultaneous process in hardware, it does not take much time to process, unlike sequential processing in software.

第2図の回路も、同様に正確なかつ迅速な塗り潰し処理
ができる。第3図(C)〜(f)を参照してこれを詳細
に説明すると、今、第2図の入力データ(白黒反転画像
の輪郭点に対して生成した判別データ) D I I〜
D N Iが第3図(C) Iの11011111とす
ると、白黒反転制御信号Sが1(反転指示)なら、黒白
反転用排他オアゲートEOR,,〜EOR,,の出力り
、〜D、は第3図(d) Iになる。
The circuit shown in FIG. 2 can similarly perform accurate and rapid filling processing. To explain this in detail with reference to FIGS. 3(C) to (f), now the input data in FIG. 2 (discrimination data generated for the contour points of the black and white inverted image) D I I ~
If D N I is 11011111 in FIG. 3(C) I, then if the black and white inversion control signal S is 1 (reversal instruction), the outputs of the black and white inversion exclusive OR gates EOR,, ~EOR,, and ~D are the Figure 3 (d) becomes I.

これは同図(a) Iと同しであり、通常(白黒非反転
)の画像の輪郭点に対して生威した判別点と同しである
。これは次のNピント入力D11〜D□即ち第3図(C
) II、同図(C) III 、・・・・・・につぃ
ても同様であり、EOR,、〜EOR,,の挿入で、非
反転のものに戻される。この非反゛転のものに戻した判
別ビットD+ 〜D、にっきEXORI””EXORN
 T:塗り潰し処理すれば、得られる出力Q1〜Q、は
第3図(e)のI、U、lIIの如<で、コレハ同図(
b)ノ1. 11.  IIIと同しである。これを白
黒反転用排他オアゲートEOR,2〜EORN□で反転
すると同図(f)のI、  II。
This is the same as (a) I in the same figure, and is the same as the discrimination point used for the contour point of a normal (black and white non-inverted) image. This corresponds to the next N focus inputs D11 to D□, that is, Fig. 3 (C
) II, (C) III, . Discrimination bit D+ ~D returned to this non-inverted one, Nikki EXORI""EXORN
T: If the filling process is performed, the outputs Q1 to Q obtained are as shown in I, U, and II in Fig. 3(e), and this is as shown in the same figure (
b) No.1. 11. Same as III. When this is inverted using exclusive OR gates EOR, 2 to EORN□ for black and white inversion, I and II in the same figure (f) are obtained.

■の如くなる。これは黒地に白の塗り潰し図形を示して
いる。
It becomes like ■. This shows a white filled figure on a black background.

第4図(a)は白地に黒の文字/図形を、また同図(b
)は黒地に白の文字/図形を表わしており(勿論白/黒
は赤/黄などでもよく、2値画像とその反転画像のこと
)、第4図(b)の反転画像の輪郭パターンデータは輪
郭点P1とP2.P3とP、(他も同し)をOで、他は
lで表わしている。この輪郭点P、とP z、 P 3
とP4の間を0で埋めるのが反転画像の塗り潰し処理で
あり、第3図(C)と(f)を比べれば明らかなように
、確かにこの塗り潰し処理が行なわれている。
Figure 4 (a) shows black letters/figures on a white background, and Figure 4 (b)
) represents white characters/figures on a black background (of course, white/black can also be red/yellow, etc., and refers to a binary image and its inverted image), and the outline pattern data of the inverted image in Fig. 4(b) are contour points P1 and P2. P3 and P (the others are the same) are represented by O, and the others are represented by l. This contour point P, and P z, P 3
Filling in the space between and P4 with 0 is the filling process for the inverted image, and as is clear from comparing FIGS. 3(C) and 3(f), this filling process is certainly performed.

〔実施例〕〔Example〕

第5図に本発明の実施例を示す。12は輪郭情報の入力
回路、14は判別ビット抽出回路、16はメモリ、18
は判別ビット読込回路、20は第1図、第2図に示した
塗り潰し回路、22は書込み回路、24はメモリである
FIG. 5 shows an embodiment of the present invention. 12 is a contour information input circuit, 14 is a discrimination bit extraction circuit, 16 is a memory, 18
2 is a discrimination bit reading circuit, 20 is a filling circuit shown in FIGS. 1 and 2, 22 is a writing circuit, and 24 is a memory.

輪郭情報の入力回路12に第7図(b)に示した輪郭情
報が入力すると、これより判別ビット抽出回路14は第
7図(d)の判別ピッlJ+t、Jz□・・・・・・を
生威し、これらをメモリ16へ書込む。メモリ16の記
憶内容はイメージ的には第7図(d)と同じとしてよい
(2次元ドツトアレイを考え、判別ビットJz、Jz+
、・・・・・・相当のドツトが1、他のドツトは0の2
次元パターン)。このメモリ16の2次元ドツトパター
ンを判別ビッロ売込回路18がテレビスキャン式に読出
し、Nビットずつにしてその各Nビット処理単位を逐次
輪郭塗り潰し回路20へ入力する。回路20では前述の
塗り潰し処理を行なって出力Q、、Q、、・・・・・・
Q、を生し、これを書込み回路22はメモリ24へ、同
しテレビスキャン式に、書込んで行く。この結果メモリ
24には第7図(a)の塗り潰し画像ドツトパターンが
格納される。勿論、塗り潰し対象の文字/図形は第7図
の図形に限らない。白黒反転画像なら、塗り潰したそれ
がメモリ24に格納される。
When the contour information shown in FIG. 7(b) is input to the contour information input circuit 12, the discrimination bit extraction circuit 14 uses the discrimination bits lJ+t, Jz□, etc. shown in FIG. 7(d) from this input. and write these to the memory 16. The stored contents of the memory 16 may be conceptually the same as shown in FIG. 7(d) (considering a two-dimensional dot array, the discrimination bits Jz, Jz+
,...The corresponding dot is 1, other dots are 0, 2
dimensional pattern). The two-dimensional dot pattern in the memory 16 is read out by the discriminating biro sales circuit 18 in a television scan manner, and each N-bit processing unit is sequentially input to the contour filling circuit 20. The circuit 20 performs the above-mentioned filling process and outputs Q, , Q, . . .
Q, and the write circuit 22 writes it into the memory 24 in the same television scan manner. As a result, the filled image dot pattern shown in FIG. 7(a) is stored in the memory 24. Of course, the characters/figures to be filled out are not limited to the figures shown in FIG. If the image is a black and white inverted image, the filled-in image is stored in the memory 24.

第2図の回路で、白黒反転制御信号Sを0にすると、排
他オアゲートE OR+ r〜FOR,、、EOR1□
〜EOR,□はスルーになるから、この第2図の回路は
白黒非反転画像の塗り潰しもできる。
In the circuit shown in Figure 2, when the black and white inversion control signal S is set to 0, the exclusive OR gate E OR+ r~FOR, , EOR1□
~EOR, □ is through, so the circuit shown in FIG. 2 can also fill in black and white non-inverted images.

輪郭ドツトから判別ドツトを性成する要領は特開昭63
−305478に詳述されているが、第8図でその一部
を説明すると、Pi、P、、Pkは輪郭ドツトのうちの
隣接3ドツトを示す。各々はX、Y座標を持ち、P、の
X、 Y座標はX、、Y、、PJのそれはX、、Y、P
、のそれはXk、Ykである。
The method for forming discrimination dots from outline dots is described in Japanese Patent Application Laid-open No. 1983
-305478, and a part of it will be explained with reference to FIG. 8. Pi, P, , Pk indicate three adjacent dots among the contour dots. Each has X, Y coordinates, the X, Y coordinates of P are X,,Y,, those of PJ are X,,Y,P
, are Xk and Yk.

dX+=Xt  Xl dVI=yi  Yj+ dx
2=xJ X□d y z =Y i  Y kを求め
ると、これらの正、負、零で輪郭点を辿って行く方向が
分る。第8図(a)では、矢印方向に辿ってきたとする
と輪郭点PJではdXl、d、□は零であるがdyl、
dy2は負であり、このとき判別点(×印で示す)はP
1上に付ける。
dX+=Xt Xl dVI=yi Yj+ dx
2=xJ In Fig. 8(a), if we follow the direction of the arrow, at the contour point PJ, dXl, d, and □ are zero, but dyl,
dy2 is negative, and in this case, the discriminant point (indicated by an x mark) is P
Put it on top of 1.

第8図(b)ではdVI+  dy2が正であり、この
ときP、のIドツト右に判別点を付ける。
In FIG. 8(b), dVI+dy2 is positive, and in this case, a discrimination point is placed to the right of the I dot of P.

第8図(C)では辿る方向は上から来て左へ折れる方向
であり、このときは折曲点Pjの1ドツト右に判別点を
付け、同図(d)では下から来て右へ折れる方向であり
、このときは折曲点PJに判別点を付ける。また第8図
(e)では左から来て下方への方向であり、このときは
輪郭点P、のiドツト右に判別点を付け、同図(f)で
は右から来て上方への方向であるからこのときはP、に
判別点を付ける。
In Fig. 8(C), the direction to be traced is the direction coming from the top and bending to the left.In this case, a discrimination point is placed one dot to the right of the bending point Pj, and in Fig. 8(d), the direction is coming from the bottom and bending to the right. This is the direction of bending, and in this case, a discrimination point is attached to the bending point PJ. In addition, in Fig. 8(e), the direction is coming from the left and downward, in this case, a discrimination point is placed to the right of the i-dot of the contour point P, and in Fig. 8(f), the direction is coming from the right and upward. Therefore, in this case, a discrimination point is attached to P.

第8図(g)では下方から来て下方へ折返しており、こ
の場合は折返点P4とその1ドット右に判別点を付け、
同図(h)では上方から来て上方へ折返しており、この
場合は折返し点P、とそのドツト右に判別点を付ける。
In Fig. 8 (g), it comes from below and turns downwards, and in this case, a discrimination point is placed at turning point P4 and one dot to the right of it.
In the figure (h), the dot comes from above and turns back upwards, and in this case, a turning point P and a discrimination point are placed to the right of that dot.

また第8図(i)では右方から来て右方へ折返しており
、この場合は折返し点PJに判別点を付け、同図(j)
では左方から来て左方へ折返しているので、この場合は
折返し点PJの1ドット右に判別点を付ける。更に、第
8図0<)では左下方から来て左下方へ折返しており、
この場合は折返し点P、とその1ドット右に判別点を付
ける。
Also, in Figure 8 (i), it comes from the right and turns back to the right. In this case, a discrimination point is attached to the turning point PJ, and
In this case, since it comes from the left and turns back to the left, in this case, a discrimination point is placed one dot to the right of the turning point PJ. Furthermore, in Figure 8 0<), it comes from the lower left and turns back to the lower left.
In this case, a turning point P and a discrimination point are placed one dot to the right of the turning point P.

前記表で言えば、このケース(k)は処理■により判別
点が設定される。
In the table above, in this case (k), the decision point is set by process (2).

第7図(d)の判別点J1とJ、は第8図(陶のルール
で、また同判別点J41は第8図(b)のルールで、ま
た同判別点J31は第8図(j)のルールで生成される
。横方向(塗り潰し処理時の主走査方向)に並ぶ輪郭点
は左端と右端のみ判別点を生成し、中間点は判別点を生
成しない。従って第7図CC)のDS+D6間の輪郭点
には判別点がない。輪郭点D5については第8図(cl
+のルールで判別点JSIが生成され、判別点J6は第
8図には示さなかったルール(右から来て左上へ進むと
きの折曲点に付ける判別点の生成ルール、前記表のルー
ル■)により、輪郭点D6の位置に付けられる。第7図
(d)のE7は、横方向に並ぶ輪郭点群の端点であるが
、先方する移動方向が右下方、追従する移動方向が右方
、であるから前記表の処理■が適用され、判別点は付さ
れない。E7の右隣りの輪郭点は最初は先行、追従各移
動方向が右方、右方、次は(帰りは)左方、左方である
から前記表の処理のが適用され、判別点は付けられない
The discriminant points J1 and J in Fig. 7(d) are determined by the rule of Fig. 8 (Tue), the discriminant point J41 is determined by the rule of Fig. 8(b), and the discriminant point J31 is determined by the rule of Fig. 8(j). ) is generated according to the rule of .Contour points arranged in the horizontal direction (main scanning direction during filling processing) generate discriminant points only at the left and right ends, and do not generate discriminant points at intermediate points.Therefore, as shown in Fig. 7 (CC) There is no discrimination point at the contour point between DS+D6. Regarding the contour point D5, see FIG.
The discrimination point JSI is generated according to the + rule, and the discrimination point J6 is generated using a rule not shown in Figure 8 (the generation rule for the discrimination point attached to the bending point when coming from the right and proceeding to the upper left, the rule in the table above) ) is attached to the position of contour point D6. E7 in FIG. 7(d) is an end point of a group of contour points lined up in the horizontal direction, but since the forward movement direction is downward to the right and the following movement direction is to the right, the process (2) in the table above is applied. , no discrimination points are attached. As for the contour point to the right of E7, first the leading and following movement directions are rightward and rightward, and then (on the return) leftward and leftward, so the processing in the table above is applied, and the discrimination point is attached. I can't do it.

尚判別点の設定は排他的に行われるため偶数回設定され
ると消去される。
Note that since the determination point is set exclusively, it will be deleted if it is set an even number of times.

〔発明の効果] 以上説明したように本発明によれば輪郭点領域の塗り潰
しを迅速に、誤りを生しることなく確実に行なうことが
でき、また回路構成も簡単である利点が得られる。
[Effects of the Invention] As described above, according to the present invention, it is possible to quickly and reliably fill in a contour point area without causing any errors, and the circuit configuration is also simple.

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

第1図および第2図は本発明1.2の原理図、第3図は
第1図および第2図の動作説明図、第4図は反転/非反
転画像の説明図、 第5図は本発明の実施例を示すブロック図、第6図は従
来例を示す回路図、 第7図は判別点の説明図、 第8図は判別点生成要領の説明図である。 第1図、第2図テEXOR、〜EXORNは塗り潰し用
の排他オアゲート、EOR,、〜EORN、は黒白反転
用の排他オアゲート、EOR,□〜EOR,□は白黒反
転用の排他オアゲート、D、〜DNは判別ビットのN個
分、Q1〜QNは塗り潰し処理後の出力である。 出 願人 富士通株式会社
Figures 1 and 2 are principle diagrams of the present invention 1.2, Figure 3 is an explanatory diagram of the operation of Figures 1 and 2, Figure 4 is an illustration of inverted/non-inverted images, and Figure 5 is FIG. 6 is a block diagram showing an embodiment of the present invention, FIG. 6 is a circuit diagram showing a conventional example, FIG. 7 is an explanatory diagram of discriminant points, and FIG. 8 is an explanatory diagram of a discriminant point generation procedure. In Figures 1 and 2, EXOR, ~EXORN are exclusive OR gates for filling, EOR, ~EORN are exclusive OR gates for black and white inversion, EOR, □~EOR, □ are exclusive OR gates for black and white inversion, D, ~DN is the number of N discrimination bits, and Q1~QN are the outputs after the filling process. Applicant: Fujitsu Limited

Claims (1)

【特許請求の範囲】 1、複数(N)個の排他オアゲート(EXOR_1〜E
XOR_N)と1個のラッチ回路(LT)を備え、走査
方向で奇数番目に検出される画像の輪郭ドット又は輪郭
ドット群の最初のドット位置に設定され、また偶数番目
に検出される該輪郭ドット又は輪郭ドット群の最後のド
ットの1ドット後の位置に設定される判別ビットが設定
されたパターンデータを複数(N)個ずつを該排他オア
ゲート(EXOR_1〜EXOR_N)の一方の入力と
し、前記ラッチ回路の出力と前段排他オアゲートの出力
を他方の入力とし、 該ラッチ回路へは最終段排他オアゲート(EXOR_N
)の出力を入力して、次の判別ビット入力時の初段排他
オアゲート(EXOR_1)の他方の入力とし、これら
の排他オアゲート(EXOR_1〜EXOR_N)の出
力(Q_1〜Q_N)を入力判別ビット(D_1〜D_
N)に対する塗り潰し後出力としてなることを特徴とす
る輪郭塗り潰し回路。2、複数(N)個の、黒白反転用
排他オアゲート(EOR_1_1〜EOR_N_1)、
塗り潰し用排他オアゲート(EXOR_1〜EXOR_
N)、および白黒反転用排他オアゲート(EOR_1_
2〜EOR_N_2)と、1個のラッチ回路(LT)を
備え、 走査方向で奇数番目に検出される白黒反転画像の輪郭ド
ット又は輪郭ドット群の最初のドット位置に設定され、
また偶数番目検出される該輪郭ドット又は輪郭ドット群
の最後のドットの1ドット後の位置に設定される判別ビ
ットが設定されたパターンデータを複数(N)個ずつを
、前記黒白反転用排他オアゲートを通して、前記塗り潰
し用排他オアゲートの一方の入力とし、 前記ラッチ回路の出力と前段排他オアゲートの出力を他
方の入力とし、 該ラッチ回路へは最終段排他オアゲート(EXOR_N
)の出力を入力して、次の判別ビット入力時の初段排他
オアゲート(EXOR_1)の他方の入力とし、これら
の塗り潰し用排他オアゲート(EXOR_1〜EXOR
_N)の出力(Q_1〜Q_N)を白黒反転用排他オア
ゲート(EOR_1_2〜EOR_N_2)を通して出
力するようにしてなることを特徴とする輪郭塗り潰し回
路。
[Claims] 1. A plurality of (N) exclusive OR gates (EXOR_1 to E
XOR_N) and one latch circuit (LT), and is set at the first dot position of the contour dot or contour dot group of the odd-numbered image detected in the scanning direction, and the contour dot detected even-numbered. Alternatively, a plurality (N) pieces of pattern data each having a discrimination bit set at a position one dot after the last dot of the outline dot group are input to one of the exclusive OR gates (EXOR_1 to EXOR_N), and the latch The output of the circuit and the output of the previous stage exclusive OR gate are used as the other inputs, and the final stage exclusive OR gate (EXOR_N
) is input as the other input of the first-stage exclusive OR gate (EXOR_1) when the next discrimination bit is input, and the outputs (Q_1 to Q_N) of these exclusive OR gates (EXOR_1 to EXOR_N) are input to the input discrimination bits (D_1 to D_
A contour filling circuit characterized in that it is an output after filling for N). 2. A plurality of (N) exclusive OR gates for black and white inversion (EOR_1_1 to EOR_N_1),
Exclusive OR gate for filling (EXOR_1 to EXOR_
N), and exclusive OR gate for black and white inversion (EOR_1_
2 to EOR_N_2) and one latch circuit (LT), which is set at the first dot position of the contour dot or group of contour dots of the black and white inverted image detected oddly in the scanning direction,
Further, a plurality (N) pieces of pattern data each having a discrimination bit set at a position one dot after the last dot of the even-numbered detected contour dot or group of contour dots are transferred to the black-and-white inversion exclusive OR gate. is used as one input of the exclusive OR gate for filling, the output of the latch circuit and the output of the previous stage exclusive OR gate are used as the other input, and the final stage exclusive OR gate (EXOR_N) is connected to the latch circuit.
) is input to the other input of the first-stage exclusive OR gate (EXOR_1) when the next discrimination bit is input, and these filling exclusive OR gates (EXOR_1 to EXOR
_N) outputs (Q_1 to Q_N) through black and white inversion exclusive OR gates (EOR_1_2 to EOR_N_2).
JP2017075A 1990-01-26 1990-01-26 Contour paint-out circuit Pending JPH03222077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017075A JPH03222077A (en) 1990-01-26 1990-01-26 Contour paint-out circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017075A JPH03222077A (en) 1990-01-26 1990-01-26 Contour paint-out circuit

Publications (1)

Publication Number Publication Date
JPH03222077A true JPH03222077A (en) 1991-10-01

Family

ID=11933863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017075A Pending JPH03222077A (en) 1990-01-26 1990-01-26 Contour paint-out circuit

Country Status (1)

Country Link
JP (1) JPH03222077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05188906A (en) * 1992-01-13 1993-07-30 Japan Radio Co Ltd Graphic display device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5556241A (en) * 1978-10-19 1980-04-24 Toshiba Corp Crt display unit
JPS61249175A (en) * 1985-04-24 1986-11-06 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Graphic processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5556241A (en) * 1978-10-19 1980-04-24 Toshiba Corp Crt display unit
JPS61249175A (en) * 1985-04-24 1986-11-06 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Graphic processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05188906A (en) * 1992-01-13 1993-07-30 Japan Radio Co Ltd Graphic display device

Similar Documents

Publication Publication Date Title
JPS61249175A (en) Graphic processor
JPH09237338A (en) Method and device for quickly smoothing contour
JPH03222077A (en) Contour paint-out circuit
JPS5935270A (en) Picture element density converter
JPH05181454A (en) Display system and its control circuit, and display device
JPS6016634B2 (en) Graphic generation method in display devices
JPS63305478A (en) Pattern information restoring device
JP3072721B2 (en) Image processing method and apparatus, storage medium for storing image processing program
JP3473056B2 (en) Image processing method and apparatus
JP2575047B2 (en) Digital image restoration device
JP2794446B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JPH0573693A (en) Outline paint out system
JP3092154B2 (en) Digital drawing equipment
JPH06314091A (en) Method and circuit for contour painting out
JP2896097B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JPH01205388A (en) Generation system for high quality character and graphic or the like
JPS6326773A (en) Display processing method for graphic information
JP2512252B2 (en) Image scaling device
JPH01243188A (en) Contour detector
JPH03214368A (en) Painting-out circuit
JPS59124371A (en) Character pattern expansion system
JPH05330145A (en) Image smoothing processing system
JPH01106183A (en) Picture processing system
JPS5836350B2 (en) Pattern display method
JPH04684A (en) Graphic painting-out method