JPS61221982A - Calculating device for surrounding length of picture pattern - Google Patents

Calculating device for surrounding length of picture pattern

Info

Publication number
JPS61221982A
JPS61221982A JP60064380A JP6438085A JPS61221982A JP S61221982 A JPS61221982 A JP S61221982A JP 60064380 A JP60064380 A JP 60064380A JP 6438085 A JP6438085 A JP 6438085A JP S61221982 A JPS61221982 A JP S61221982A
Authority
JP
Japan
Prior art keywords
circuit
pixel
image pattern
picture
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
JP60064380A
Other languages
Japanese (ja)
Inventor
Noboru Ozaki
暢 尾崎
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 JP60064380A priority Critical patent/JPS61221982A/en
Publication of JPS61221982A publication Critical patent/JPS61221982A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain accurately the surrounding length of a desired area in a picture pattern by delivering the number of sides where a noticed picture element touches background picture elements. CONSTITUTION:A side number deciding circuit 7 decides the number of sides to each picture element of a picture pattern shown by either one of discrimination codes 0-4 for each picture element ('0' shown by a blank part). A counting circuit 8 uses the discrimination codes given from a delay circuit 5' as addresses to read out the storage contents from a random access memory 8b. An adder 8a adds the value of the storage contents with the output of the circuit 7, and this added value is written on the original address of the memory 8b. Then the outputs of the circuit 7 are integrated for each discrimination code and stored in the memory 8b. These processed can be performed by a pipeline and the surrounding length of a picture pattern can be obtained in a short time.

Description

【発明の詳細な説明】 〔概要〕 画像パターン周囲長算出装置であって、方形の画素によ
って構成される画像パターン中の同一種別の画素によっ
て構成される領域の周囲長の計算を正確かつ短時間に算
出できるように構成したもの。
[Detailed Description of the Invention] [Summary] An image pattern perimeter calculation device that accurately and quickly calculates the perimeter of an area composed of pixels of the same type in an image pattern composed of rectangular pixels. It is configured so that it can be calculated.

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

本発明は画像パターン中のある種別に識別された領域の
周囲長を算出する装置であり、さらに詳しく言えば、こ
の周囲長を正確に計算できるように構成した装置に関す
るものである。
The present invention relates to a device for calculating the perimeter of a region identified by type in an image pattern, and more specifically, to a device configured to accurately calculate the perimeter.

文字・図形等を含めた画像の認識においては。In the recognition of images including characters, figures, etc.

通常、被認識画像パターンから抽出した特徴を。Typically, features extracted from the image pattern to be recognized.

既知の各種の画像パターンから予め抽出した同種の特徴
と照合し2両者の類似度によって被認識画像パターンの
種別の決定が行われるが、特徴としては9例えば顕微鏡
写真による生体の組織の認識等においては、その画像パ
ターンの面積や周囲長等が用いられる。
The type of image pattern to be recognized is determined by comparing it with features of the same type extracted in advance from various known image patterns.2 The type of image pattern to be recognized is determined based on the degree of similarity between the two. The area, perimeter, etc. of the image pattern are used.

この際1画像パターンの周囲長を正確かつ短時間に算出
することるできる装置の提供が望まれている。
At this time, it is desired to provide an apparatus that can accurately and quickly calculate the perimeter of one image pattern.

〔従来の技術〕[Conventional technology]

第5図は画像パターン周囲長算出回路の従来例の原理を
示すブロック図であり。
FIG. 5 is a block diagram showing the principle of a conventional example of an image pattern perimeter calculation circuit.

lは1画素毎に背景をも含めた複数種の何れかの種別に
識別された画像パターンを1画素毎に各々の識別コード
によって記憶する画像メモリ。
Reference numeral 1 denotes an image memory that stores an image pattern identified as one of a plurality of types including the background for each pixel, using each identification code for each pixel.

2は9画像メモリ1に記憶される識別コードを1画素分
ずつラスク走査によって読み出す読出し回路。
Reference numeral 2 denotes a readout circuit that reads out the identification code stored in the 9-image memory 1 pixel by pixel by rask scanning.

3は、読出し回路2によって読み出された識別コードを
、各画素の種別に応じて、たとえば背景画素を“0”と
し他の画素を“1”として、2値化する2値化回路。
Reference numeral 3 denotes a binarization circuit that binarizes the identification code read out by the readout circuit 2 according to the type of each pixel, for example, by setting a background pixel to "0" and setting other pixels to "1".

