JPS5810964A - Two-dimensional pattern correcting system - Google Patents

Two-dimensional pattern correcting system

Info

Publication number
JPS5810964A
JPS5810964A JP56109766A JP10976681A JPS5810964A JP S5810964 A JPS5810964 A JP S5810964A JP 56109766 A JP56109766 A JP 56109766A JP 10976681 A JP10976681 A JP 10976681A JP S5810964 A JPS5810964 A JP S5810964A
Authority
JP
Japan
Prior art keywords
pattern
connection
unit
legal
mesh
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.)
Granted
Application number
JP56109766A
Other languages
Japanese (ja)
Other versions
JPS6354275B2 (en
Inventor
Toshiyuki Sakai
坂井 利之
Yuichi Ota
大田 友一
Michihiko Mino
導彦 美濃
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP56109766A priority Critical patent/JPS5810964A/en
Publication of JPS5810964A publication Critical patent/JPS5810964A/en
Publication of JPS6354275B2 publication Critical patent/JPS6354275B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression

Abstract

PURPOSE:To perform correction and restoration with high quality, by performing pattern correction taking into consideration of relation of connection between unit meshes and between picture elements appeared at a two-dimensional pattern for a line drawing. CONSTITUTION:An arbitrary unit mesh (hatched part) on a symbol representing picture of a two-dimensional pattern is connected to 8 surrounding unit meshes, and four sets of connection relation among 4-unit meshes as (a)-(d) are given to the noted unit mesh, and whether or not the present pattern (regular pattern) of the noted unit mesh is adequate in the relation of the pattern of the surrounding unit meshes, is discriminated. By observing the relation of connection of the four sets, the noted unit mesh or the adjacent unit mesh pattern in which the relation of connection not allowed to the pattern connection condition exists even in one set, are converted into the other regular pattern to correct to obtain permissible regular connections for all the four sets. The recheck and correction for the connection of relation is repeated for the required number of times and the symbol representing picture is converted into a the regular symbol representing picture.

Description

【発明の詳細な説明】 本発明は英数字、漢字かな混り文の文章、グラフや表、
設計図面など、一般に線図形と呼ばれている2次元パタ
ーンの処理に関し、さら(=詳しくは、歪をうけノイズ
の重畳した2次元パターンを本来のパターンに修正・復
元する方式に関する。
[Detailed Description of the Invention] The present invention is applicable to alphanumeric characters, kanji/kana mixed sentences, graphs and tables,
It relates to the processing of two-dimensional patterns, generally called line figures, such as design drawings, and more specifically, relates to a method for correcting and restoring a distorted and noise-superimposed two-dimensional pattern to its original pattern.

いわゆる線図形と呼ばれている2次元パターンを通信伝
送゛したり複写したりすると、パターンの品質が劣化す
る。これは、伝送途中や複写過程で発生するノイズや歪
によるものである。このような本来のパターン以外の成
分が全く混入しないような伝送系や複写機構を実現する
ことは、実際上殆ど不可能である。したがって、ノイズ
が混入したり歪を受けた2次元パターンを、その本来の
パターンへ修正・復元するための技術の確立が要請され
ている。
When a two-dimensional pattern called a line figure is transmitted or copied, the quality of the pattern deteriorates. This is due to noise and distortion occurring during transmission or during the copying process. In practice, it is almost impossible to realize a transmission system or a copying mechanism that does not contain any components other than the original pattern. Therefore, there is a need to establish a technique for correcting and restoring a two-dimensional pattern with noise or distortion to its original pattern.

さて、文章や図面の情報源である線図形は、自然画像と
違って、ある手段を用い、ある特定の規則(二沿って生
成されるのが普通である。すなわち、伝送や複写;二よ
って2次元パターンの品質が劣化するということは、ノ
イズや歪(、二より上記の規則(ユ合わないパターンへ
変形されたと考えることができる。したがって、2次元
−パターン中の生成規則に合わない成分を修正すれば、
本来のパターンの復元が可能なはずである。
Now, unlike natural images, line figures, which are information sources for texts and drawings, are usually generated using certain means and according to certain rules (i.e., transmission, copying; Deterioration in the quality of a two-dimensional pattern can be thought of as noise, distortion, and deformation into a pattern that does not conform to the above rules. If you correct
It should be possible to restore the original pattern.

発明者は、かかる観点に基づいて2次元パターンを修正
・復元する一方犬を既に特許出願(特願昭56−444
64号)している。この方式は、2次元パターン(二お
い゛C出現する単位メツシュの特定のパターンを合法パ
ターンとして予め選定しておき、処理すべき2次元パタ
ーンに出現する各単位メツシュのパターンのうち、合法
パターン以外のパターン(非合法パターン)は、それと
特定の関係にある1つの合法パターンへ強制的(=変換
するというものである。例えば、単位メツシュのサイズ
をmxm画素としたときに、単位メツシュパターンをm
xmビットのハミング符号と考え、非合法パターンをそ
れとのハミング距離が最小の合法パターンへ変換する。
The inventor modified and restored the two-dimensional pattern based on this viewpoint, and had already filed a patent application for the dog (Japanese Patent Application No. 56-444).
No. 64). In this method, a specific pattern of unit meshes appearing in a two-dimensional pattern (two-dimensional pattern) is selected in advance as a legal pattern, and out of the patterns of each unit mesh appearing in the two-dimensional pattern to be processed, non-legal patterns are selected. A pattern (illegal pattern) is forcibly converted (=converted) into one legal pattern that has a specific relationship with it.For example, when the size of a unit mesh is mxm pixels, the unit mesh pattern is m
Considering it as a Hamming code of xm bits, an illegal pattern is converted into a legal pattern with the minimum Hamming distance from it.

また、同一ハミング距離の合法パターンが2つり、L存
在するときは、その中で良質の2次元パターン、におけ
る出現頻度の高い1つの合法パターンを選択して非合法
・2ターンに割り付ける。
Furthermore, when there are two L legal patterns with the same Hamming distance, one of the high-quality two-dimensional patterns with a high frequency of appearance is selected and assigned to the illegal 2-turn.

合法パターンの選定、単位メツシュのサイズの決定、非
合法パターンから合法)くターンへの変換等の詳細につ
いては、上記の特許願に添付の明細書に述ベーCあるの
で、ここではこれ以上の説明は省略する。
Details of the selection of legal patterns, determination of unit mesh size, conversion of illegal patterns to legal turns, etc. are described in the specification attached to the above patent application, so we will not discuss them further here. Explanation will be omitted.

本発明は上(=略述した既出願発明の延長上にあるもの
で、単位メツシュ間の接続関係、画素間の接紗関係をも
考慮して2次元)くターンを修正・復゛元する方式を提
供することを目的とする。
The present invention is an extension of the previously-filed invention described above, and corrects and restores the two-dimensional (two-dimensional) turn by taking into account the connection relationships between unit meshes and the gluing relationships between pixels. The purpose is to provide a method.

また本発明のもう一つの目的は、ノ・−ドウエア化やリ
アルタイム処理の容易性を考慮した2次元パターン修正
方式を提供することにある。
Another object of the present invention is to provide a two-dimensional pattern correction method that takes into account ease of computerization and real-time processing.

しかして本発明にあっては、既出願発明と同様(二合法
パターンを選定し、修正処理すべき2次元パターンに非
合法・;ターンが出現すると、それを1つの合法パター
ンへ変換する。この際の変換則は前述の既出願発明と同
様でよく、例えば、非合法パターンをそれとの)・ミン
グ距離が最小の合法パターンへ変換する。
However, in the present invention, as in the previously filed invention, (a bilegal pattern is selected, and when an illegal turn appears in the two-dimensional pattern to be corrected, it is converted into one legal pattern. The conversion rule at this time may be the same as that of the previously applied invention, for example, converting an illegal pattern into a legal pattern with a minimum distance between the illegal pattern and the illegal pattern.

本発明ではさらに、合法パターンが本来の2次元パター
ンの要素として矛盾することなく隣接し。
The present invention further provides that the legal patterns are adjacent to each other without contradiction as elements of the original two-dimensional pattern.

ているときに、これら隣接合法パターン相互間で満足さ
れるべき特定のパターン接続条件を予め決定する。すな
わち、このパターン接続条件を満足しない接続関係で隣
接する合法パターンは、そのままでは本来の2次元パタ
ーンの要素としては許容されないということである。
At the same time, specific pattern connection conditions to be satisfied between these adjacent legal patterns are determined in advance. In other words, legal patterns that are adjacent in a connection relationship that does not satisfy this pattern connection condition are not allowed as elements of the original two-dimensional pattern as they are.

しかして、上記の非合法パターンの合法″ターンへの変
換処理を完了した、寸たは該変換処理の途上にある2次
元パターン(この変換処理によって非合法パターンが合
法パターンに置換された後の2次元パターンを、以後゛
シンボル表記画像”と称す)上の隣接する単位メソシュ
相互間のパターン接続関係を観測する。そして上記の特
定のパターン接続条件を満足しないときは、それを満足
するように当該隣接単位メツシュ中の1つ以上の単位ツ
ノシュのパターン(合法パターン)を他の合法パターン
へ変換する。この処理後の2次元パターンを、今後は゛
合法シンボル表記画像”と称す。
Therefore, a two-dimensional pattern that has completed the conversion process of the above illegal pattern into a legal "turn" or is in the process of converting the illegal pattern (after the illegal pattern has been replaced with a legal pattern by this conversion process) The pattern connection relationship between adjacent unit meshes on a two-dimensional pattern (hereinafter referred to as "symbol notation image") is observed. If the above specific pattern connection condition is not satisfied, the pattern (legal pattern) of one or more unit meshes in the adjacent unit mesh is converted to another legal pattern so as to satisfy the above specific pattern connection condition. The two-dimensional pattern after this processing will be referred to as a "legal symbol notation image" from now on.

処理すべき2次元パターンからシンボル表記画像を得る
過程は、既出願発明と同様でよいのでこれ以−ヒの説明
は割愛し、シンボル表記画像から合法シンボル表記画像
への変換について、図面に沿つ゛C具体的に説明する。
The process of obtaining a symbol notation image from a two-dimensional pattern to be processed may be the same as that of the previously filed invention, so further explanation will be omitted, and the conversion from a symbol notation image to a legal symbol notation image will be described in accordance with the drawings. C. Explain in detail.

まず、ト配のパターン接続条件について説明する。First, the pattern connection conditions for the distribution will be explained.

今、mxm画素サイズの正方形の単位メソシュを想定す
る。これは一般に妥当である。このような正方形の単位
メツシュ相互の直接的な接続としては、縦方向(通常、
2次元パターンの副走査方向)の接続と、横方向(通常
、2次元パターンの主走査方向)の接続の2種類が考え
られる。しかし斜め方向に隣接する単位メツシュ相互の
相関もかなり強いので、斜め方向の接続も考えるのが望
ましい。したがって、第1図に示すように、隣接する4
つの単位メソシュA、B、C,Dの相互間の接続を同時
に考える。
Now, assume a square unit mesh with mxm pixel size. This is generally valid. Direct connections between such square unit meshes are vertical (usually
Two types of connections are possible: a connection in the sub-scanning direction of the two-dimensional pattern) and a connection in the horizontal direction (usually in the main-scanning direction of the two-dimensional pattern). However, since the correlation between unit meshes adjacent in the diagonal direction is also quite strong, it is desirable to consider connections in the diagonal direction as well. Therefore, as shown in FIG.
Let us consider the connections between the three unit meshes A, B, C, and D at the same time.

ここでパターン接続法則を決定するに先立ち、単位メッ
シュの画素の呼称を若干定義する。mxmサイズの単位
メツシュにおいて、最も外側(二位置する画素を周辺画
素と呼ぶ。周辺画素のうち、第1行と第m行の画素(上
端と下端の画素)を縦方向の接続に関する接続周辺画素
、第1列と第1n列の画素(左端と右端の画素)を横方
向の41G−続に関する接続周辺画素とそれぞれ呼ぶ。
Before determining the pattern connection law, the names of the pixels of the unit mesh are slightly defined. In a unit mesh of mxm size, the pixels at the outermost (two positions) are called peripheral pixels.Among the peripheral pixels, the pixels in the 1st and mth rows (upper and lower end pixels) are connected peripheral pixels regarding vertical connection. , the pixels in the first column and the 1nth column (pixels at the left end and right end) are respectively referred to as connection peripheral pixels regarding the 41G-connection in the horizontal direction.

単位メッシュのサイズを3×3とした場合、単位メツシ
ュの周辺画素は第2図(a)においてノ・ツチングを施
して示した画素、縦方向接続の接続周辺画素は第2図の
)においてハツチングを施して示した画素、横方向接続
の接続周辺画素は第2図(C)において・・ソチングを
施して示した画素がそれぞれ該当する。
When the size of the unit mesh is 3 x 3, the surrounding pixels of the unit mesh are shown by hatching in Figure 2 (a), and the connected surrounding pixels of the vertical connection are shown by hatching in Figure 2 (a). The pixels shown by applying soching and the connected surrounding pixels in the horizontal direction correspond to the pixels shown by applying soching in FIG. 2(C).

つぎに、各方向の接続周辺画素について、次のようなベ
リファラル値BkまたはWkを定義する。
Next, the following verification value Bk or Wk is defined for the connected peripheral pixels in each direction.

Bは黒画素を示し、Wは白画素を示す記号である。B is a symbol indicating a black pixel, and W is a symbol indicating a white pixel.

またkは、個々の接続周辺画素と同種類(白または黒)
の画素が接続方向に連結している個数である。
Also, k is the same type as each connected peripheral pixel (white or black)
This is the number of pixels connected in the connection direction.

第;3図(a)に示すような3×3サイズの単位メッシ
ュ(合法パターン)の縦方向の接続周辺画素のそれぞれ
のペリフェラル値は、第3図(b)に示す如くである。
The peripheral values of the peripheral pixels connected in the vertical direction of the unit mesh (legal pattern) of 3×3 size as shown in FIG. 3(a) are as shown in FIG. 3(b).

すなわち、第1行・第1列の画素は白画素で、それを含
めて3個の白画素が縦方向に並ぶ。したがって、当該接
続周辺画素のペリフェラル値はW3である。第1行・第
2列の接続周辺画素は白画素で、縦方向(接続方向)に
白画素が2個並ぶから、そのペリフェラル値はW2であ
る。
That is, the pixel in the first row and first column is a white pixel, and including this pixel, three white pixels are arranged in the vertical direction. Therefore, the peripheral value of the connected peripheral pixel is W3. The connected peripheral pixel in the first row and second column is a white pixel, and since two white pixels are lined up in the vertical direction (connection direction), its peripheral value is W2.

同様に、第3行・第2列の接続周辺画素は黒画素で、縦
方向に黒画素は1個しか並ばないから、そのペリフェラ
ル値はB1である。また横方向の接続周辺画素のペリフ
ェラル値は、第3図(C)に示す通りである。すなわち
、第1行・第1列の接続周辺++++i素は白画素で、
横方向(接続方向)(;白画素が3個並ぶから、そのペ
リフェラル値はW3である。第3行・第3列の接続周辺
画素は黒画素で、黒画素が横方向に2個並ぶから、その
ペリフェラル値はB 2である。
Similarly, the connected peripheral pixel in the third row and second column is a black pixel, and since there is only one black pixel lined up in the vertical direction, its peripheral value is B1. Further, the peripheral values of the horizontally connected peripheral pixels are as shown in FIG. 3(C). In other words, the ++++i pixels around the connection in the first row and first column are white pixels,
Horizontal direction (connection direction) (; Since three white pixels are lined up, its peripheral value is W3. The connected peripheral pixels in the third row and third column are black pixels, and two black pixels are lined up in the horizontal direction. , its peripheral value is B 2.

1−記のペリフェラル値をもとに、隣接する1−〕の単
位メソシュ相互間のノ;ターン接続法則を考える。ここ
では、くzターン接続法則として、以下のよう(二接続
方向に隣接する個々の接続周辺画素間の接続法則と、接
続方向に隣接する接続周辺画素群間、つ捷り単位メツシ
ュ相互間の接続法則(二分けて考える。
Based on the peripheral values of 1-, consider the no; turn connection law between adjacent unit meshes of 1-]. Here, the Z-turn connection law is as follows (the connection law between individual connected peripheral pixels adjacent in the connection direction, the connection law between connected peripheral pixel groups adjacent in the connection direction, and the connection law between twisting unit meshes). Connection Law (Think of it in two parts.

(1)隣接する個々の画素間の接続法則(受容する接続
条件) P1接続二同種画素間(黒−黒、白−白)の接続で、両
画素のペリフェラル値(k)の和が(n−1)以上であ
る。
(1) Connection law between adjacent individual pixels (acceptable connection conditions) In the connection between two pixels of the same type (black-black, white-white) in P1 connection, the sum of the peripheral values (k) of both pixels is (n -1) That's all.

P2接続:異種画素間(黒−白、白−黒)の接続で、各
画素自体のペリフェラル値 も)が(n−1)以上である。
P2 connection: A connection between different types of pixels (black-white, white-black), where the peripheral value of each pixel itself (also the peripheral value of each pixel) is (n-1) or more.

ただし、nは2次元パターンの線(ディジタル線)の太
さであり、単位メツシュの一辺のサイズ以」−と仮定す
る。
However, it is assumed that n is the thickness of the line (digital line) of the two-dimensional pattern, and is larger than the size of one side of the unit mesh.

(11)単位メツシュ相互間の接続法則S1接続:全て
の隣接画素間がPi接続の場合で、合法な接続として受
容可能。
(11) Connection law between unit meshes S1 connection: If all adjacent pixels are Pi connections, this can be accepted as a legal connection.

S2接続:B2接続が2つ以−Lある接続。この接続は
、黒−白接続の両隣り(横方 向(二ついては上下、縦方向につイテ は左右)2つ以下に、白一点接続が 1つ以」二存在する場合は受容不可能。
S2 connection: A connection with two or more B2 connections. This connection is not acceptable if there are one or more white single-point connections on two or less sides (horizontally (two above and below, vertically: left and right) on both sides of the black-white connection).

S3接続:B2接続が1つ以上ある接続。この接続は、
B2接続の黒画素の両隣り (横方向については上下、縦方向に ついでは左右)2つ以内の少なくと も一方の画素のベリフエラ値がB1 であるか、または、B2接続の白画 素の両隣り2つ以内の少なくとも一 方の画素のペリフェラル値がwlで あるときは受容不可能。また、B2 を含む場合で受容可能のときは82゜ 83両者を満たすときのみ。
S3 connection: A connection with one or more B2 connections. This connection is
The verification error value of at least one of the two pixels on both sides of a B2-connected black pixel (horizontally, top and bottom, vertically, left and right) is B1, or two pixels on both sides of a B2-connected white pixel It is unacceptable if the peripheral value of at least one pixel within is wl. In addition, if B2 is included, it is acceptable only if both 82° and 83 are satisfied.

1     以1−の接続法則の適用例を第4図ないし
第6図に示す(単位メツシュは3×3画素のサイズ)。
1. Examples of application of the connection law in 1-1 are shown in FIGS. 4 to 6 (unit mesh size is 3×3 pixels).

いずれの図でも、ハンチングを施した画素は黒画素であ
る。
In both figures, the pixels subjected to hunting are black pixels.

第4図(a)のA−Dの4つの単位メツシュ(いずレノ
″ターンも合法パターン)の間の横方向の接続をみると
、個々の画素間(二ついては第4図0))(二示すよう
に全てP1接続で、受容可能なS1接続である。第5図
(a)のA−Dの4つの単位メツシュ間の横方向の接続
は、第5図(1))に示すようにP1接続とB2接続が
混在し、受容不可能なS2接続である。また第6図(a
)のA−Dの4つの単位メツシュ間の横方向の接続は、
第6図(b)に示すようにP1接続とB2接続が混在し
、受容不可能なS3接続である。縦方向の接続について
は図示しないが、同様に適用すればよい。
Looking at the horizontal connections between the four unit meshes A-D in Figure 4(a) (all of which are legal patterns), we can see that between individual pixels (two in Figure 40)) ( As shown in Figure 5(a), all are P1 connections and acceptable S1 connections.The lateral connections between the four unit meshes A-D in Figure 5(a) are as shown in Figure 5(1)). The P1 connection and B2 connection are mixed in the S2 connection, which is unacceptable.
), the lateral connections between the four unit meshes of A-D are:
As shown in FIG. 6(b), P1 connections and B2 connections coexist, which is an unacceptable S3 connection. Although vertical connections are not shown, they may be applied in the same way.

七に述べた接続法則の妥当性を確認するために、以下(
二示すような実験を行なった。
In order to confirm the validity of the connection law stated in Section 7, the following (
Two experiments were conducted as shown below.

すなわち、CCI TTのファクシミリ用テストチャー
)Nll(英文手紙)の良画質原稿、汚染した原稿、″
かすれ”させた原稿のそれぞれを、3×3画素サイズの
単位メツシュに機械的(二分割して2次元パターン情報
(2値)を得た。この2次元パターン情報から、合法パ
ターンのみから成るシンボル表記画像を生成した。ただ
し合法パターンとして、前記の特許願に添付の明細書お
よび図面で示した66種の合法パターンを用いた。
In other words, CCI TT's facsimile test chart) Nll (English letter) high quality manuscript, contaminated manuscript,
Each of the blurred originals was mechanically divided into two unit meshes of 3 x 3 pixel size to obtain two-dimensional pattern information (binary). From this two-dimensional pattern information, symbols consisting only of legal patterns were obtained. A notation image was generated. However, as legal patterns, 66 types of legal patterns shown in the specification and drawings attached to the above-mentioned patent application were used.

1−記のシンボル表記画像(=おいて、 81.82,
8;3接続の受容可能条件のみを満たす(受容不可能な
S2接続、S3接続のない)合法パターン間の縦方向と
横方向の接続(合法接続と称す)の総数をそれぞれ調べ
た。また、接続総数(450,225)に対する各方向
の合法接続の比率を求めた。さらに、合法接続のうち白
−白接続数(オール白の単位メツシュ間の接続数)と、
それを除いた接続数の比率を調べた。これらの数値を表
1に示す。
1- symbol notation image (=, 81.82,
The total number of vertical and horizontal connections (referred to as legal connections) between legal patterns that satisfy only the acceptable conditions for 8;3 connections (no unacceptable S2 connections or S3 connections) were investigated. In addition, the ratio of legal connections in each direction to the total number of connections (450, 225) was determined. Furthermore, among the legal connections, the number of white-white connections (the number of connections between all-white unit meshes),
We investigated the ratio of the number of connections excluding this. These values are shown in Table 1.

表  1 表1かられかるように、良画′質原稿では合法接続の累
積は全接続数の99.7%以4二に及ぶ。最も頻度の高
い白−白接続を除外しても、その比率は96チ以上であ
る。この比−率は汚染原稿や”′がすれ″原稿では下・
かり、汚染原稿では82%前後、かすれ原稿では85チ
前後の累積比率を示した。したがって、これらの比率は
対象画像の状態(良質、汚染、かすれ)−を判定する1
つのパラメータとして利用できる。
Table 1 As can be seen from Table 1, in high-quality manuscripts, the cumulative number of legal connections is 99.7% or more of the total number of connections. Even if the most frequent white-white connection is excluded, the ratio is still over 96 chis. This ratio is lower for contaminated manuscripts or manuscripts with "'"
The cumulative ratio was around 82% for dirty manuscripts, and around 85% for faded manuscripts. Therefore, these ratios determine the condition of the target image (good quality, contamination, blur).
Can be used as one parameter.

一方、66種の合法パターンの場合、縦、横各方向につ
いて可能な合法接続の種類は1582であり、各方向に
ついて可能な接続種類662= 4356の約36.3
%であった。また゛、第1図に示すような4つの単位メ
ツシュ相互で縦、横両方向が同時に合法接続となるよう
な合法パターンの組合せ数は384.562で、総組合
せ数664の2.03%であった。このことは、単位メ
ツシュ間においても、対象がディジタル線の集合である
ということが強い拘束を持っているという1つの証拠で
ある。
On the other hand, in the case of 66 types of legal patterns, the number of possible legal connection types in each direction is 1582, and the number of possible connection types in each direction is 662 = 4356, which is approximately 36.3.
%Met. Furthermore, the number of combinations of legal patterns in which four unit meshes are legally connected simultaneously in both the vertical and horizontal directions as shown in Figure 1 was 384.562, which was 2.03% of the total number of combinations of 664. . This is one proof that there is a strong constraint that the object is a set of digital lines even between unit meshes.

以上の諸事項を総合評価すれば、前記の「Sl。If we comprehensively evaluate the above matters, the above-mentioned "Sl.

82.83接続の受容可能条件のみを満たす」ことが、
隣接する単位メツシュ相互間の接続が合法受容可能であ
るためのパターン接続条件として妥当であると結論する
ことができる。
82.83 “satisfies only the acceptability conditions for the connection”
It can be concluded that the connection between adjacent unit meshes is valid as a pattern connection condition for legal acceptance.

つぎに、上記のパターン接続条件を用いて、シンボル表
記画像を合法シンボル表記画像へ変換する処理を説明す
る。
Next, a process of converting a symbol notation image into a legal symbol notation image using the above pattern connection conditions will be described.

第7図において、シンボル表記画像上の任意の1つの単
位メソシュ(図中、ハンチングを施した学位メツシュ)
に注目すると、この注目単位メッ7ュは周囲の8個の単
位メツシュと接続している。
In Figure 7, any one unit mesh on the symbol notation image (the degree mesh with hunting in the figure)
If we pay attention to this unit mesh 7, this unit mesh 7 of interest is connected to eight surrounding unit meshes.

換言すれば、注目単位メソシュは、第1図で説明した4
単位メツシュ間の接続関係が(イ)、(o)、(ハ)。
In other words, the attention unit mesh is the 4
The connection relationships between unit meshes are (a), (o), and (c).

に)と4組存在することになる。There are 4 pairs.

したがって、注目している単位メツシュの現在のパター
ン(合法パターン)が周囲の単位メツシュのパターンと
の関係で妥当であるかどうかを判定するには、基本的に
は(イ)〜に)の4組の接続関係l  を観察する必要
がある。そして、1組でも前記のパターン接続条件に適
合しない受容不可能な接続関係が存在すれば、注目単位
メツシュまたはその隣接の単位メツシュ(例えば注目単
位メツシュ真上のチ印を付した単位メツシュとの関係が
受容不可能な場合、図のどちらか一方)のパターンを他
の合法パターンに変換し、4組共に受容可能な合法接続
となるように修正を施す。この修正によって、修正され
た単位メツシュを含む他の接続関係が受容不可能となる
ことも起り得るので、接続関係の再チェックと修正を必
要なだけ繰り返す。このようにして、シンボル表記画像
を合法シンボル表記画像(二変換することができる。
Therefore, in order to determine whether the current pattern (legal pattern) of the unit mesh of interest is valid in relation to the patterns of the surrounding unit meshes, basically It is necessary to observe the connection relation l of the set. If there is an unacceptable connection relationship that does not meet the pattern connection conditions for even one set, the mesh of the unit of interest or its adjacent unit mesh (for example, the mesh of the unit of interest marked with a check directly above the mesh of the unit of interest) If the relationship is not acceptable, convert the pattern (either one of the diagrams) to another legal pattern, and make corrections so that all four sets become acceptable legal connections. Because this modification may cause other connectivity relationships that include the modified unit mesh to become unacceptable, the connectivity relationships are rechecked and modified as often as necessary. In this way, a symbol notation image can be converted into a legal symbol notation image.

以上、基本的な変換処理の手順を述べたが、これは以下
に述べるように簡略化することが可能である。
The basic conversion processing procedure has been described above, but this can be simplified as described below.

一般に、画像はラスク走査しながら処理する。Generally, images are processed while scanning them.

またラスク走査は、左から右へ向って主走査し、トから
下へ向って副走査するのが普通である。
In rask scanning, main scanning is generally performed from left to right, and sub-scanning is performed from top to bottom.

そこで、リアルタイム処理を行なう場合には、走査の進
行に合せて次のような手順によって処理するのがよい。
Therefore, when performing real-time processing, it is preferable to perform the processing according to the following procedure in accordance with the progress of scanning.

今、第8Vにお・いて、)・ツチングを施した単位メツ
シュEが読み取られたとする。この時点では、周囲の単
位メツシュA、B、C,Dは、シンボル表記画像への変
換処理、およびシンボル表記画像から合法/ンボル表記
画像への変換処理が終了している。
Suppose now that in the 8th V, the unit mesh E to which )-touching has been applied is read. At this point, the surrounding unit meshes A, B, C, and D have completed the conversion process to the symbol notation image and the conversion process from the symbol notation image to the legal/indication image.

注目している単位メツシュEのパターンをチェックし、
非合法パターンの場合はまず合法パターンへの変換(シ
ンボル表記画像への変換処理)を行なった後(二、そう
でなければ直ち(1以下の処理手順を実行する。
Check the pattern of the unit mesh E that you are interested in,
In the case of an illegal pattern, first convert it to a legal pattern (conversion process to a symbol notation image), and then immediately execute the following processing steps (2), otherwise (1).

〔ステップ]〕[Step]

単位メソシュA、r3.D、E間の接続関係と、単位メ
ツシュB、E、C間の接続関係を観測し、前記のパター
ン接続条件を満たす受容可能なものかチェックする。
Unit mesh A, r3. The connection relationship between D and E and the connection relationship between unit meshes B, E and C are observed to check whether they are acceptable and satisfy the pattern connection conditions described above.

〔ステップ2〕 両方の接続が受容できるならば、注目している単位メソ
シュE(二対する合法シンボル表記画像への変換処理を
終了する。一方あるいは両方の接続が受容不可能なら、
両方の接続が受容b]能となるように、注目している単
位メツシ、:I:Eの・ζターンを他の合法パターンへ
修正し、処理を終了する。
[Step 2] If both connections are acceptable, the conversion process to the unit mesh E (two pairs of legal symbol notation images) is completed. If one or both connections are unacceptable,
The .zeta.-turn of the unit of interest, :I:E, is modified to another legal pattern so that both connections can be accepted, and the process is terminated.

なお、両方の接続を受容可能とする合法・;ターンが2
つ以上存在する場合は、例えば修正前の単位メツシュパ
ターンとのノ・ミング距離を考慮して選択する。
In addition, it is legal to accept both connections; there are 2 turns.
If there are more than one mesh pattern, the mesh pattern is selected by considering, for example, the distance from the unit mesh pattern before modification.

このような注目単位メツシュEの・;ターンの修正のみ
で接続関係を受容可能にできるのは、次の理由による。
The reason why the connection relationship can be made acceptable only by modifying the .; turn of the mesh E of the unit of interest is as follows.

注目単位メツシュEの処理時点では、単位メツシュA、
D間、A、I’3間、B、D間の接続はチェック済みで
ある。したがって、単位メツシュA、B、D、B間の接
続が受容不可能な場合、単位メツシュEのパターン修正
だけで、その接続を受容可能なものにできる。同様(二
、単位メツシュB、E、C間の接続が受容不可能な場合
も、単位メツ718,0間の接続はチェック済みである
ので、注目単位メツシュEのパターン修正のみでその接
続を受容可能なもの(二できる。
At the time of processing the unit mesh E of interest, the unit mesh A,
Connections between D, between A and I'3, and between B and D have been checked. Therefore, if the connection between unit meshes A, B, D, and B is unacceptable, the connection can be made acceptable simply by modifying the pattern of unit mesh E. Similarly (2. Even if the connection between unit meshes B, E, and C is unacceptable, the connection between unit meshes 718 and 0 has already been checked, so the connection can be accepted only by modifying the pattern of the unit of interest mesh E. Possible (two possible)

尚、にではリアルタイム処理を想定したが、処理すべき
2次元パターン全体についてシンボル表記画像を生成し
たのちに、合法シンボル表記画像への変換処理を行なっ
てもよいことは勿論である。
Incidentally, although real-time processing is assumed here, it goes without saying that the conversion process to the legal symbol notation image may be performed after the symbol notation image is generated for the entire two-dimensional pattern to be processed.

以北に詳述したように、本発明による2次元パターン修
正方式は、単位メツシュ個々のパターンだけでなく、隣
接する単位メツシュ間および画素間の接続関係をチェッ
クしてパターンの修正を行なうため、ノイズが混入した
り歪んだ2次元パターンを高品質の2次元パターンに効
果的(−修正・復元できる。また前述したことから明ら
かなように、それ程大容量のバッファメモリを必要とす
ることなく、1回の画像走査だけでリアルタイムで処理
することも容易である。
As detailed above, the two-dimensional pattern correction method according to the present invention corrects the pattern by checking not only the pattern of each unit mesh but also the connection relationship between adjacent unit meshes and between pixels. It is possible to effectively (correct and restore) a 2D pattern with noise or distortion into a high quality 2D pattern.Also, as is clear from the above, it does not require a large capacity buffer memory. It is also easy to process in real time with just one image scan.

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

第1図は単位メツシュの接続を説明するための図、第2
図は単位メツシュの周辺画素の定義を説明するための図
、第3図は単位メツシュのペリフェラル値を例示する図
、第4図ないし第6図は隣接する単位メツシュ間の横方
向接続の例を説明するための図、第7図はシンボル表記
画像から合法シンボル表記画像への基本的な変換処理を
説明するための図、第8図はより実際的な2次元パター
ン修正処理を説明するための図である。 代理人 弁理士 鈴 木   誠 第1図 第2図 (L)     (b)      (り第3図 第4図 (の            (b) 第5図 第7図 第8図 手続補正書(自発) 収ノ\印11(金゛釦 0円 昭和56年12月22目 特許庁長官 島 1)春 樹 殿 1°“]′件の表′バ  特願昭56−109766号
2・発明 の名称 2次元パターン修正方式3、補正を
する者 ・」1件との関係  出願人 住 所 大阪府高槻市奈佐原元町158番地4、代理人
   @151 住  所  東京都渋谷区代々木2丁目38番12号 
線部ビル201Q氏  名  (7376)   弁理
士 鈴 木    誠電話03 (374) 9671
番 5 補正により増加する発明の数 なし6、補正の対象 明細書の「発明の詳細な説明」の欄 7、 補正の内容 (1)  明細件第8頁下から4行目の1ペリフアラル
値」を「ペリフェラル値」に補正する。 (2)  明細書第11頁5行目の「2一つ以下」を1
2つ以内」に補正する。 (31明細書第11頁14・〜17行目の記載を下記の
通りに補正する。 「    方の画素のペリフェラル値カWlであるとき
は受容不可能。 すなわら、P2を含む場合で受容可能のときはS2.8
3両者を満たすときのみ。」14)  明t@再第15
頁12行目の1注目単位メッンユ2は、」を「注目単位
メツシュに対して、」に補正する。
Figure 1 is a diagram for explaining the connection of unit meshes, Figure 2
The figure is a diagram for explaining the definition of peripheral pixels of a unit mesh, Figure 3 is a diagram illustrating peripheral values of a unit mesh, and Figures 4 to 6 are examples of horizontal connections between adjacent unit meshes. Figure 7 is a diagram for explaining the basic conversion process from a symbol representation image to a legal symbol representation image, and Figure 8 is a diagram for explaining a more practical two-dimensional pattern correction process. It is a diagram. Agent Patent Attorney Makoto Suzuki Figure 1 Figure 2 (L) (b) (Figure 3 Figure 4 (b) Figure 5 Figure 7 Figure 8 Procedural amendment (voluntary) Collection Seal 11 (Gold button 0 yen December 22, 1981 Commissioner of the Japan Patent Office Shima 1) Haruki Tono 1°”] Table of items Patent Application No. 109766/1982 2. Name of the invention 2-dimensional pattern correction Form 3, Person making the amendment/Relationship with one case Applicant address: 158-4 Nasahara Motomachi, Takatsuki City, Osaka Prefecture, Agent @151 Address: 2-38-12 Yoyogi, Shibuya-ku, Tokyo
Line Department Building 201Q Name (7376) Patent Attorney Makoto Suzuki Telephone 03 (374) 9671
No. 5 Number of inventions increased by amendment None 6, "Detailed explanation of the invention" column 7 of the specification subject to amendment, Contents of amendment (1) 1st peripheral value in the fourth line from the bottom of page 8 of the specification. Correct to "peripheral value". (2) Change “2 or less” to 1 on page 11, line 5 of the specification.
Correct to 2 or less. (The statement on page 11, lines 14 to 17 of the 31 Specification is corrected as follows. "It is unacceptable when the peripheral value of one pixel is Wl. In other words, it is unacceptable when P2 is included. S2.8 when possible
3. Only when both conditions are met. ”14) Akirat @ second 15th
For the first unit of attention mesh 2 on the 12th line of the page, "" is corrected to "with respect to the unit of interest mesh."

Claims (1)

【特許請求の範囲】 1.2次元パターンに出現する単位メツシュのパターン
のうち特定のパターンを合法パターンとして予め選定し
ておくとともに、隣接して存在することの許容される合
法パターン相互間で満足されねばならない特定のパター
ン接続条件を予め決定しておき、処理すべき2次元パタ
ーンに合法ハターン以外の非合法パターンの単位メソシ
ュが出現するとその非合法パターンはそれと特定の関係
にある1つの合法パターンに変換し、該変換の処理を完
了した、または該変換処理の途上にある2次元パターン
上の隣接する単位メツシュ相互間のパターン接続関係を
観測し、前記の特定のパターン接続条件を満足しないと
きはそれを満足するように、当該隣接単位メツシュ中の
1つ[hの単位メツシュのパターンを他の合法パターン
へ変換することにより、前記の特定のパターン接続条件
を満足して接続する合法パターンのみより成る2次元パ
ターンを生成することを特徴とする2次元パターン修正
方式。 2、 非合法パターンは、それとの)・ミング距離にし
たがって選んだ合法パターンに変換することを特徴とす
る特許請求の範囲第1項記載の2次元パターン修正方式
。 36  前記のパターン接続条件は、隣接する単位メツ
シュ間および個々の画素間に関して定義することを特徴
とする特許請求の範囲第1項記載の2次元パターン修正
方式。 4.2次元パターンを左から右へ主走査し、」二から下
へ副走査するとして、注目している単位メツシュと、そ
の左、直上、左斜め上、右斜めLに隣接する単位メツシ
ュに関して前記のパターン接続関係を観測し、これら全
ての単位メツシュ間で前記の特定のパターン接続条件が
満足されるように該注目単位メツシュのパターンの変換
を行なうことを特徴とする特許請求の範囲第1項記載の
2次元パターン修正方式。
[Claims] 1. A specific pattern among unit mesh patterns appearing in a two-dimensional pattern is selected in advance as a legal pattern, and the legal patterns that are allowed to exist adjacent to each other are satisfied. Specific pattern connection conditions that must be processed are determined in advance, and when a unit mesh of an illegal pattern other than a legal pattern appears in the two-dimensional pattern to be processed, that illegal pattern becomes one legal pattern that has a specific relationship with it. , and the pattern connection relationship between adjacent unit meshes on a two-dimensional pattern that has completed the conversion process or is in the process of conversion process is observed, and the specific pattern connection condition described above is not satisfied. By converting the pattern of the unit mesh of one of the adjacent unit meshes into another legal pattern so that A two-dimensional pattern modification method characterized by generating a two-dimensional pattern consisting of. 2. The two-dimensional pattern correction method according to claim 1, characterized in that the illegal pattern is converted into a legal pattern selected according to the distance between the illegal pattern and the illegal pattern. 36. The two-dimensional pattern correction method according to claim 1, wherein the pattern connection condition is defined with respect to adjacent unit meshes and between individual pixels. 4. Assuming that the two-dimensional pattern is main-scanned from left to right and sub-scanned from the second to the bottom, regarding the unit mesh of interest and the unit meshes adjacent to the left, directly above, diagonally above the left, and diagonally to the right L. Claim 1: Observing the pattern connection relationship, and converting the pattern of the unit mesh of interest so that the specific pattern connection condition is satisfied between all of the unit meshes. Two-dimensional pattern correction method described in Section 2.
JP56109766A 1981-07-14 1981-07-14 Two-dimensional pattern correcting system Granted JPS5810964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56109766A JPS5810964A (en) 1981-07-14 1981-07-14 Two-dimensional pattern correcting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56109766A JPS5810964A (en) 1981-07-14 1981-07-14 Two-dimensional pattern correcting system

Publications (2)

Publication Number Publication Date
JPS5810964A true JPS5810964A (en) 1983-01-21
JPS6354275B2 JPS6354275B2 (en) 1988-10-27

Family

ID=14518682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56109766A Granted JPS5810964A (en) 1981-07-14 1981-07-14 Two-dimensional pattern correcting system

Country Status (1)

Country Link
JP (1) JPS5810964A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS546714A (en) * 1977-06-17 1979-01-19 Matsushita Electric Ind Co Ltd Picture signal processing system
JPS55979A (en) * 1979-02-19 1980-01-07 Sanyo Electric Co Ltd Correction system for defective picture element of picture reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS546714A (en) * 1977-06-17 1979-01-19 Matsushita Electric Ind Co Ltd Picture signal processing system
JPS55979A (en) * 1979-02-19 1980-01-07 Sanyo Electric Co Ltd Correction system for defective picture element of picture reader

Also Published As

Publication number Publication date
JPS6354275B2 (en) 1988-10-27

Similar Documents

Publication Publication Date Title
JP3222183B2 (en) Image processing device
JPH05308513A (en) Method for improving resolution of input picture and executing concentration processing and smoothing operation
JPH06333035A (en) Image processor
JPWO2012004830A1 (en) Image processing device
JPH1084475A (en) Image area discrimination method and image-processing unit
JPS5810964A (en) Two-dimensional pattern correcting system
US6181437B1 (en) Image processing apparatus capable of producing images without jaggies at edges
JP3539552B2 (en) Image processing device
JP2608404B2 (en) Image processing device
JPS5810965A (en) Two-dimensional pattern correcting system
JP3783815B2 (en) Image processing device
JP3124167B2 (en) Image processing method and apparatus
JPS61157156A (en) Picture processing device
JPS59135573A (en) Identifying system of photo region
JPH0413882Y2 (en)
JPH06205201A (en) Binary picture magnification/reduction device
JP3436003B2 (en) Image processing device
JPS58221567A (en) Picture processor
JPH05145747A (en) Image processor
JP3474431B2 (en) Image processing method
JPH06292005A (en) Picture signal processing unit
JPH05303633A (en) Processor for thinning binary picture
JPS58161470A (en) Binary-coding system of video signal
JPH05145745A (en) Reduction processor for pseudo halftone image
JPH065878B2 (en) Image processing device