JPS6123558B2 - - Google Patents

Info

Publication number
JPS6123558B2
JPS6123558B2 JP54165030A JP16503079A JPS6123558B2 JP S6123558 B2 JPS6123558 B2 JP S6123558B2 JP 54165030 A JP54165030 A JP 54165030A JP 16503079 A JP16503079 A JP 16503079A JP S6123558 B2 JPS6123558 B2 JP S6123558B2
Authority
JP
Japan
Prior art keywords
data
mask
contour
video
erased
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
Application number
JP54165030A
Other languages
Japanese (ja)
Other versions
JPS5688186A (en
Inventor
Shinichi Shimizu
Kyoshi Iwata
Yukikazu Kaburayama
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 JP16503079A priority Critical patent/JPS5688186A/en
Publication of JPS5688186A publication Critical patent/JPS5688186A/en
Publication of JPS6123558B2 publication Critical patent/JPS6123558B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、図形消去処理方法、特に図形を走査
したビデオ信号に基づいてビツト対応の処理を行
なうことによつて図形処理をする図形処理方法に
おいて、特定の図形を消去するために消去所望の
対象図形の外形を型どつた輪郭パターンを窓に切
つて作つた輪郭マスクと当該輪郭マスクに対応す
るクリアマスクとを用いて、図形を走査したビデ
オ信号のビデオデータが各輪郭マスクのデータと
すべて一致したときクリアマスクのデータをビデ
オデータに振り替えて図形を消去する図形消去処
理方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a figure erasing method, particularly a figure processing method in which a figure is processed by performing bit-based processing based on a video signal obtained by scanning a figure. In order to do this, the video data of the video signal obtained by scanning the figure is individually scanned using an outline mask made by cutting out an outline pattern shaped like the outline of the target figure to be erased into a window and a clear mask corresponding to the outline mask. The present invention relates to a figure erasing method for erasing a figure by replacing the clear mask data with video data when all the data match the contour mask data.

従来、文字認識や画像処理等における図形消去
処理は、3×3ないし5×5程度のマスクを対象
とする図形に繰返し作用させ部分的に図形を削り
取る手法が用いられている。この手法は繰返し行
なうため処理時間が長くなり、また図形を削り取
るための回路の段数も多く複雑となり、特定の図
形を消去するには処理時間、回路構成の複雑さが
難点となつている。一方画面を走査したビデオ信
号に基づいて白領域・黒領域に対応した2値化ビ
ツトの黒領域に対応するビツトの数が或るしきい
値以下であるならばこれらの黒領域は雑音である
と認識し、これらの雑音を消してしまう雑音消去
処理も存在するが、このような不定形のものでは
なく予め定められた一定の形の消去対象図形例え
ばプリント配線板に用いられる原画パターンの不
要の図形を処理する場合の+や−等の記号、文
字、図等を特定して消去することが望まれること
がある。
Conventionally, in figure erasing processing in character recognition, image processing, etc., a method has been used in which a 3×3 to 5×5 mask is repeatedly applied to a target figure to partially erase the figure. Since this method is repeated, the processing time is long, and the number of stages of the circuit for removing the figure is large and complicated, and the processing time and complexity of the circuit configuration are difficult points for erasing a specific figure. On the other hand, if the number of bits corresponding to black areas of the binarized bits corresponding to white areas and black areas based on the video signal scanned on the screen is less than a certain threshold value, these black areas are noise. There is a noise erasing process that recognizes this and erases these noises, but it is not a fixed shape like this, but a predetermined shape to be erased, such as an unnecessary original pattern used on a printed wiring board. When processing graphics, it may be desirable to identify and erase symbols such as + and -, characters, figures, etc.

本発明は、上記の問題点、要望に応えることを
目的としたもので、消去しようとする図形(文
字、記号、あらゆる図を含む)とほゞ同じ大きさ
のマスクを用意し、消去所望の対象図形の外形を
型どつて作つた2値化輪郭マスクと該輪郭マスク
に対応するクリアマスクとをもうけ、画面上の図
形を走査したビデオ信号のビデオデータと該輪郭
マスクに格納されたデータを比較することによ
り、1度の処理で特定の図形を短時間に消去が可
能となるとともに、当該消去回路構成の簡潔化を
図つたものである。そしてそのため、本発明の図
形消去処理方法は、画面上の図形を走査したビデ
オ信号に基づいて白領域・黒領域に対応したビツ
ト対応処理を行なつて図形処理をする図形処理回
路において、予め定められた一定の消去対象図形
の外形を型どつた輪郭パターンを用意し、該輪郭
パターンをm(行)×n(列)メツシユに分割し
た窓の2値化データを作成し、各列毎に対応させ
て輪郭マスクと当該輪郭マスクに対応するクリア
マスクとに分解して各列毎に用意しておき、消去
所望の対象図形を包含する画面を走査して得た2
値化ビデオデータを列毎に設けられたビデオレジ
スタに順次入力し、該ビデオデータが各列に用意
された前記輪郭マスクと比較して各列のすべての
輪郭マスクに一致したとき当該ビデオデータをク
リアマスクのデータに振り替えて出力することに
より、消去対象図形を消去するようにしたことを
特徴としている。以下図面を参照しつつ説明す
る。
The present invention is aimed at meeting the above-mentioned problems and demands.A mask of approximately the same size as the figure to be erased (including characters, symbols, and any figures) is prepared, and the mask to be erased is removed. A binary contour mask made by molding the outer shape of the target figure and a clear mask corresponding to the contour mask are created, and the video data of the video signal obtained by scanning the figure on the screen and the data stored in the contour mask are created. By comparing, a specific figure can be erased in a short time in one process, and the eraser circuit configuration can be simplified. Therefore, the figure erasure processing method of the present invention is implemented in a figure processing circuit that processes figures by performing bit corresponding processing corresponding to white areas and black areas based on a video signal obtained by scanning figures on a screen. Prepare a contour pattern modeled after the contour of a certain figure to be erased, and create binarized data of a window by dividing the contour pattern into meshes of m (rows) x n (columns). A contour mask corresponding to the contour mask and a clear mask corresponding to the contour mask are prepared for each column, and the screen containing the target figure to be erased is scanned.
The encoded video data is sequentially input to the video register provided for each column, and the video data is compared with the contour masks prepared for each column, and when the video data matches all the contour masks of each column, the video data is The feature is that the figure to be erased is erased by replacing it with clear mask data and outputting it. This will be explained below with reference to the drawings.

第1図は消去所望の対象図形の一例、第2図は
輪郭マスク及びクリアマスク作成回路の一実施例
を示すブロツク図、第3図は第2図のクリアマス
ク作成回路の処理例、第4図は輪郭マスク及びク
リアマスク作成の一例、第5図は図形処理原図の
一例、第6図は本発明の図形消去処理方法の一実
施例構成のブロツク図、第7図は図形消去判別部
の具体的回路構成図を示す。
FIG. 1 is an example of a target figure that is desired to be erased, FIG. 2 is a block diagram showing an embodiment of the contour mask and clear mask creation circuit, FIG. 3 is a processing example of the clear mask creation circuit of FIG. 2, and FIG. The figure shows an example of creating a contour mask and a clear mask, FIG. 5 shows an example of a figure processing original, FIG. 6 is a block diagram of an embodiment of the figure erasing method of the present invention, and FIG. 7 shows the figure erasure determining section. A specific circuit configuration diagram is shown.

第1図において11は消去所望の対象図形で、
該消去所望の対象図形11を覆う大きさのマスク
12を用意し、該マスク12は縦方向にm横方向
にnのm×n個のメツシユ13をもつ窓windと
される。同図においては5×5メツシユの窓
windとされている。第2図は上記消去所望の対
象図形11から輪郭マスク及びクリアマスクを作
成する回路のブロツク図で、図中、14は輪郭パ
ターンを表わす。該輪郭パターン14は第1図に
おけるマスク12を5×5メツシユのメツシユ1
3に分割された消去所望の対象図形11に対して
「0」を与え、対象図形11に隣接するメツシユ
を含めて図形11以外のメツシユ13を「1」と
コード化して得られた2値化データ窓の集合体で
ある。x1ないしx5は第1図のマスク12を5×5
メツシユのメツシユ13に分割した横列のライン
のメツシユ番号を示し、y1ないしy5はその縦列の
段のメツシユ番号を表わす。15はカウンタ、1
6はデコーダ、19はクリアマスク作成回路、1
7−1ないし17−5は「輪郭マスク1」ないし
「輪郭マスク5」をそれぞれ表わし、18−1な
いし18−5は「クリアマスク1」ないし「クリ
アマスク5」をそれぞれ表わす。一般に輪郭マス
クとこれに対応するクリアマスクはマスク12を
分割した段数nに対応する数となる。
In FIG. 1, numeral 11 is a target figure that is desired to be erased;
A mask 12 having a size that covers the target figure 11 to be erased is prepared, and the mask 12 is a window having m×n meshes 13, m in the vertical direction and n in the horizontal direction. In the figure, a 5x5 mesh window is shown.
It is said to be wind. FIG. 2 is a block diagram of a circuit for creating an outline mask and a clear mask from the target figure 11 to be erased, and in the figure, 14 represents an outline pattern. The contour pattern 14 is constructed by converting the mask 12 in FIG. 1 into a 5×5 mesh 1.
Binarization obtained by assigning "0" to the target figure 11 that is divided into 3 and desired to be erased, and coding meshes 13 other than figure 11, including meshes adjacent to the target figure 11, as "1". It is a collection of data windows. For x 1 to x 5 , mask 12 in Figure 1 is 5 x 5.
Indicates the mesh number of the row line divided into meshes 13, and y1 to y5 represent the mesh number of the row in the column. 15 is a counter, 1
6 is a decoder, 19 is a clear mask creation circuit, 1
7-1 to 17-5 represent "contour mask 1" to "contour mask 5", respectively, and 18-1 to 18-5 represent "clear mask 1" to "clear mask 5", respectively. Generally, the number of contour masks and corresponding clear masks corresponds to the number of stages n into which the mask 12 is divided.

輪郭パターン14からは同期信号に同期して輪
郭パターン14内の2値化データが順次出力され
る。これらのデータはカウンタ15の歩進により
デコーダ16がデコードした信号によつて輪郭マ
スク17−1ないし17−5及びクリアマスク1
8−1ないし18−5のいずれかに1対となつて
格納される。即ち輪郭パターン14の第1段y1
インのデータはこのラインと対応する輪郭マスク
1の17−1及びクリアマスク1の18−1に、
輪郭パターン14の第2段y2ラインのデータはこ
のラインと対応する輪郭マスク2の17−2及び
クリアマスク2の18−2に、以下同様にして輪
郭パターン14の第5段y5ラインのデータはこれ
と対応する輪郭マスク5の17−5及びクリアマ
スク5の18−5にそれぞれ格納されるが、クリ
アマスク18−1ないし18−5への輪郭パター
ン14のデータ格納についてはクリアマスク作成
回路19で一定の操作が行なわれる。即ち一定の
操作が行なわれるクリアマスク作成回路19では
輪郭パターン14の2値化データのうち消去所望
の対象図形11とそれに隣接するメツシユ13の
2値化データは値「0」のコードとし、他のメツ
シユのデータはすべて値「1」とする処理がなさ
れる。例えば第2図における輪郭パターン14の
第2段y2ラインについてのデータは第3図に示す
ように「11011」であり、該データ「01010」をク
リアマスク作成回路19に通すことによつてデー
タ「10001」が輪郭パターン14の第2段y2のラ
インに対応するクリアマスク2の18−2に上記
説明の如く格納される。
Binarized data within the contour pattern 14 is sequentially output from the contour pattern 14 in synchronization with the synchronization signal. These data are processed into contour masks 17-1 to 17-5 and clear mask 1 by signals decoded by the decoder 16 as the counter 15 increments.
They are stored as a pair in any one of 8-1 to 18-5. That is, the data of the first stage y 1 line of the contour pattern 14 is stored in 17-1 of the contour mask 1 and 18-1 of the clear mask 1 corresponding to this line.
The data of the second stage y 2 line of the contour pattern 14 is applied to the corresponding contour mask 2 17-2 and the clear mask 2 18-2, and in the same way, the data of the fifth stage y 5 line of the contour pattern 14 is The data is stored in the corresponding contour mask 5 17-5 and clear mask 5 18-5, but when storing the data of the contour pattern 14 in the clear masks 18-1 to 18-5, clear masks are created. Certain operations take place in circuit 19. That is, in the clear mask creation circuit 19 where a certain operation is performed, the binary data of the target figure 11 to be erased and the mesh 13 adjacent thereto among the binary data of the outline pattern 14 are set to a code of "0", and the other The data of the mesh is all processed to have the value "1". For example, the data for the second stage y2 line of the contour pattern 14 in FIG. 2 is "11011" as shown in FIG. "10001" is stored in 18-2 of the clear mask 2 corresponding to the line of the second stage y2 of the contour pattern 14 as described above.

第2図の輪郭マスク及びクリアマスク作成回路
構成によつて消去所望の対象図形11を包含する
マスク12のマスク化した例が第4図に示されて
いる。同図の符号14,17−1ないし17−
5,18−1ないし18−5は第2図のものに対
応する。同図において輪郭パターン14のうち
x3y1、x2y2、x4y2、x1y3、x5y3、x2y4、x4y4、x3y5
の各メツシユのデータ「1」は消去所望の対象図
形11の外形を型どつた輪郭を示すメツシユ13
に該当し、これら「1」で囲まれたメツシユ13
のデータ「0」は消去所望の対象図形11に該当
する。輪郭マスク17−1にはこれと対応する輪
郭パターン14の第1段y1ラインのデータ
「11111」がそつくりそのままの内容で格納され、
クリアマスク18−1にはデータ「11011」が格
納される。輪郭マスク17−2にはこれと対応す
る輪郭パターン14の第2段y2ラインのデータ
「11011」がそつくりそのままの内容で格納され、
クリアマスク18−2には消去所望の対象図形1
1に該当するデータ「10001」が格納される。輪
郭マスク17−3にはこれと対応する輪郭パター
ン14の第3段y3ラインのデータ「10001」がそ
つくりそのままの内容で格納され、クリアマスク
18−3にはデータ「00000」が格納される。輪
郭マスク17−4にはこれと対応する輪郭パター
ン14の第4段y4ラインのデータ「11011」がそ
つくりそのままの内容で格納され、クリアマスク
18−4にはデータ「10001」が格納される。輪
郭マスク17−5にはこれと対応する輪郭パター
ン14の第5段y5ラインのデータ「11111」がそ
つくりそのままの内容で格納され、クリアマスク
18−5にはデータ「11011」が格納される。
FIG. 4 shows an example in which a mask 12 including a target figure 11 to be erased is made into a mask using the outline mask and clear mask creating circuit configuration shown in FIG. Reference numerals 14, 17-1 to 17- in the figure
5, 18-1 to 18-5 correspond to those in FIG. In the figure, of the contour pattern 14
x 3 y 1 , x 2 y 2 , x 4 y 2 , x 1 y 3 , x 5 y 3 , x 2 y 4 , x 4 y 4 , x 3 y 5
The data ``1'' in each mesh is the mesh 13 indicating an outline shaped like the outer shape of the target figure 11 to be erased.
The message 13 that corresponds to and surrounded by these "1"
The data "0" corresponds to the target figure 11 that is desired to be erased. In the contour mask 17-1, data "11111" of the first stage y 1 line of the contour pattern 14 corresponding to this is stored as it is,
Data "11011" is stored in the clear mask 18-1. In the contour mask 17-2, data "11011" of the second stage y 2 lines of the contour pattern 14 corresponding to this is stored as it is,
Clear mask 18-2 contains target figure 1 to be erased.
Data “10001” corresponding to 1 is stored. In the contour mask 17-3, the data "10001" of the third row y 3 line of the corresponding contour pattern 14 is stored as is, and in the clear mask 18-3, the data "00000" is stored. Ru. In the contour mask 17-4, the data "11011" of the fourth stage y 4 line of the corresponding contour pattern 14 is stored as is, and in the clear mask 18-4, the data "10001" is stored. Ru. In the contour mask 17-5, the data "11111" of the 5th line 5th line of the contour pattern 14 corresponding to this is stored as is, and the data "11011" is stored in the clear mask 18-5. Ru.

第5図は消去所望の対象図形11を包含する図
形処理原図で、図中の符号11は第1図のものに
対応し、20は図形処理原図、21は−記号、2
2は線を表わす。図形処理原図20は左上端から
水平に右端まで第1図におけるメツシユの大きさ
のメツシユ13に分割した場合の個数をlとする
と、当該図形処理原図20を左端から右端まで水
平に1ラインを例えば飛点走査器で走査して得ら
れるビデオ信号の白領域・黒領域に対応した2値
化ビツト数はl個である。そして縦段にA1,A
2,A3,………横列にB1,B2,………と符
号付けをする。
FIG. 5 is a graphic processing original drawing including a target figure 11 that is desired to be erased, the reference numeral 11 in the figure corresponds to that in FIG. 1, 20 is a graphic processing original drawing, 21 is a - symbol,
2 represents a line. If the number of meshes 13 when the graphic processing original drawing 20 is divided horizontally from the upper left end to the right end into meshes 13 having the size of the mesh in FIG. The number of binary bits corresponding to the white area and black area of the video signal obtained by scanning with the flying spot scanner is l. And in the vertical row A1, A
2, A3, . . . The horizontal rows are numbered B1, B2, . . . .

第6図は、第2図の輪郭マスク及びクリアマス
ク作成回路に通して得た輪郭マスク17−1ない
し17−5及びクリアマスク18−1ないし18
−5とを用い、第5図の図形処理原図20を走査
した図形から第1図図示の消去所望の対象図形を
消去する図形消去処理方法の構成ブロツク図であ
る。図中23ないし27は図形消去判別部、28
ないし31はラインデイレイ、32は否定入力ア
ンド回路、33は5メツシユ分シフトされる間保
持するフリツプフロツプ回路、34はビデオレジ
スタ、35はセレクタ回路、Xはデータ入力端
子、Yはデータ出力端子を表わす。
FIG. 6 shows contour masks 17-1 to 17-5 and clear masks 18-1 to 18 obtained through the contour mask and clear mask creation circuit of FIG.
5 is a block diagram illustrating a configuration of a figure erasing method for erasing the figure to be erased shown in FIG. 1 from the figure scanned from the figure processing original drawing 20 of FIG. In the figure, 23 to 27 are figure erasure determination units, 28
31 is a line delay, 32 is a negative input AND circuit, 33 is a flip-flop circuit that holds the data while being shifted by 5 meshes, 34 is a video register, 35 is a selector circuit, X is a data input terminal, and Y is a data output terminal. .

図形消去判別部は輪郭パターン14をm×nメ
ツシユに分割した窓のライン段数に相当する数m
個用意されるのに対し、ラインデイレイは最終段
のm段目を除いた図形消去判別部に続いてそれぞ
れ接続されるからm−1個を必要とする。例えば
本実施例では輪郭パターン14は5×5の窓に分
割されているから、5段のライン数がありそれに
対応する図形消去判別部は判別部23ないし27
の5個が用意される。そしてラインデイレイ28
ないし31は最終段mを除いた図形消去判別部2
3ないし26に対応して設けられる。該ラインデ
イレイ28ないし31の各々は第5図の図形処理
原図20を1ライン分走査して得られるビデオ信
号の2値化ビツト数lから輪郭パターン14をm
×nメツシユに分割したメツシユの1段当りのラ
インビツト数nを引いた数l−n個を直列に接続
したシフトレジスタで構成されている。例えば本
実施例においては輪郭パターン14を1段につき
5個の窓に分割しているからn=5で、l−5個
のシフトレジスタが直列に接続され各ラインデイ
レイ28ないし31を構成している。これから解
るように図形消去判別部23ないし27のビデオ
レジスタ34は5個のシフトレジスタから構成さ
れている。従つて図形消去判別部23内のビデオ
レジスタ34のビツト数とラインデイレイ28の
シフトレジスタのビツト数の合計は第5図の図形
処理原図20を走査して得られるビデオ信号の1
ライン分のビツト数lに等しい。このことは図形
消去判別部24ないし26内のビデオレジスタ3
4とそれぞれに接続されているラインデイレイ2
9ないし31についても適用される。
The figure erasure determination unit uses a number m corresponding to the number of line stages of a window that divides the contour pattern 14 into m×n meshes.
On the other hand, the line delay requires m-1 pieces because each line delay is connected following the figure erasure discriminating unit except for the m-th final stage. For example, in this embodiment, the contour pattern 14 is divided into 5×5 windows, so there are 5 lines, and the corresponding figure erasure discriminator is the discriminator 23 to 27.
Five items are prepared. And line daylay 28
31 to 31 are figure erasure determination units 2 excluding the final stage m
3 to 26 are provided. Each of the line delays 28 to 31 converts the contour pattern 14 into m from the number l of binarized bits of the video signal obtained by scanning the graphic processing original drawing 20 of FIG. 5 for one line.
The shift register is composed of shift registers in which the number l-n, which is the number n of line bits per stage of the mesh divided into ×n meshes, is connected in series. For example, in this embodiment, the contour pattern 14 is divided into five windows per stage, so n=5, and l-5 shift registers are connected in series to form each line delay 28 to 31. There is. As will be seen, the video register 34 of the figure erasure determining sections 23 to 27 is composed of five shift registers. Therefore, the sum of the number of bits of the video register 34 in the figure erasure discriminator 23 and the number of bits of the shift register of the line delay 28 is 1 of the video signal obtained by scanning the figure processing original picture 20 of FIG.
It is equal to the number of bits for the line, l. This means that the video register 3 in the figure erasure determining sections 24 to 26
4 and the line delay 2 connected to each
This also applies to numbers 9 to 31.

否定入力アンド回路32には図形消去判別部2
3ないし27からのCPM1ないしCPM5信号が
入力され、これらの信号が同時に発生したことを
表わす一致出力が次段のフリツプフロツプ回路3
3を制御する。該フリツプフロツプ回路33の出
力は図形消去判別部23ないし27内にあるセレ
クタ回路35を制御する。Xはデータ入力端子で
図形処理原図20を走査したビデオ信号に基づい
た2値化ビツト信号のデータが入力される端子、
Yはその出力端子である。
The negative input AND circuit 32 includes a figure erasure determination unit 2.
The CPM1 to CPM5 signals from 3 to 27 are input, and a coincidence output indicating that these signals are generated simultaneously is sent to the flip-flop circuit 3 of the next stage.
Control 3. The output of the flip-flop circuit 33 controls a selector circuit 35 in the figure erasure determining sections 23 to 27. X is a data input terminal, into which data of a binary bit signal based on a video signal obtained by scanning the graphic processing original drawing 20 is input;
Y is its output terminal.

第7図は図形消去判別部23の具体的回路構成
を示す図で、図中17−5,18−5は第2図及
び第4図のものに対応し、34,35は第6図の
ものに対応する。36はコンパレータ、37−1
ないし37−5は排他的オア回路、38−1ない
し38−5はアンド回路、39はクリアビデオレ
ジスタを表わす。
FIG. 7 is a diagram showing a specific circuit configuration of the figure erasure determination section 23, in which 17-5 and 18-5 correspond to those in FIG. 2 and 4, and 34 and 35 correspond to those in FIG. correspond to things. 36 is a comparator, 37-1
37-5 to 37-5 are exclusive OR circuits, 38-1 to 38-5 are AND circuits, and 39 is a clear video register.

第6図、第7図において、図形消去判別部23
には第2図の輪郭マスク及びクリアマスク作成回
路により得られた第4図第5段y5ラインのデータ
「11111」を格納する輪郭マスク17−5及び
「11011」を格納するクリアマスク18−5が用い
られる。図形消去判別部24には第4段y4ライン
のデータ「11011」を格納する輪郭マスク17−
4及びデータ「10001」を格納するクリアマスク
18−4が、図形消去判別部25には第3段y3
インのデータ「10001」を格納する輪郭マスク1
7−3及びデータ「00000」を格納するクリアマ
スク18−3が、図形消去判別部26には第2段
y2ラインのデータ「11011」を格納する輪郭マス
ク17−2及びデータ「10001」を格納するクリ
アマスク18−2が、図形消去判別部27には第
1段y1ラインのデータ「11111」を格納する輪郭
マスク17−1及びデータ「11011」を格納する
クリアマスク18−1がそれぞれ用いられる。
In FIGS. 6 and 7, the figure erasure determination unit 23
The contour mask 17-5 stores the data "11111" of the 5 lines in the fifth stage of FIG. 4 obtained by the contour mask and clear mask creation circuit of FIG. 2, and the clear mask 18-5 stores the data "11011". 5 is used. The figure erasure determination unit 24 has a contour mask 17- which stores data "11011" for 4 lines in the fourth stage.
4 and the clear mask 18-4 that stores the data "10001", and the contour mask 1 that stores the data "10001" of the third stage y 3 lines in the figure erasure determination unit 25.
7-3 and a clear mask 18-3 storing data "00000" are stored in the second stage in the figure erasure determination unit 26.
The outline mask 17-2 that stores the data "11011" for 2 lines of y and the clear mask 18-2 that stores the data "10001" send the data "11111" for the first stage y 1 line to the figure erasure determination unit 27. A contour mask 17-1 for storing and a clear mask 18-1 for storing data "11011" are used, respectively.

回路37−1ないし37−5,38−1ないし
38−5、クリアビデオレジスタ39はビデオレ
ジスタ34に対応する数の回路、シフトレジスタ
が用意される。即ち本実施例においては5個の排
他的オア回路、アンド回路、5段のシフトレジス
タが用意されることになる。
For the circuits 37-1 to 37-5, 38-1 to 38-5, and the clear video register 39, circuits and shift registers corresponding to the number of video registers 34 are prepared. That is, in this embodiment, five exclusive OR circuits, an AND circuit, and a five-stage shift register are provided.

第5図の消去所望の対象図形11を包含する図
形処理原図20を左最上端から右方向に向つて水
平に走査する走査器からの2値化ビデオ信号(黒
領域は「1」、白領域は「0」に2値化されるも
のとする)のデータは基本クロツクに同期して1
ビツトづつ順次データ入力端子Xからビデオレジ
スタ34に入る。例えばA1B1のビデオデータ
「0」がビデオレジスタ34に入るとこのデータ
「0」は第7図図示ラインkを介して例えば回路
37−1,38−1にも同時に入力される。続い
てA1B2,A1B3,A1B4,A1B5のビ
デオデータ「0」が順次ビデオレジスタ34に入
ると該データは1ビツトづつシフトされ一杯とな
る。同時に回路37−1ないし37−5,38−
1ないし38−5にはビデオレジスタ34を構成
するシフトレジスタの内容と対応したデータが
各々入力される。例えば今の状態でビデオレジス
タ34には「00000」のデータが入つているから
排他的オア回路37−1ないし37−5、アンド
回路38−1ないし38−5にはビデオレジスタ
34を構成するシフトレジスタに対応する順にこ
れらのデータが入力されている。また回路37−
1ないし37−5のそれぞれの他の入力端子には
輪郭マスク5の17−5のデータ「11111」が入
力されている。従つてその出力は「11111」とな
り該データ「11111」はコンパレータ36の基準
データであるオール“1”と比較された結果、ビ
デオレジスタ34の入力データ「00000」と輪郭
マスク5の17−5のデータ「11111」との完全
不一致を表わす論理「0」をコンパレータ36の
出力信号CMP1として出力する。しかし、この
とき他の出力信号CMP2ないしCMP5が論理
「1」を出力しており、第6図図示のフリツプフ
ロツプ33がセレクト信号を発することはない。
A binary video signal is output from a scanner that horizontally scans the graphic processing original drawing 20 including the target figure 11 to be erased shown in FIG. shall be binarized to "0") data will be converted to 1 in synchronization with the basic clock.
Bit by bit is input into the video register 34 from the data input terminal X. For example, when video data "0" of A1B1 enters the video register 34, this data "0" is simultaneously inputted to, for example, circuits 37-1 and 38-1 via line k shown in FIG. Subsequently, when the video data "0" of A1B2, A1B3, A1B4, and A1B5 is sequentially entered into the video register 34, the data is shifted one bit at a time until it becomes full. At the same time, circuits 37-1 to 37-5, 38-
Data corresponding to the contents of the shift register constituting the video register 34 is input to 1 to 38-5, respectively. For example, in the current state, the video register 34 contains data "00000", so the exclusive OR circuits 37-1 to 37-5 and the AND circuits 38-1 to 38-5 contain the shift signals that make up the video register 34. These data are input in the order corresponding to the registers. Also, circuit 37-
Data "11111" of 17-5 of contour mask 5 is input to each of the other input terminals 1 to 37-5. Therefore, the output is "11111" and the data "11111" is compared with all "1" which is the reference data of the comparator 36, and as a result, the input data "00000" of the video register 34 and the data 17-5 of the contour mask 5 are compared. A logic "0" representing a complete mismatch with the data "11111" is output as the output signal CMP1 of the comparator 36. However, at this time, the other output signals CMP2 to CMP5 are outputting logic "1", and the flip-flop 33 shown in FIG. 6 does not issue a select signal.

