JPS603073A - Pattern extraction system - Google Patents

Pattern extraction system

Info

Publication number
JPS603073A
JPS603073A JP11043483A JP11043483A JPS603073A JP S603073 A JPS603073 A JP S603073A JP 11043483 A JP11043483 A JP 11043483A JP 11043483 A JP11043483 A JP 11043483A JP S603073 A JPS603073 A JP S603073A
Authority
JP
Japan
Prior art keywords
label
picture element
line
pixel
memory
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
JP11043483A
Other languages
Japanese (ja)
Inventor
Shinji Ozawa
小沢慎治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP11043483A priority Critical patent/JPS603073A/en
Publication of JPS603073A publication Critical patent/JPS603073A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve pattern extraction by retracing a black picture element string given a specific label, and correcting the label. CONSTITUTION:A labeling device 13 makes a raster scan on the image in a memory 11 from the left upper corner to search for the 1st black picture element. Then, an aimed picture element is moved along outside boundary picture elements so that a clockwise round of a concatenation pattern is made; and thus tracing is performed and label is give. A labeling device 13 traces the labeled picture element string in a memory 11. It is decided in this tracing whether a terminal point is found or not, and when there is no terminal point found, a jump to the next step is made. When the terminal point is found, the label contacting the picture element is corrected and an advance to the next step is made. When the label correction is completed, a segmenting device 14 segments respective patterns of a picture element string with an isolated label and the picture element string with the label from the memory 11 and outputs them.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、連結したパターンを分離して抽出するパター
ン抽出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a pattern extraction method for separating and extracting connected patterns.

〔従来技術〕[Prior art]

従来のパターン抽出方式は、個々のパターンの範囲を画
素単位の連結性判定によって識別して(・る。したがっ
て、大局的な連結状態を把握できず、切出しエラーを起
こす場合があった。例えば、第1図に示す連結パターン
の場合、線図形1.2と連結線3とを分離できず、1つ
のパターンとして該抽出してしまう。
Conventional pattern extraction methods identify the range of individual patterns by determining connectivity on a pixel-by-pixel basis.Therefore, the overall connectivity state could not be grasped, which could lead to cutting errors.For example, In the case of the connected pattern shown in FIG. 1, the line figure 1.2 and the connected line 3 cannot be separated and are extracted as one pattern.

〔目的〕〔the purpose〕

本発明の目的は、上述の叩き連結したパターンを分離し
て抽出し得るパターン抽出方式を提供することにある。
An object of the present invention is to provide a pattern extraction method that can separate and extract the above-mentioned connected patterns.

〔実施例〕〔Example〕

本発明の一実施例について、第2図ないし第7図を用い
て説明する。
An embodiment of the present invention will be described using FIGS. 2 to 7.

第2図は本発明に係るパターン抽出装置の一例を示す概
略ブロック図であり、11はメモリ、13はラベル付は
装置、14は切出装置である。これら各部はバス】2に
よって相互に接続さ、iする。
FIG. 2 is a schematic block diagram showing an example of a pattern extraction device according to the present invention, in which 11 is a memory, 13 is a labeling device, and 14 is a cutting device. These parts are interconnected by a bus i.

今、第3図に示す連結パターンの画像がメ七す11に口
〜ドされたとして、パターン抽出処理を順に説明する。
Now, assuming that the image of the connected pattern shown in FIG. 3 has been entered into the menu 11, the pattern extraction process will be explained in order.

第7図はその処理の概略フローチャートである。FIG. 7 is a schematic flowchart of the process.

まず、ラベル付は装置13はメモI711内の画像を左
上角よりラスク走査し、最初の黒画素ケ捜す(ステップ
[相])。この例では、Aの画素が見つかり、最初の注
目画素となる。注目lli+i素とそgに隣接する黒画
素にラベル“2″を付ける(ステップ■)。
First, the labeling device 13 scans the image in the memo I 711 from the upper left corner and searches for the first black pixel (step [phase]). In this example, pixel A is found and becomes the first pixel of interest. A label "2" is attached to the black pixel adjacent to the noticed lli+i element and sog (step 2).

注目画素を第4図に矢印で示すように外側境界画素に沿
って1つ移動させる(ステップ0)。注目画素と第6図
に示す周囲画素とにラベル″2“ぞ付ける(ステップ0
)。第6図で×は注目画素であり、各図の下側に示す矢
印は注目画素の移動方向である。例えば、へ画素からB
 ++!Ii素(第3図)へ注目画素を移動した時は、
第6図(b)に示す3個の周囲lI!Ll素および注目
画素×にジベル“°2′°を付ける。ただし、直前の注
目画素において既VCラベル″2″が付けられている画
素には、ラベル”3”を付ける。連結パターンを一巡し
たか判定しくステップ0)、NOであればステップ0へ
戻る。
The target pixel is moved by one position along the outer boundary pixel as shown by the arrow in FIG. 4 (step 0). Attach the label "2" to the pixel of interest and the surrounding pixels shown in FIG. 6 (Step 0
). In FIG. 6, the x indicates the pixel of interest, and the arrow shown at the bottom of each figure indicates the direction of movement of the pixel of interest. For example, from pixel to B
++! When the pixel of interest is moved to the Ii element (Figure 3),
The three surroundings lI shown in FIG. 6(b)! Add a label "°2'° to the Ll element and the pixel of interest If the answer is NO (step 0), return to step 0.

