JPS62115590A - Picture circumference length extracting system - Google Patents

Picture circumference length extracting system

Info

Publication number
JPS62115590A
JPS62115590A JP60255945A JP25594585A JPS62115590A JP S62115590 A JPS62115590 A JP S62115590A JP 60255945 A JP60255945 A JP 60255945A JP 25594585 A JP25594585 A JP 25594585A JP S62115590 A JPS62115590 A JP S62115590A
Authority
JP
Japan
Prior art keywords
picture
pattern
counted
circumference length
perimeter
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
JP60255945A
Other languages
Japanese (ja)
Inventor
Noriko 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 JP60255945A priority Critical patent/JPS62115590A/en
Publication of JPS62115590A publication Critical patent/JPS62115590A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a correct circumference length in a short time in a local and parallel type picture processing system by identifying the number for counting by the pattern of a local area consisting of picture elements of 3X3 centering the picture element. CONSTITUTION:A picture signal is inputted, stored and in a circumference length extraction of this picture, the number to be counted is obtained corresponding to the pattern consisting of the picture elements of 3X3, the numbers are tabulated, thereby the circumference length is obtained. For instance, in the respective picture elements of the picture, line i=1-8, column j=1-8 and the picture element is considered to be (ij). On the picture element 24, the local area is constituted by nine picture elements of 13, 14, 15, 23, 24, 25, 33, 34, 35. The picture element included in the picture is represented by one and that which is not included is represented by zero and a pattern code of a binary is obtained by a logical filter. Making this pattern code an address, the number to be counted is obtained from a converting table. This number is obtained on all the pictures, tabulated and the circumference length is obtained.

Description

【発明の詳細な説明】 〔概要〕 この発明は、画像周囲長抽出方式にかかり、周囲長抽出
に際して計数すべき回数を、当該画素を中心とする3×
3画素からなる局所領域のパターンによって識別するこ
とにより、 正確な周囲長を高速度で抽出するものである。
[Detailed Description of the Invention] [Summary] The present invention relates to an image perimeter extraction method, and calculates the number of times to be counted when extracting the perimeter by 3x around the relevant pixel.
By identifying a local area pattern consisting of three pixels, the accurate perimeter can be extracted at high speed.

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

本発明は画像周囲長抽出方式にかかり、特に局所並列型
画像処理方式等において正確な周囲長を高速度で抽出す
る方式に関する。
The present invention relates to an image perimeter extraction method, and more particularly to a method for extracting an accurate perimeter at high speed in a locally parallel image processing method or the like.

物体或いは図形を認識するために抽出する特徴としてそ
の周囲長は極めて有効である。しかしながら局所並列型
処理方式等では、処理時間を短縮するためにその正確さ
を犠牲にした抽出方式が従来行われており、処理速度と
正確さとを両立させた抽出方式が要望されている。
The perimeter of an object or figure is extremely effective as a feature to be extracted for recognizing it. However, in local parallel processing systems, etc., extraction methods have been used that sacrifice accuracy in order to shorten processing time, and there is a demand for an extraction method that achieves both processing speed and accuracy.

〔従来の技術〕[Conventional technology]

ディジタル画像処理は融通性に富んでいること、高い精
度が得られることなどの利点があるものの、1点ごとの
逐次処理を行うために処理時間がかかるという欠点を伴
っており、この欠点に対処するために種々の画像処理方
式が提供されている。
Although digital image processing has advantages such as being highly flexible and achieving high accuracy, it also has the disadvantage of requiring processing time because it processes each point sequentially. Various image processing methods are provided for this purpose.

局所並列型画像処理方式は画像メモリ上に画像処理機能
を付加した方式ということができ、入力された画像の各
画素をラスク走査方式で逐次走査し、各画素についてそ
の近傍を含む局所領域内の例えば3×3画素に対する演
算を並列処理する。
The locally parallel image processing method can be said to be a method in which image processing functions are added to the image memory, and each pixel of the input image is sequentially scanned using the rask scanning method, and for each pixel, the local region including its neighborhood is For example, calculations for 3×3 pixels are processed in parallel.