次の基本クロツクに同期してA1B5のビデオ
データ「0」がビデオレジスタ34に導入される
と、第1番目のA1B1のビデオデータ「0」は
一杯のビデオレジスタ34から追い出されセレク
タ回路35を介してラインデイレイ28のシフト
レジスタに転送される。このように基本クロツク
に同期してデータ入力端子Xから走査した2値化
ビデオデータが入力されると、1ビツトづつビデ
オレジスタ34の内容がシフトされラインデイレ
イ28に転送されるとともに、当該ラインデイレ
イ28に転送された内容も1ビツトづつシフトさ
れる。ビデオレジスタ34のシフトレジスタの個
数とラインデイレイ28のシフトレジスタの個数
との合計は図形処理原図20を走査して得られる
ビデオ信号の1ライン分のビツト数lに等しく構
成されているから、ラインデイレイ28内に収容
されている第1番目のA1B1のビデオデータ
「0」は第2段1番目のA2B1のビデオデータ
「0」がデータ入力端子Xから図形判別部23内
のビデオレジスタ34に入力されると、図形処理
原図20に対応して第2段目の図形判別部24内
のビデオレジスタ34に転送される。以下同様に
してA1B1のビデオデータ「0」は図形判別部
24ないし27内の各ビデオレジスタ34及びラ
インデイレイ29ないし31を第6図に図示され
た順に基本クロツクに同期してシフトされ、デー
タ出力端子Yにそのデータ「0」が送出される。
When video data “0” of A1B5 is introduced into the video register 34 in synchronization with the next basic clock, the first video data “0” of A1B1 is evicted from the full video register 34 and sent through the selector circuit 35. The signal is then transferred to the shift register of the line delay 28. When scanned binary video data is input from the data input terminal X in synchronization with the basic clock in this way, the contents of the video register 34 are shifted bit by bit and transferred to the line delay 28, and The contents transferred to 28 are also shifted one bit at a time. Since the total number of shift registers in the video register 34 and the number of shift registers in the line delay 28 is equal to the number l of bits for one line of the video signal obtained by scanning the graphic processing original drawing 20, the line The video data "0" of the first A1B1 stored in the delay 28 is inputted from the data input terminal X to the video register 34 in the figure discriminator 23. Then, it is transferred to the video register 34 in the second-stage figure discriminator 24 in correspondence with the figure processing original drawing 20. Similarly, the video data "0" of A1B1 is shifted through each video register 34 and line delay 29 to 31 in the figure discriminator 24 to 27 in the order shown in FIG. 6 in synchronization with the basic clock, and the data is output. The data "0" is sent to terminal Y.