4は2値化回路3によって一方の値、たとえば“1”に
決定された連続する画素によって構成される領域の縁部
を構成する画素を検出する縁部画素検出回路。
Reference numeral 4 denotes an edge pixel detection circuit that detects pixels constituting the edge of a region formed by consecutive pixels determined to have one value, for example, "1" by the binarization circuit 3.

5は、読出し回路2によって読み出された識別コードに
対し、一定の遅延を与える遅延回路。
5 is a delay circuit that provides a certain delay to the identification code read by the reading circuit 2;

6は、縁部画素検出回路4によって検出された画素の数
を、識別コード毎に計数する計数モジュールである。
6 is a counting module that counts the number of pixels detected by the edge pixel detection circuit 4 for each identification code.

縁部画素検出回路4では9例えば3×3のフィルタによ
って、注目画素の8近傍の画素を調べることによって縁
部画素を検出し、また計数回路6では、遅延回路5を介
して与えられる各画素の識別コード毎に、縁部画素検出
回路4による検出数を計数する。
An edge pixel detection circuit 4 detects an edge pixel by examining 8 neighboring pixels of the pixel of interest using a 9, for example, 3×3 filter, and a counting circuit 6 detects each pixel given through a delay circuit 5. The number of detections by the edge pixel detection circuit 4 is counted for each identification code.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記構成の画像パターン周囲長算出装置は1画像パター
ン中の所望の領域の周囲長を、その領域の縁部を構成す
る画素の数によって求めるものであり、精度が劣るとい
う問題点がある。
The image pattern perimeter calculation device having the above configuration calculates the perimeter of a desired area in one image pattern based on the number of pixels forming the edge of the area, and has a problem of poor accuracy.

したがって2本発明は画像パターン中の所望の領域の周
囲長を正確に求めることを目的とするものである。
Therefore, it is an object of the present invention to accurately determine the perimeter of a desired area in an image pattern.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理ブロック図であり、第5図と共通
する符号の他。
FIG. 1 is a block diagram of the principle of the present invention, except for the same reference numerals as in FIG. 5.

7は、2値化回路3によって一方の値たとえば“1”に
決定された画素が他方の値たとえば“0”に決定された
画素と接する辺の数を画素毎に決定する辺数決定回路。
Reference numeral 7 denotes a side number determining circuit which determines, for each pixel, the number of sides where a pixel determined to have one value, for example, "1", contacts a pixel determined to have another value, for example, "0" by the binarization circuit 3.

8は9辺数決定回路7によって決定された辺数を識別コ
ード毎に計数する計数回路。
A counting circuit 8 counts the number of sides determined by the nine-side number determining circuit 7 for each identification code.

5′は、読出し回路2によって読み出された識別コード
に対し、2値化回路3および辺数決定回路7等における
遅延に相当する遅延を与える遅延回路である。
5' is a delay circuit that provides a delay corresponding to the delay in the binarization circuit 3, the side number determining circuit 7, etc. to the identification code read by the reading circuit 2.

〔作用〕[Effect]

すなわち1画像メモリ1に記憶されている各画素の識別
コードをラスク走査によって1画素分ずつ読み出し、2
値化回路3によって、たとえば。
That is, the identification code of each pixel stored in the image memory 1 is read out one pixel at a time by rask scanning, and
For example, by the value conversion circuit 3.

背景画素を“0”とし他の画素すなわち画像構成画素を
“1#とじて2値化する。
The background pixel is set to "0" and the other pixels, that is, the image constituent pixels are set to "1#" and binarized.

次いで1辺数設定回路7では第2図(alに示す構成の
フィルタによって、注目画素fOと、その4近傍の画素
f1〜f4の値を調べ、各画素の値によって。
Next, the side number setting circuit 7 checks the values of the pixel of interest fO and its four neighboring pixels f1 to f4 using a filter having the configuration shown in FIG.

第2図中)に示す関係によって、注目画素fOが背景画
素と接する辺の数を出力する。
According to the relationship shown in FIG. 2), the number of sides where the pixel of interest fO contacts the background pixel is output.

また、変数決定回路7の出力は、遅延回路5′を介して
与えられる各画素の識別コード毎に、計数回路8によっ
て計数される。
Further, the output of the variable determining circuit 7 is counted by a counting circuit 8 for each pixel identification code given via the delay circuit 5'.