このようにして、連結パターンを時計回りに一巡する如
(、外側の境界画素に沿って注目画素を移動させてトレ
ースし、ラベル付けを行う。ラベル付けの結果は第4図
のようになる。この図で■はラベル″2”を付(すら7
1.た後、改めてラベル″3”′を付けられた画素であ
る。即ち、連結#40部分はトレースの往復路となるた
め、往路でラベル”2″が付けられるが復路でラベル”
3”に付は替えら扛る。こ7”Lに対し、広がりを持つ
線区形5.6は重複してトレースさ才しることがない’
iJ)らラベル°゛2”を付しナらn、たまよとなる。
In this way, the connected pattern is traced clockwise (by moving the pixel of interest along the outer boundary pixels) and labeled. The result of labeling is as shown in FIG. In this figure, ■ is labeled ``2'' (sara 7
1. This pixel is then relabeled ``3''. In other words, since the connection #40 part is a round trip of tracing, the label "2" is attached on the outward route, but the label "2" is attached on the return route.
3" does not change. In contrast to this 7"L, the line segment shape 5.6 with a spread will not be traced repeatedly.
iJ) and add the label ゛2'' to become Nara n, Tamayo.

第4図から明らかなように、この段階でも浬結線4と線
図形5.6をそれぞれ分離して抽出し得る。しかし、線
図形5.6の連結線4どの連結部分にラベル°“3′′
が付けられている1こめ、この段階で抽出しフこのでは
、線図形5.6の一部が欠けてしまう。そこで、この連
結部分のラベル修正を行う。
As is clear from FIG. 4, the connection line 4 and line figure 5.6 can be extracted separately at this stage as well. However, the label °“3''
If 1 is extracted at this stage, part of the line figure 5.6 will be missing. Therefore, the label of this connected part is corrected.

即ち、ラベル付は装置13はメモリ11上において、ラ
ベル”2′′の付けら71こll111素列をトレース
する(ステップ0)。このトレースで端点が見つかるか
判定しくステップ0)、端点かなければステップOへ飛
ぶ。端点が見つかれば、白画素と接するラベル“3″を
ラベル”2”に修正しくステップ[相])、ステップ[
相]ぺ進む。
That is, for labeling, the device 13 traces the 71 element sequence labeled "2'' on the memory 11 (step 0). It is determined whether an end point is found in this trace (step 0), and if there is no end point. If the end point is found, the label "3" touching the white pixel is changed to the label "2". Step [Phase]) and Step [
Phase] Proceed.

第4図によって説明すると、線図形5の場合、Cdii
索からC8画素までトレースするが、これら画素は離れ
ているから端点があることになる。
To explain with reference to FIG. 4, in the case of line figure 5, Cdii
Trace is made from the line to the C8 pixel, but since these pixels are far apart, there is an end point.