今図形処理原図20における第2段A2B3の
ビデオデータ「0」が図形判別部27のビデオレ
ジスタ34を構成するシフトレジスタの最後部に
シフトされたとすると、図形判別部23のビデオ
レジスタ34には図形処理原図20のA6B3な
いしA6B7のビデオデータ「00000」の内容が
収納されており、ラインデイレイ28にはA5B
8ないしA5Bl及びA6B1,A6B2のビデオ
データ内容が収納されている。以下同様に図形判
別部24ないし27のビデオレジスタ34には図
形処理原図20のA5B3ないしA5B7,A4
B3ないしA4B7,A3B3ないしA3B7,
A2B3ないしA2B7のビデオデータ内容がそ
れぞれ収納されている。各図形判別部23ないし
27のビデオレジスタ34に収納されたデータ内
容とそれに対応する輪郭マスク17−1ないし1
7−5に格納されているデータ内容とが完全に不
一致となつているから、前記説明の如く各コンパ
レータ36の出力CMP1ないしCMP5はすべて
論理「0」を発生する。当該各信号CMP1ない
しCMP5は入力否定アンド回路32を介してフ
リツプフロツプ回路33を作動させ、図形判別部
23ないし27内にあるセレクタ回路35を制御
する結果各ラインデイレイとビデオレジスタ34
との接続を切断しラインデイレイとクリアビデオ
レジスタ39とを接続させる。
Suppose that the video data "0" of the second stage A2B3 in the graphic processing original drawing 20 is shifted to the last part of the shift register constituting the video register 34 of the graphic discriminator 27. The content of video data "00000" of A6B3 to A6B7 of the processing original drawing 20 is stored, and the line delay 28 contains A5B
The video data contents of 8 to A5Bl, A6B1, and A6B2 are stored. Similarly, A5B3 to A5B7, A4 of the graphic processing original drawing 20 are stored in the video register 34 of the figure discriminator 24 to 27.
B3 to A4B7, A3B3 to A3B7,
Video data contents of A2B3 to A2B7 are stored respectively. The data contents stored in the video register 34 of each figure discriminator 23 to 27 and the corresponding contour mask 17-1 to 1
Since the data contents stored in CMP 7-5 are completely inconsistent with each other, the outputs CMP1 to CMP5 of each comparator 36 all generate logic "0" as explained above. The respective signals CMP1 to CMP5 actuate the flip-flop circuit 33 via the input NAND circuit 32, and control the selector circuits 35 in the figure discriminators 23 to 27. As a result, each line delay and video register 34
and connect the line delay and clear video register 39.