従来この方式によって第4図(a)に例示する画像の周
囲長を抽出する場合に、同図(b)に示す様にまずこの
画像の境界線を抽出し、次いで境界線の画素数を計数し
ており、本例では周囲長=18を得ている。
Conventionally, when extracting the perimeter of the image shown in Fig. 4(a) using this method, the border line of this image is first extracted as shown in Fig. 4(b), and then the number of pixels of the border line is counted. In this example, the peripheral length is 18.

しかしながら周囲長の定義に従えば、第5図に示す如く
境界線上を例えば矢印方向に辿って画素数を計数した値
が周囲長であり、本例では周囲長=20が正しい値であ
る。
However, according to the definition of the perimeter, the perimeter is the value obtained by tracing the boundary line in the direction of the arrow, for example, and counting the number of pixels as shown in FIG. 5, and in this example, the correct value is perimeter = 20.

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

画像の周囲長抽出に際して、従来方法では前記の如く大
きい誤差を生じて誤認識に導く要因となっており、処理
時間を増大することなく、周囲長の定義に合致する値が
得られる画像周囲長抽出方式が強く要望されている。
When extracting the perimeter of an image, the conventional method causes a large error as described above, leading to misrecognition, so it is necessary to develop an image perimeter that can obtain a value that matches the definition of the perimeter without increasing processing time. Extraction methods are strongly desired.

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

前記問題点は、画像信号を入力する手段と、該画像信号
を記憶する手段と、該画像信号の各画素について、周囲
長抽出に際して計数すべき回数を該画素を中心とする3
×3画素からなる局所領域のパターンに対応して出力す
る手段と、該計数すべき回数を集計する手段とを備えて
なる本発明による画像周囲長抽出方式により解決される
The problem is that there is a means for inputting an image signal, a means for storing the image signal, and a method for calculating the number of times to be counted when extracting the perimeter for each pixel of the image signal, with the pixel as the center.
This problem is solved by the image perimeter extraction method according to the present invention, which includes means for outputting a pattern corresponding to a local area pattern of ×3 pixels, and means for summing up the number of times to be counted.

〔作 用〕[For production]