その結果1画像パターン中の9例えば背景画素を除き、
同一の種別に識別された連続する画素によって構成され
る領域の周囲長が算出される。
As a result, excluding 9 pixels in one image pattern, for example, background pixels,
The perimeter of a region formed by consecutive pixels identified as the same type is calculated.

〔実施例〕〔Example〕

第3図は本発明一実施例の構成図であり。 FIG. 3 is a block diagram of one embodiment of the present invention.

辺数決定回路7は1画像メモリlの1走査線分のビット
長のシフトレジスタ7a・同7b・1ビツトのレジスタ
7c〜71・および第2図(b)のテーブルを記憶する
リードオンリメモリ(ROM) 7jによって。
The side number determination circuit 7 includes shift registers 7a and 7b each having a bit length corresponding to one scanning line of one image memory l, registers 7c to 71 each having one bit length, and a read-only memory (1) that stores the table shown in FIG. 2(b). ROM) by 7j.

また、計数回路8は加算器8aおよびランダムアクセス
メモリ(RAM) 8bによって、それぞれ構成される
Further, the counting circuit 8 includes an adder 8a and a random access memory (RAM) 8b, respectively.

なお、2値化回路3は変換テーブルを記憶したり一ドオ
ンリメモリによって、また遅延回路5′はシフトレジス
タによって、それぞれ構成することができる。
Note that the binarization circuit 3 can be configured by storing a conversion table or by a one-domain memory, and the delay circuit 5' can be configured by a shift register.

このような構成によって、まず辺数決定回路7では、第
4図(a)に例示するように画素毎に0〜4の何れかの
識別コードによって表される画像パターン(ただし空白
部は0を表す)の各画素に対し。
With such a configuration, the side number determination circuit 7 first determines an image pattern represented by an identification code of 0 to 4 for each pixel (however, blank areas are replaced with 0), as illustrated in FIG. 4(a). ) for each pixel.