このとき、例えば図形判別部23内のビデオレ
ジスタ34に収納されているビデオデータ
「00100」と「クリアマスク5」の18−5に格納
されているビデオデータ「11011」の各々に対応
するシフトレジスタの情報をアンド回路38−1
ないし38−5に通しており、その出力はすべて
「0」の情報が現われ、クリアビデオレジスタ3
9には「00000」のデータが収納されている。図
形判別部24ないし27の各クリアビデオレジス
タ39についても同様で「00000」のデータが
各々収納されている。このような状態にあるとき
基本クロツクに同期して順次ビデオデータがデー
タ入力端子Xから導入されるにつれて各クリアビ
デオレジスタ39のデータ「00000」がセレクタ
回路35を介してラインデイレイ28ないし31
に転送されるとともに、最終段の図形判別部27
からはデータ出力端子Yに向けてクリアビデオレ
ジスタ39のデータ内容が転出される。各図形判
別部23ないし27のビデオレジスタ34に収納
されたデータ内容とそれに対応する輪郭マスク1
7−1ないし17−5に格納されているデータ内
容とが完全に不一致した次のビツトのビデオデー
タの導入により、いずれかのコンパレータ36の
出力CMP1ないしCMP5は論理「1」を発生す
る。しかしフリツプフロツプ回路33はビデオレ
ジスタ34を構成するシフトレジスタの個数に相
当する5ビツト分だけセレクタ回路を保持して各
クリアビデオレジスタ39とラインデイレイ28
ないし31及び出力端子Yとの接続を維持する。
その間各クリアビデオレジスタ39への新たなデ
ータの入力は禁止される。
At this time, for example, a shift register corresponding to each of the video data "00100" stored in the video register 34 in the figure discrimination section 23 and the video data "11011" stored in 18-5 of "clear mask 5" AND circuit 38-1
38-5, the output of which all "0" information appears, and the clear video register 3
9 stores the data “00000”. Similarly, data of "00000" is stored in each of the clear video registers 39 of the graphic discrimination sections 24 to 27. In this state, as video data is sequentially introduced from the data input terminal
At the same time, the figure discriminator 27 at the final stage
From there, the data contents of the clear video register 39 are transferred to the data output terminal Y. Data contents stored in the video register 34 of each figure discriminator 23 to 27 and the corresponding contour mask 1
The introduction of the next bit of video data whose data content is completely inconsistent with the data stored in bits 7-1 to 17-5 causes the outputs CMP1 to CMP5 of one of the comparators 36 to generate a logic "1". However, the flip-flop circuit 33 holds selector circuits for 5 bits corresponding to the number of shift registers configuring the video register 34, and selects each clear video register 39 and line delay 28.
to 31 and the output terminal Y are maintained.
During this time, input of new data to each clear video register 39 is prohibited.