本発明では、従来技術によって入力、記憶され、境界が
判定される画像信号について、各画素を中心とする3×
3個の画素をその局所領域とし、この局所領域のパター
ンにより第2図(a)乃至(elに例示する如く、周囲
長抽出の際に計数すべき回数を識別する。ただし同図は
画像に含まれる画素を斜線で示し、 (al  境界線ではなく、計数しないパターンの例:
これは、局所領域の全画素が画像に含まれるパターン、
および中心画素が画像に含まれない各種パターンである
In the present invention, for an image signal that is input, stored, and whose boundaries are determined according to the prior art, 3×
Three pixels are defined as the local area, and the number of times to be counted when extracting the perimeter is identified based on the pattern of this local area, as illustrated in Figures 2(a) to (el). Indicate the included pixels with diagonal lines, (al) Example of a pattern that is not a border and is not counted:
This is a pattern in which all pixels in a local area are included in the image,
and various patterns in which the center pixel is not included in the image.

(b)1回計数すべきパターンの例; (C)2回計数すべきパターンの例: (d)3回計数すべきパターンの例: (e)4回計数すべきパターン: である。(b) Example of a pattern that should be counted once; (C) Example of a pattern that should be counted twice: (d) Example of pattern that should be counted three times: (e) Pattern that should be counted 4 times: It is.

すなわち従来方法では、境界線ではない画素と境界線の
画素に2分するに止まっていたのに対して、本発明では
境界線の画素について計数すべき回数の情報を同時に抽
出する。
That is, in contrast to the conventional method, which only divides pixels into two, into non-border pixels and border pixels, in the present invention, information on the number of times to be counted for border pixels is extracted at the same time.

この付加された計数回数を集計すれば、2回以上計数す
べき画素につむ、)では重みっけを行って計数したこと
となり、定義に従った正しい周囲長が得られる。
If the added counting times are totaled, the pixels that should be counted twice or more are weighted and counted, and the correct perimeter according to the definition can be obtained.

なお上記の処理を実施例に示す如く論理フィルタ及び変
換テーブルを利用して実施すれば、従来の境界線を判定
する処理と同ステップ数で実施可能である。
Note that if the above processing is performed using a logical filter and a conversion table as shown in the embodiment, it can be performed with the same number of steps as the conventional process for determining a boundary line.

〔実施例〕〔Example〕

以下本発明を実施例により具体的に説明する。 The present invention will be specifically explained below using examples.

先に第4図(a)に引用した画像の各画素を、第1図(
alに示す如(各行をi=1〜8、各列をj=1〜8と
して、画素ijと称する。例えば画素24について、そ
の局所領域は画素13.14.15.23.24.25
.33.34.35の9画素で構成される。
Each pixel of the image quoted earlier in Figure 4(a) is shown in Figure 1(
As shown in al.
.. It is composed of 9 pixels of 33.34.35.

また画像に含まれる画素を1″、画像に含まれない画素
を”0”で表し、第3図に示す如き論理フィルタにより
、局所領域の中心画素例えば画素24に211、左上の
画素例えば画素13に2″、・・・、右下の画素例えば
画素35に2°を乗じて加算した2進数、本例では10
0001011でこの局所領域のパターンを表す。
Also, pixels included in the image are represented by 1", pixels not included in the image are represented by "0", and by a logical filter as shown in FIG. 2″, ..., the lower right pixel, for example, pixel 35, is multiplied by 2° and added, resulting in a binary number, in this example 10
0001011 represents the pattern of this local area.

変換テーブルはこのパターンコードをアドレスとし、周
囲長抽出に際して計数すべき回数を変換データとするが
、例えばこの局所領域パターン100001011は周
囲長抽出の際に中心画素を1回計数するパターンであり
、変換テーブルのこのアドレスの変換データは1とされ
ている。また例えば画素44の局所領域パターンは10
1111001であり、これは周囲製抽出の際に中心画
素を2回計数するパターンで、変換テーブルのこのアド
レスの変換データは2とされている。更に例えば画素4
6の局所領域パターンば111111111であり、こ
のアドレスの変換データは0とされている。
The conversion table uses this pattern code as an address and the number of times to be counted when extracting the perimeter as conversion data. For example, this local area pattern 100001011 is a pattern in which the center pixel is counted once when extracting the perimeter; The conversion data at this address in the table is set to 1. For example, the local area pattern of pixel 44 is 10
1111001, which is a pattern in which the center pixel is counted twice during peripheral extraction, and the conversion data for this address in the conversion table is set to 2. Furthermore, for example, pixel 4
The local area pattern of No. 6 is 111111111, and the conversion data of this address is set to 0.

この様にして得られる変換データは第1図(blに示す
様になり、これを集計すれば、 I X16+ 2 X 2 =20 となり、正しい周囲長が得られる。
The converted data obtained in this way is as shown in FIG. 1 (bl), and if this is totaled, I X16+ 2 X 2 =20, and the correct circumference can be obtained.

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

以上説明した如く本発明によれば、局所並列型画像処理
方式による周囲長の抽出をその定義に忠実に、かつ処理
ステップ数を従来より増加することなく実行することが
可能となり、誤認識等の障害を防止することができる。
As explained above, according to the present invention, it is possible to execute perimeter extraction using a locally parallel image processing method faithfully to its definition and without increasing the number of processing steps compared to the conventional method, thereby reducing the possibility of misrecognition, etc. Failures can be prevented.

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

第1図は本発明の実施例を示す図、 第2図は局所領域のパターンの例を示す図、第3図は論
理フィルタを示す図、 第4図は従来の境界線画素数計数による周囲長を示す図
、 第5図は周囲長の定義を示す図である。 <a)’     (b) 大物例祢ず【 午1久 S有理フィlL’7とかσに 茶 32 劃−数じfいノマクーン/))f′] (回りrliすべさパターンのイ列 20を目交ずへ゛さパターンの4列J 308寸)〈すべσパターン/)侠J 40討敦1へ“Sパ2−ン 城は炸りI灰のパターンの7(グYどホ4(2)伺52
  に
Fig. 1 is a diagram showing an embodiment of the present invention, Fig. 2 is a diagram showing an example of a pattern of a local area, Fig. 3 is a diagram showing a logical filter, and Fig. 4 is a perimeter determined by conventional boundary line pixel counting. Figure 5 is a diagram showing the definition of the perimeter. <a)' (b) Big example Nazu [Morning 1ku S rational fill L'7 or σ to brown 32 劃-numerical number f i no makoon/)) f'] 4 rows of non-crossing hessa pattern J 308 size)〈Sub σ pattern/) Chivalry J 40 battles 1 to ``S pa 2-ban castle is exploding I ash pattern 7 (guy doho 4 (2) Visit 52
to