第4図(′b)に示すような辺数が決定される(ただし
空白部は0を表す)。
The number of sides as shown in FIG. 4('b) is determined (blank areas represent 0).

また、計数回路8では、遅延回路5′から与えられる識
別コードをアドレスとしてランダムアクセスメモリ8b
の記憶内容が読み出され、その値と辺数決定回路7の出
力とが加算器8aによって加算され、ランダムアクセス
メモリ8bのもとのアドレスに書き込まれ1辺数決定回
路7の出力が識別コード毎に積算されてランダムアクセ
スメモリ8bに記憶される。
The counting circuit 8 also uses the identification code given from the delay circuit 5' as an address in the random access memory 8b.
The stored content of is read out, and the value and the output of the side number determination circuit 7 are added by the adder 8a, and written to the original address of the random access memory 8b, and the output of the side number determination circuit 7 is the identification code. It is accumulated every time and stored in the random access memory 8b.

なお、上記実施例では、すべての処理をパイプライン処
理によって行うことが可能であり1周囲長を短時間に求
めることができる。
In the above embodiment, all processing can be performed by pipeline processing, and one perimeter can be obtained in a short time.

〔発明の効果〕〔Effect of the invention〕

以上説明したように9本発明によれば画像パターン中の
所望の領域の周囲長を正確に求めることができ2例えば
これをパターン認識装置に用いたとき、その認識精度を
向上することができる。
As described above, according to the present invention, it is possible to accurately determine the perimeter of a desired area in an image pattern.2 For example, when this is used in a pattern recognition device, the recognition accuracy can be improved.

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

第1図は本発明の原理ブロック図。 第2図(a) (b)は本発明の原理説明図。 第3図は実施例の構成図。 第4図(a)・(b)は同実施例の説明図。 第5図は従来例のブロック図である。 図中。 3は2値化回路、    5′は遅延回路。 7は辺数決定回路、   8は計数回路。 7a・7bはシフトレジスタ、 7c〜71はレジスタ
。 7jはリードオンリメモリ+ 8aは加算器。 (の (ip) 實施例の説劇国 寮4 口 夛白釆例0フ゛口・ノ2 Cり 秦 52
FIG. 1 is a block diagram of the principle of the present invention. FIGS. 2(a) and 2(b) are diagrams explaining the principle of the present invention. FIG. 3 is a configuration diagram of the embodiment. FIGS. 4(a) and 4(b) are explanatory diagrams of the same embodiment. FIG. 5 is a block diagram of a conventional example. In the figure. 3 is a binarization circuit, and 5' is a delay circuit. 7 is a side number determining circuit, and 8 is a counting circuit. 7a and 7b are shift registers, and 7c to 71 are registers. 7j is read-only memory + 8a is adder. (of (ip) Actual example of Segeki Kokuryo 4 Mouth-filled white potion example 0 Fukuchi・no 2 C Rihata 52

Claims (1)

【特許請求の範囲】 方形の画素によつて構成され画素毎に背景をも含めた複
数種のいずれかの種別に識別された画像パターン中の同
一の種別に識別された連続する画素によつて構成される
領域の周囲長を算出する画像パターン周囲長算出装置で
あつて、 前記画像パターンを画素毎に前記種別に応じて2値化す
る2値化回路(3)と、 前記2値化回路(3)によつて一方の値に決定された画
素が他方の値に決定された画素と接する辺の数を画素毎
に決定する辺数決定回路(7)と、前記辺数決定回路(
7)によつて決定された辺数を前記識別された種別毎に
計数する計数回路(8)とを備えることを特徴とする画
像パターン周囲長算出装置。
[Scope of Claims] By consecutive pixels identified as the same type in an image pattern composed of rectangular pixels and identified for each pixel as one of a plurality of types including the background. An image pattern perimeter calculation device that calculates the perimeter of a configured area, comprising: a binarization circuit (3) that binarizes the image pattern for each pixel according to the type; and the binarization circuit. A side number determining circuit (7) that determines, for each pixel, the number of sides where a pixel determined to have one value contacts a pixel determined to be the other value according to (3);
7) A counting circuit (8) for counting the number of sides determined in step 7 for each of the identified types.
JP60064380A 1985-03-28 1985-03-28 Calculating device for surrounding length of picture pattern Pending JPS61221982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60064380A JPS61221982A (en) 1985-03-28 1985-03-28 Calculating device for surrounding length of picture pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60064380A JPS61221982A (en) 1985-03-28 1985-03-28 Calculating device for surrounding length of picture pattern

Publications (1)

Publication Number Publication Date
JPS61221982A true JPS61221982A (en) 1986-10-02

Family

ID=13256641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60064380A Pending JPS61221982A (en) 1985-03-28 1985-03-28 Calculating device for surrounding length of picture pattern

Country Status (1)

Country Link
JP (1) JPS61221982A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63170784A (en) * 1987-01-08 1988-07-14 Iizeru:Kk Video processing system
JPS63172378A (en) * 1987-01-12 1988-07-16 Iizeru:Kk Converting circuit
JPS63181081A (en) * 1987-01-22 1988-07-26 Iizeru:Kk Video processing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63170784A (en) * 1987-01-08 1988-07-14 Iizeru:Kk Video processing system
JPS63172378A (en) * 1987-01-12 1988-07-16 Iizeru:Kk Converting circuit
JPS63181081A (en) * 1987-01-22 1988-07-26 Iizeru:Kk Video processing system

Similar Documents

Publication Publication Date Title
JPS63261486A (en) Writing style identifying device
JP4392907B2 (en) Character extraction method
JPS61221982A (en) Calculating device for surrounding length of picture pattern
JPH0452510B2 (en)
JPS63205783A (en) Picture tone discriminating device
CN114529922A (en) Method for identifying table structure of wireless frame table image
JPS5946036B2 (en) Multiple pattern recognition device
JP2001109887A (en) Area extracting method, method and device for extracting address area, and image processor
JPH0548510B2 (en)
JPS62128380A (en) Character-bar code reader
JPH0564396B2 (en)
JPS596419B2 (en) Character extraction method
JPS61289476A (en) Format forming system for character reader
JPS6227887A (en) Character type separating system
JP2548385B2 (en) License plate code recognition method
JPS58211280A (en) Character reader
JPH07120392B2 (en) Character pattern cutting device
JPH0575850A (en) Picture area discriminating device
JPS6343788B2 (en)
JPH01269184A (en) Intra-document area boundary extracting system
JPH08249419A (en) Table area judging device
JP2573665B2 (en) Optical character reader
JPS5887665A (en) Paper detecting circuit for optical character reader
JPS588386A (en) Picture processing method
JPS61196382A (en) Character segmenting system