このようにして消去所望の対象図形11に該当
する窓13の黒領域に対応する2値価ビツト信号
「1」を白領域に該当するビツト信号「0」に振
り替えるから、消去所望の対象図形11を図形処
理原理から消去することができるのである。なお
5ビツト経過後は各ビデオレジスタ34とセレク
タ回路35を介してラインデイレイ28ないし3
1及びデータ出力端子Yと接続され、該ビデオレ
ジスタ34のデータ内容とこれに対応する輪郭マ
スタ17−1ないし17−5のデータ内容とが比
較されながら1ビツトづつ順次転送されて行く。
またビデオレジスタ34のデータ内容とこれに対
応する輪郭マスク例えば17−1のデータ内容が
偶然に上記完全不一致が生じたとしても他のビデ
オレジスタ34のデータ内容とこれに対応する輪
郭マスク17−2ないし17−5のすべてが完全
不一致とならないからセレクタ回路35はクリア
ビデオレジスタ39に切り替わることがないので
誤つて消去することは起りえない。
In this way, the binary value bit signal "1" corresponding to the black area of the window 13 corresponding to the target figure 11 to be erased is transferred to the bit signal "0" corresponding to the white area, so that the target figure 11 to be erased is transferred. can be eliminated from the graphic processing principle. Note that after 5 bits have passed, the line delay 28 to 3 is transmitted via each video register 34 and selector circuit 35.
1 and data output terminal Y, and the data contents of the video register 34 and the data contents of the corresponding contour masters 17-1 to 17-5 are compared and sequentially transferred one bit at a time.
Further, even if the data contents of the video register 34 and the corresponding contour mask 17-1, for example, completely mismatch by chance, the data contents of the other video register 34 and the corresponding contour mask 17-2 Since all of the data from 17-5 to 17-5 do not completely match, the selector circuit 35 does not switch to the clear video register 39, so erroneous erasure cannot occur.