Claims (1)

【特許請求の範囲】[Claims] 画像信号を入力する手段と、該画像信号を記憶する手段
と、該画像信号の各画素について、周囲長抽出に際して
計数すべき回数を該画素を中心とする3×3画素からな
る局所領域のパターンに対応して出力する手段と、該計
数すべき回数を集計する手段とを備えてなることを特徴
とする画像周囲長抽出方式。
A means for inputting an image signal, a means for storing the image signal, and a pattern of a local area consisting of 3×3 pixels with the pixel as the center, for each pixel of the image signal, the number of times to be counted when extracting the perimeter. An image perimeter extraction method characterized by comprising: means for outputting in response to the number of times to be counted; and means for summing up the number of times to be counted.
JP60255945A 1985-11-15 1985-11-15 Picture circumference length extracting system Pending JPS62115590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60255945A JPS62115590A (en) 1985-11-15 1985-11-15 Picture circumference length extracting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60255945A JPS62115590A (en) 1985-11-15 1985-11-15 Picture circumference length extracting system

Publications (1)

Publication Number Publication Date
JPS62115590A true JPS62115590A (en) 1987-05-27

Family

ID=17285758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60255945A Pending JPS62115590A (en) 1985-11-15 1985-11-15 Picture circumference length extracting system

Country Status (1)

Country Link
JP (1) JPS62115590A (en)

Similar Documents

Publication Publication Date Title
JPS62115590A (en) Picture circumference length extracting system
JPS6214277A (en) Picture processing system
JP2986185B2 (en) Line width classification method for line figures
JPS6252911B2 (en)
JP3080097B2 (en) Parallel line figure extraction method
JPS63250787A (en) Method for segmentating character
JPS609887Y2 (en) Preprocessing circuit in character reading device
JPH11238135A (en) Method and device for image recognition
JPH0193899A (en) Character recognizing device
KR20000056676A (en) A parallel thinning method using weighted value
JPS60204085A (en) Picture collating system
JPH03231384A (en) Pattern matching method
JPS6290787A (en) Pattern matching method
JPS62247473A (en) Picture processor
JPH0193875A (en) Character recognizing device
JPH0418353B2 (en)
JPS62274476A (en) Pattern inspecting device
JPS61183788A (en) Character recognizing method
JPH02222076A (en) Contour line extracting device
JPH0282371A (en) Picture processor
JPS62125482A (en) Line tracing method for thinned picture
JPS6089286A (en) Method for eliminating noise in picture
JPS6349982A (en) Coding processing system for three adjacent picture elements
JPH03127285A (en) Picture recognizing device
JPS63182780A (en) Picture processing method for drawing reading device