そこで、白画素と接しているラベル゛3″、即ちC1画
素とC2画素はラベル°゛2”に修正される。
Therefore, the label "3", that is, the C1 pixel and the C2 pixel, which are in contact with the white pixel, are modified to the label "2".

線区形5のラベル修正を終了すると、ステップ@よりス
テップ0へ戻り、残っている線図形6のラベル修正が行
わ7する。この場合、0画素からり。画素までトレース
さJし、l)。画素がラベル11211に修正さする。
When the label correction of the line segment shape 5 is completed, the process returns from step @ to step 0, and the label correction of the remaining line figure 6 is performed (7). In this case, 0 pixels. Trace to pixel J and l). The pixel is modified to label 11211.

以上のようにしてラベル修正を完了すると、メモリ11
の内容は第5図に示−r如くになる。切出装置14ば、
孤立したラベル″2”の画素列、即ち線図形5と6のパ
ターン、およびラベル゛′3″のi[!II紫列、即ち
連結線4の各パターンをメモリ11より切り出し、外部
へ出力する(ステップ@)。
When the label correction is completed as described above, the memory 11
The contents are as shown in FIG. Cutting device 14,
The isolated pixel column with the label "2", that is, the patterns of line figures 5 and 6, and the i[!II purple column of the label "'3", that is, each pattern of the connecting line 4 are cut out from the memory 11 and output to the outside. (Step @).

なお、処理すべきパターンの線幅が大きい場合、ラベル
加”が上側のように正常に付かないことがある。このよ
うな不都合を避けるために、メモリ11にロードする前
にパターンに細線化処理を施すのが望ましい。
Note that if the line width of the pattern to be processed is large, the label may not be added normally as shown above. It is desirable to apply

例えば、2×2画素の論理和をとって1画素に変換する
操作(縮小・細線化)を第3図の画像に施し、それに上
述のステップ[相]〜0のラベル付は処理を行えば、そ
の結果は第8図のようになる。
For example, if you perform the operation (reduction/thinning) of calculating the logical sum of 2×2 pixels and converting it into 1 pixel on the image in Figure 3, and then perform the above-mentioned steps [phase] to 0 labeling, , the result is as shown in Figure 8.

この後、ステップ0以降の処理を実行ずれば、上述と同
様のパターン抽出を達成できることは明らかである。こ
のような画像の縮小割合はその原画像の精度に依存し、
読取密度8×8画素/朋の手書き図形の場合、縮小率は
一般に1/8倍がノ凶している。
It is clear that the same pattern extraction as described above can be achieved by executing the processes from step 0 onwards. The reduction ratio of such an image depends on the accuracy of the original image,
In the case of a handwritten figure with a reading density of 8×8 pixels, the reduction ratio is generally 1/8.

〔効果〕〔effect〕

本発明は以−ヒに詳述1−フこ如(、線図形と連結部、
あるいは同様の連結したパターンを分離して抽出できる
という効果を得られる。
The present invention will be described in detail below.
Alternatively, it is possible to obtain the effect that similar connected patterns can be separated and extracted.

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

第1図は連結パターンの例を示す図、第2図は本発明に
係るパターン抽出処理装置の一例を示す概略ブロック図
、第3図ないし第5図はパターン抽出処理を説IJJす
るためのパターン図、第6図はラベル付けの説明図、第
7図はパターン抽出処理の概略フローチャート、第8図
は縮小・細線化後にラベル付けを行なった結果を示すパ
ターン図である。 】l・・・メモリ、】2・・・バス、13・・・ラベル
付は装置、14・・・切出装置。 代理人弁理士 鈴 木 誠 314 し□□ −
FIG. 1 is a diagram showing an example of a connected pattern, FIG. 2 is a schematic block diagram showing an example of a pattern extraction processing device according to the present invention, and FIGS. 3 to 5 are patterns for explaining IJJ pattern extraction processing. 6 is an explanatory diagram of labeling, FIG. 7 is a schematic flowchart of pattern extraction processing, and FIG. 8 is a pattern diagram showing the result of labeling after reduction and thinning. ]l...Memory, ]2...Bus, 13...Labeled device, 14...Cutting device. Representative Patent Attorney Makoto Suzuki 314 Shi□□ −

Claims (1)

【特許請求の範囲】[Claims] (1)・1・つの線図形とそれに連結した1つ以上の連
結線とから成る連結パターンを一巡する如く外側の境界
画素に沿ってトレースしながら、該線図形の黒画素と該
連結線の黒画素とにそ1tぞれ別異のラベルを付けた後
、特定のラベルを付けもオtた黒画素列を再びトレース
することにより該線図形の該連結線との連結部分のラペ
ルイじ正を竹うことにより、段線図形と該連結線とを分
離して抽出することを特徴とするパターン抽出方式。
(1) While tracing a connected pattern consisting of one line figure and one or more connected lines connected to it along the outer boundary pixels, trace the lines between the black pixels of the line figure and the connected lines. After labeling each black pixel with a different label, the lapel alignment of the connecting portion of the line figure with the connecting line can be determined by tracing again the black pixel row that has been given a specific label. A pattern extraction method characterized by separating and extracting a dashed line figure and the connecting line.
JP11043483A 1983-06-20 1983-06-20 Pattern extraction system Pending JPS603073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11043483A JPS603073A (en) 1983-06-20 1983-06-20 Pattern extraction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11043483A JPS603073A (en) 1983-06-20 1983-06-20 Pattern extraction system

Publications (1)

Publication Number Publication Date
JPS603073A true JPS603073A (en) 1985-01-09

Family

ID=14535630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11043483A Pending JPS603073A (en) 1983-06-20 1983-06-20 Pattern extraction system

Country Status (1)

Country Link
JP (1) JPS603073A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63292277A (en) * 1987-05-25 1988-11-29 Canon Inc Pattern recognizing method
US20110110591A1 (en) * 2009-11-09 2011-05-12 Ming-Hwa Sheu Multi-point image labeling method
US9042651B2 (en) 2009-11-09 2015-05-26 National Yunlin University Of Science And Technology Multi-point image labeling method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63292277A (en) * 1987-05-25 1988-11-29 Canon Inc Pattern recognizing method
US20110110591A1 (en) * 2009-11-09 2011-05-12 Ming-Hwa Sheu Multi-point image labeling method
US9042651B2 (en) 2009-11-09 2015-05-26 National Yunlin University Of Science And Technology Multi-point image labeling method

Similar Documents

Publication Publication Date Title
CN108520247B (en) Method, device, terminal and readable medium for identifying object node in image
CN110232693B (en) Image segmentation method combining thermodynamic diagram channel and improving U-Net
US9066036B2 (en) Determining transparent fills based on a reference background colour
JPS603073A (en) Pattern extraction system
CN110084117A (en) Document table line detecting method, system based on binary map segmented projection
CN107369150B (en) Method for detecting rectangular target and rectangular target detection device
CN115035032A (en) Neural network training method, related method, device, terminal and storage medium
JP2014506025A (en) Trapping method and trapping device
CN113628113A (en) Image splicing method and related equipment thereof
JPH06231253A (en) Image correcting device and drawing inputting device
Xiao et al. Utilizing edge to extract roads in high-resolution satellite imagery
CN112419208A (en) Construction drawing review-based vector drawing compiling method and system
CN112233127B (en) Down-sampling method for curve splicing image
CN112258539B (en) Water system data processing method, device, electronic equipment and readable storage medium
JPH04255080A (en) Image input device
JPH0658689B2 (en) Line figure separation device
JP2683026B2 (en) Line figure vectorization device
JP2522511B2 (en) Image contour tracking unit
JPH06274692A (en) Character extracting device
JPH07282230A (en) Method for connecting map drawing data
JPS62125482A (en) Line tracing method for thinned picture
CN116740729A (en) Document image layout understanding method and device and electronic equipment
JPS62107385A (en) Contour line tracking system
KR20230068672A (en) Automatic recognition of electronic circuit diagram image and netlist conversion method
CN117036235A (en) Relay protection cabinet terminal wire arrangement sequence detection method