消去所望の対象図形11を包含する図形処理原
図20について左上端から水平に走査し右下端に
まで走査点が到達すると、データ出力端子Yから
弧立した消去所望の対象図形11を消去した白・
黒2値化ビツトデータ信号群が得られるのであ
る。
The figure processing original drawing 20 that includes the object figure 11 to be erased is scanned horizontally from the upper left corner and when the scanning point reaches the lower right edge, the figure 11 to be erased standing up from the data output terminal Y is erased in white.
A black binary bit data signal group is obtained.

なお上記説明において、第7図図示の回路37
−1ないし37−5を排他的オア回路としかつコ
ンパレータ36の基準データをオール“1”とし
たが、上記回路37−1ないし37−5をアンド
回路としかつコンパレータ36の基準データをオ
ール“0”としてもよい。このようにした場合、
詳細説明を省略するが、第5図図示の図形21の
如く消去所望の対象図形11内に包含される図形
をあわせて消去することが可能となる。
In the above description, the circuit 37 shown in FIG.
-1 to 37-5 are made to be exclusive OR circuits and the reference data of the comparator 36 are all "1", but the circuits 37-1 to 37-5 are made to be AND circuits and the reference data of the comparator 36 are all "0". ” may be used. If you do this,
Although a detailed explanation will be omitted, it is possible to simultaneously erase a figure included in the target figure 11 that is desired to be erased, such as the figure 21 shown in FIG.

以上説明した如く本発明によれば、予め定めら
れた一定の消去対象図形の外形を型どつた輪郭パ
ターンをm×nメツシユの窓をつくり、該窓を2
値化ビツト対応処理をした輪郭マスクと該輪郭マ
スクに対応するクリアマスクとを作成し、これら
マスクを各ラインに対応して用意しておき、消去
対象図形を包含する画面を走査して得られた2値
価ビデオデータ内容と前記輪郭マスクのデータ内
容とを比較し、一定の条件に合致(実施例の場合
完全不一致)したときビデオデータ内容をクリア
マスクのデータ内容に振り替えることにより1度
の処理で特定の図形を消去できかつ時間の短縮化
が図れる。そして消去回路の構成も簡潔化され
る。
As explained above, according to the present invention, an m×n mesh window is created using an outline pattern shaped like the outline of a predetermined figure to be erased, and the window is divided into two
Create a contour mask that has undergone value conversion bit processing and a clear mask that corresponds to the contour mask, prepare these masks for each line, and scan the screen that includes the figure to be erased. The binary value video data content and the data content of the contour mask are compared, and when a certain condition is met (complete mismatch in the case of the embodiment), the video data content is transferred to the data content of the clear mask. A specific figure can be deleted during processing and time can be shortened. The configuration of the erasing circuit is also simplified.

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

第1図は消去所望の対象図形の一例、第2図は
輪郭マスク及びクリアマスク作成回路の一実施例
を示すブロツク図、第3図は第2図のクリアマス
ク作成回路の処理例、第4図は輪郭マスク及びク
リアマスク作成の一例、第5図は図形処理原図の
一例、第6図は本発明の図形消去処理方法の一実
施例構成ブロツク図、第7図は図形消去判別部の
具体的回路構成図を示す。 図中11は消去所望の対象図形、13はメツシ
ユ、14は輪郭パターン、17−1ないし17−
5は輪郭マスク、18−1ないし18−5はクリ
アマスクをそれぞれ表わす。
FIG. 1 is an example of a target figure that is desired to be erased, FIG. 2 is a block diagram showing an embodiment of the contour mask and clear mask creation circuit, FIG. 3 is a processing example of the clear mask creation circuit of FIG. 2, and FIG. The figure shows an example of creating a contour mask and a clear mask, FIG. 5 shows an example of a figure processing original drawing, FIG. 6 shows a block diagram of an embodiment of the figure erasing method of the present invention, and FIG. 7 shows a specific example of the figure erasure determining section. The circuit configuration diagram is shown below. In the figure, 11 is a target figure to be erased, 13 is a mesh, 14 is an outline pattern, 17-1 to 17-
5 represents a contour mask, and 18-1 to 18-5 represent clear masks, respectively.

Claims (1)

【特許請求の範囲】[Claims] 1 画面上の図形を走査したビデオ信号に基づい
て白領域・黒領域に対応したビツト対応処理を行
なつて図形処理をする図形処理回路において、予
め定められた一定の消去対象図形の外形を型どつ
た輪郭パターンを用意し、該輪郭パターンをm
(行)×n(列)メツシユに分割した窓の2値化デ
ータを作成し、各列毎に対応させて輪郭マスクと
当該輪郭マスクに対応するクリアマスクとに分解
して各列毎に用意しておき、消去所望の対象図形
を包含する画面を走査して得た2値化ビデオデー
タを列毎に設けられたビデオレジスタに順次入力
し、該ビデオデータが各列に用意された前記輪郭
マスクと比較して各列のすべての輪郭マスクに一
致したとき当該ビデオデータをクリアマスクのデ
ータに振り替えて出力することにより、消去対象
図形を消去するようにしたことを特徴とする図形
消去処理方法。
1 In a graphic processing circuit that performs graphic processing by performing bit-based processing corresponding to white and black areas based on a video signal that scans a graphic on the screen, the external shape of a predetermined figure to be erased is modeled. Prepare a dotsuta contour pattern, and convert the contour pattern into m
Create binarized data of a window divided into (rows) x n (columns) mesh, and separate it into a contour mask and a clear mask corresponding to the contour mask for each column and prepare for each column. Then, the binarized video data obtained by scanning the screen containing the target figure to be erased is sequentially input into the video register provided for each column, and the video data is input to the contour prepared for each column. A figure erasing processing method characterized in that the figure to be erased is erased by replacing the video data with clear mask data and outputting it when it matches all the outline masks in each column compared with the mask. .
JP16503079A 1979-12-19 1979-12-19 Figure erasion*treatment system Granted JPS5688186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16503079A JPS5688186A (en) 1979-12-19 1979-12-19 Figure erasion*treatment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16503079A JPS5688186A (en) 1979-12-19 1979-12-19 Figure erasion*treatment system

Publications (2)

Publication Number Publication Date
JPS5688186A JPS5688186A (en) 1981-07-17
JPS6123558B2 true JPS6123558B2 (en) 1986-06-06

Family

ID=15804502

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16503079A Granted JPS5688186A (en) 1979-12-19 1979-12-19 Figure erasion*treatment system

Country Status (1)

Country Link
JP (1) JPS5688186A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5852782A (en) * 1981-09-25 1983-03-29 Nec Corp Separating and extracting device for segment

Also Published As

Publication number Publication date
JPS5688186A (en) 1981-07-17

Similar Documents

Publication Publication Date Title
US4750209A (en) System for processing an image having both letter and photographic information
US4464789A (en) Image analyzer for processing multiple frames of image data
US4517606A (en) Apparatus for processing video signals
JP2967014B2 (en) Image processing device
GB2174278A (en) Area-fill graphic image processing system
EP0173098A2 (en) Pattern outline tracking method and apparatus
US4528692A (en) Character segmenting apparatus for optical character recognition
JP3621512B2 (en) Digital information encoding apparatus, digital information decoding apparatus, digital information encoding / decoding apparatus, digital information encoding method, and digital information decoding method
JPH09298668A (en) Digital information coder, digital information decoder, digital information coding/decoding device, digital information coding method and digital information decoding method
JPS6123558B2 (en)
US4809343A (en) Maximum/minimum value conversion circuit for image processing
US3970991A (en) Character recognition system
JPS6353586B2 (en)
JPS6239459B2 (en)
JP3009483B2 (en) Image processing device
JP2729165B2 (en) Image processing apparatus and processing method thereof
JP3061830B2 (en) Image processing device
JP2933927B2 (en) Pattern recognition method and information processing apparatus
JP2862498B2 (en) Image processing method
JP2688666B2 (en) How to vectorize shapes
JP3146092B2 (en) Encoding device and decoding device
JP2679098B2 (en) Encoding processing device for contour detection image
JP2509448B2 (en) How to reduce the amount of image information
JPS6131886B2 (en)
JPH0541805A (en) Picture data compression method and its device