JPS61128384A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPS61128384A
JPS61128384A JP59250314A JP25031484A JPS61128384A JP S61128384 A JPS61128384 A JP S61128384A JP 59250314 A JP59250314 A JP 59250314A JP 25031484 A JP25031484 A JP 25031484A JP S61128384 A JPS61128384 A JP S61128384A
Authority
JP
Japan
Prior art keywords
picture
density
elements
image
average
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
JP59250314A
Other languages
Japanese (ja)
Inventor
Shigeru Kuroe
黒江 茂
Kengo Nakajima
中嶋 憲吾
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP59250314A priority Critical patent/JPS61128384A/en
Publication of JPS61128384A publication Critical patent/JPS61128384A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To distribute an input density picture into an objective substance separating areas and to executed picture processing at a high speed by regarding plural picture elements as one element, counting up the average density and dispersion of each element and deciding an area including the element. CONSTITUTION:The density value of an input density image quantized by 4 bits of one picture element outputted from a picture memory 13 is processed by an average/ dispersion calculating circuit 14 by regarding MXN picture elements, e.g. 4X4, as one element and the average density and dispersion are two-dimensionally stored in picture memories 15, 16 respectively. The contents of these memories 15, 16 are processed by a threshold circuit 17, and when the fraction of these read elements is the threshold or less and the average density difference between the element and its adjacent element is the threshold or less, the element is decided as the objective substance constitutional element and '1' is written in a picture memory 18 two- dimensionally. In other cases, the element is decided as a border area and '0' is written. Then, the coupled property of two picture elements is decided by a coupling circuit 19. The decided result is written in a picture memory 20. Thus, the picture can be distributed into the areas for separating the objective substance and the picture processing can be attained at a high speed with the small volume of calculation.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像処理装置に関し、更に詳細には。[Detailed description of the invention] (Industrial application field) The present invention relates to an image processing device, and more particularly, to an image processing device.

濃淡画像を対象物体の切出しのために領域分割すること
ができかつ高速な画像処理を行なうことのできる画像処
理装置に関する。
The present invention relates to an image processing device capable of dividing a grayscale image into regions for cutting out a target object and performing high-speed image processing.

(従来の技術) 従来の画像処理装置を第7図に示す、1−1は濃度値を
1画素4ビツトで量−予信する画像久方装置、1−2は
久方画像を格納する画像メモリであ、 る、1−2に格
納された画像を(NXM)画素を。
(Prior Art) A conventional image processing device is shown in FIG. 7. 1-1 is an image processing device that predicts the density value using 4 bits per pixel, and 1-2 is an image storage device that stores the processing image. In memory, the image stored in 1-2 (NXM) pixels.

1要素(ここではN = M = 12)として各要素
゛に要素内の平均濃度値(1−3)を割当て1.大まか
な濃度情報だけからなる第1の抽象画像を画像メモリ1
 (1−4)に格納する0次に、(1−4)に格納され
た画像をもとに要素間の平均濃度の差を求める(1−5
)、ここでは、現要素の平均濃度をD IIJ e ’
近傍の平均濃度値をD I、j−t*Dl−t、IyD
 l、j hle D I*z+1とした時(第8図参
照)、の値を適当な値(フルスケールの174即ち4N
2)で正規化したものか。
1. Assign the average density value (1-3) within the element to each element as one element (here, N = M = 12). The first abstract image consisting only of rough density information is stored in the image memory 1.
(1-4) Next, calculate the difference in average density between elements based on the image stored in (1-4) (1-5
), here the average concentration of the current element is D IIJ e '
The average concentration value of the neighborhood is D I, j-t*Dl-t, IyD
l, j hle D When I*z+1 (see Figure 8), set the value to an appropriate value (174 of full scale, or 4N
Is it normalized using 2)?

1@aX  (D+* I −DI−J* I −m)
オ、m+−1,◆1 の値を適当な値(3″N”/2)で正規化し主要輪郭強
度の初期値を確Xe P +r ” ’として表ねし、
第2の抽象画像として画像メモリ2 (1−6)に格納
する。ただし1以上の値をとった時1とする。
1@aX (D+* I -DI-J* I -m)
E, normalize the value of m+-1,◆1 with an appropriate value (3″N″/2) and express the initial value of the main contour strength as the probability Xe P +r ″′,
It is stored in the image memory 2 (1-6) as a second abstract image. However, if it takes a value of 1 or more, it is treated as 1.

第2の抽象画像をもとにして、主要輪郭要素を弛緩法を
用いて抽出する(1−7)。第2の抽象画像の各(iI
J)要素の値より、初期画像空間を P”)=(P+’i’l 1≦i≦n、1≦j≦m;i
、j整数)とし、次式による繰り返し演算を行なう。即
ち。
Based on the second abstract image, main contour elements are extracted using the relaxation method (1-7). Each of the second abstract images (iI
J) From the element values, the initial image space is P”)=(P+'i'l 1≦i≦n, 1≦j≦m;i
, j integer), and perform repeated operations using the following equation. That is.

qIJ(k)=p、、(kl  (1−Δ、、(kl)
である、ここで物理量ΔI J (klは第2の画像の
各要素の連結性に関するもので、各画像要素の値p +
 + + ’ )は自身の輪郭強度P目(k)と連結性
Δ目(k)によって更新されることになる。
qIJ(k)=p,,(kl (1-Δ,,(kl)
, where the physical quantity ΔI J (kl is related to the connectivity of each element of the second image, and the value p + of each image element is
+ + ') is updated by its own contour strength Pth (k) and connectivity Δth (k).

この繰返し演算の打ち切りは、値が0.9以上あるいは
0.1以下の要素の数が全要素数の0.95以上に達し
たところで行なう6次に二値化して、あらためて画像メ
モリ2 (1−6)に格納する。第2の画像は、主要な
輪郭要素から構成される画像である。
This repeated operation is discontinued when the number of elements with a value of 0.9 or more or 0.1 or less reaches 0.95 or more of the total number of elements. -6). The second image is an image composed of major contour elements.

次に第2の画像をもとに、領域分割を行なう(1−8)
。主要輪郭要素を8連結で空間的に統合し、外接長方形
で区分する。その代表点を画像テーブル(1−9)に格
納する。
Next, perform region segmentation based on the second image (1-8)
. The main contour elements are spatially integrated by 8 connections and divided by circumscribed rectangles. The representative points are stored in the image table (1-9).

画像テーブル(L−9)を参照して、各小領域のラベル
付けを行なう(1−10)、ラベル付けは次のようにし
て行なう、各小領域内に相当する第1の画像、第2の画
像をもとに2つの物理量を計算する。即ち(1)主要輪
郭要素を境として両側の平均濃度の差より求めた。領域
内の変化値の平均値(ΔD) ; (2)領域内を占め
る主要輪郭要素数の割合(DN)である。ΔD#DN平
面でΔD≧0.7の時“写真”、ΔD<0.7且つD 
H< 0 、4の時“グラフ”、またΔD<0.7且つ
DH>0.4の時“文字”の各ラベルを付け、結果とし
て第9図に示す画像テーブル(1−9)を得る。   
 ・ このような従来の技術では、9文字”と判定された領域
から文字列および各文字列の整理した記述がなされてい
ない欠点があった。
Referring to the image table (L-9), label each small area (1-10). Labeling is performed as follows. Calculate two physical quantities based on the image. That is, (1) It was determined from the difference in average density on both sides of the main contour element. Average value of change values within the region (ΔD); (2) Ratio (DN) of the number of main contour elements occupying the region. “Photo” when ΔD≧0.7 on ΔD#DN plane, ΔD<0.7 and D
When H < 0, 4, label "graph", and when ΔD < 0.7 and DH > 0.4, label "character", and as a result, obtain the image table (1-9) shown in Figure 9. .
- This conventional technique has a drawback that a character string and each character string are not described in an organized manner starting from an area determined to be 9 characters.

そこで本出願人はこのような欠点を解消するために特開
昭59−43468号(特願昭57−153992号)
にて次のような処理を行なう画像処理装置を提案した。
Therefore, the present applicant has proposed Japanese Patent Application Laid-Open No. 59-43468 (Japanese Patent Application No. 153992-1982) to solve such drawbacks.
proposed an image processing device that performs the following processing.

すなわち、この画像処理装置は、さらに゛文字”と判定
された領域に直交変換を施し、大まかなピッチを算出し
、文字列を抽出する。そして抽出した文字列の大きさ、
位置類似ピッチの行数をもとに″タイトル”と″本文″
とに分類する。
That is, this image processing device further performs orthogonal transformation on the area determined to be a character, calculates a rough pitch, and extracts a character string.Then, the size of the extracted character string,
``Title'' and ``Body'' based on the number of lines of positional similar pitches
It is classified into

(発明が解決しようとする問題点) しかしながら、上記のごとき従来の技術では、入力濃淡
画像を写真領域、グラフ領域および文字領域の3種類に
分類し、さらに文字領域を″タイトル″と“本文″′と
に分類することはできるものの、写真領域の内部を分割
することや、白黒カメラからの濃淡画像を対象物体の切
出しのために領域分割することは不可能であった。更に
、従来技術では主要輪郭要素を弛緩法を用いて抽出して
いるので、繰返し演算で多大な時間を要し、処理速度が
遅いという欠点もあった。
(Problems to be Solved by the Invention) However, in the conventional technology as described above, the input grayscale image is classified into three types: a photo area, a graph area, and a text area, and the text area is further divided into "title" and "body text". Although it is possible to divide the inside of a photographic area into two types, it is impossible to divide the interior of a photographic area or to divide a gray-scale image from a black and white camera into areas in order to extract the target object. Furthermore, in the prior art, main contour elements are extracted using a relaxation method, which has the drawback of requiring a large amount of time due to repeated calculations and slowing down the processing speed.

本発明は従来の技術のこれらの欠点を除去するためにな
されたものであって、その目的は濃淡画像を対象物体の
切出しのために領域分割することが可能で、その画像処
理においてラスター走査を好適に用いることのできる高
速な画像処理装置を提供することにある。
The present invention was made in order to eliminate these drawbacks of the conventional technology, and its purpose is to be able to divide a gray scale image into regions for cutting out a target object, and to use raster scanning in image processing. An object of the present invention is to provide a high-speed image processing device that can be suitably used.

(問題点を解決するための手段) 本発明は、前記従来技術の問題点を解決するため、蓄積
手段と、平均濃度・分散計算手段と、分類手段と、連結
手段とから構成される。
(Means for Solving the Problems) In order to solve the problems of the prior art, the present invention is comprised of an accumulation means, an average concentration/variance calculation means, a classification means, and a connection means.

蓄積手段は入力画像の各画素の濃度を電気信号に変換し
て蓄積する。平均濃度・分散計算手段は蓄積手段に蓄積
されている複数の画素から構成される要素の平均濃度を
計算するとともに要素内の複数の画素の濃度値の分散を
計算する。分類手段は平均濃度・分散計算手段で計算さ
れた分散の値の大小及び隣接する要素間の平均濃度の差
の大小により各要素を対象物体の領域である領域構成要
素と境界領域とに分類する。連結手段は分類手段により
領域構成要素に分類された要素を連結し、連結された領
域に固有の番号を割当てる。
The storage means converts the density of each pixel of the input image into an electrical signal and stores it. The average density/variance calculation means calculates the average density of an element composed of a plurality of pixels stored in the storage means, and also calculates the variance of the density values of a plurality of pixels in the element. The classification means classifies each element into a region component, which is a region of the target object, and a boundary region, based on the magnitude of the variance value calculated by the average concentration/variance calculation means and the magnitude of the difference in average concentration between adjacent elements. . The connecting means connects the elements classified into area constituent elements by the classifying means and assigns a unique number to the connected area.

(作用) 本発明によれば、以上のように画像処理装置を構成した
ので各技術手段は次のように作用する。
(Function) According to the present invention, since the image processing apparatus is configured as described above, each technical means functions as follows.

蓄積1手段は入力した原画像の濃淡情報を各画素毎に量
子化して格納する。平均濃度・分散計算手段は例えば入
力画像の(NXM)画素を1要素として要素内の平均濃
度を計算し、また要素内の(NXM)画素の濃度値の分
散を計算し、これらの計算結果を分類手段に出力する。
The storage 1 means quantizes and stores the grayscale information of the input original image for each pixel. For example, the average density/variance calculation means calculates the average density within an element using (NXM) pixels of the input image as one element, calculates the variance of the density values of the (NXM) pixels within the element, and uses these calculation results. Output to classification means.

分類手段は、各要素の分散の大きさに基づいて各要素が
一様な濃度分布であるかを判定するとともに要素間の平
均濃度の差の大小に基づいて隣接する要素が連結性を有
するか否かを判定し、各要素を領域構成要素と境界要素
とに分類する。そして連結手段により領域構成要素と分
類された要素の連結がなされ、連結された領域に固有の
番号が割当てられ対象物体の切出しに供される。このよ
うにして入力濃淡画像゛を対象物体の切出しのために領
域分割することが可能となり前記従来技術の問題点を解
決することができる。
The classification means determines whether each element has a uniform concentration distribution based on the magnitude of the variance of each element, and determines whether adjacent elements have connectivity based on the magnitude of the difference in average concentration between the elements. It is determined whether or not each element is present, and each element is classified into area constituent elements and boundary elements. Then, the region constituent elements and the classified elements are connected by the connecting means, a unique number is assigned to the connected region, and the target object is cut out. In this way, the input grayscale image can be divided into regions for cutting out the target object, and the problems of the prior art described above can be solved.

(実施例)。(Example).

第1図は本発明の実施例を示すブロック図である。同図
において、12は画像入力装置、13は画像メモリA、
14は平均濃度・分散計算回路、15は画像メモリ8.
16は画像メモリC117は閾値回路。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 12 is an image input device, 13 is an image memory A,
14 is an average density/dispersion calculation circuit, 15 is an image memory 8.
16 is an image memory C117 is a threshold circuit;

18は画像メモリD、19は連結回路、20は画像メ・
モIJ Eである。
18 is an image memory D, 19 is a connection circuit, and 20 is an image memory D.
It is MoIJE.

画像入力装置12は第7図の従来の画像入力装置。The image input device 12 is the conventional image input device shown in FIG.

1−1と同様、入力濃淡画像の濃度値を1百s4ビツト
で量子化する。画像メモリA 13は第7図の従来の画
像メモリ1−2と同様、tIs4図のごとく入力画像を
2次元的に格納する画像メモリである。平均濃度・分散
計算回路14は画像メモリA 13に格納された画像の
(NXM)画素を1要素(ここではN=M=4)として
各要素間の(NXM)画素の濃度値の平均と分散を計算
する。
Similar to 1-1, the density value of the input grayscale image is quantized by 100s4 bits. The image memory A 13, like the conventional image memory 1-2 shown in FIG. 7, is an image memory that stores an input image two-dimensionally as shown in FIG. tIs4. The average density/variance calculation circuit 14 calculates the average and variance of the density values of the (NXM) pixels between each element, with (NXM) pixels of the image stored in the image memory A 13 as one element (here, N=M=4). Calculate.

平均濃度・分散計算回路14の出力は画像メモリB 1
5及び画像メモリC16に接続されており1画像メモリ
B 15には平均濃度・分散計算回路14で計算された
平均濃度が第4図に示す如く2次元的に格納され、一方
、画像メモリC16には同回路14で計算された分散が
同じく2次元的に格納される。
The output of the average density/variance calculation circuit 14 is stored in the image memory B1.
The average density calculated by the average density/variance calculation circuit 14 is stored two-dimensionally in the image memory B 15 as shown in FIG. The variance calculated by the same circuit 14 is also stored two-dimensionally.

閾値回路17は画像メモリB 15と画像メモリC16
・に格納された情報をそれぞれ例えば左上の要素からラ
スター走査で読み出す。そして読み出された現要素の分
散の値が予め設定された閾値θVよりも小さく、現要素
の平均濃度と現要素のすぐ上隣りの要素の平均濃度との
差が予め設定された閾値θ。よりも小さく、かつ現要素
の平均濃度と現要素のすぐ左隣りの要素の平均濃度との
差が閾値θOよりも小さい場合には“1″を画像メモリ
018の対応位置に書き込み、それ以外の場合には0″
を対応位置に書き込む。つまり、画像メモリD  18
で“1″とラベル付けされた要素は、濃度値の分布が一
様であり、対象物体の構成要素(以下、領域と称す)で
あり、−右画像メモリD 18で“0”とラベル付けさ
れた要素は対象物体の境界近傍である。連結回路19は
画像メモリD 1a上でu1〃とラベル付けされた要素
を4連結で統合し、統合された1つのブロックに固有の
番号(1以上)を割当て、画像メモリE 20に、書き
込む、また1画像メモリD 18上で0”とラベル付け
された要素に対しては番号Oを割当て。
The threshold circuit 17 includes an image memory B 15 and an image memory C 16.
・Read out the information stored in, for example, from the upper left element by raster scanning. Then, the read variance value of the current element is smaller than a preset threshold θV, and the difference between the average density of the current element and the average density of the element immediately above the current element is a preset threshold θ. , and if the difference between the average density of the current element and the average density of the element immediately to the left of the current element is smaller than the threshold θO, "1" is written to the corresponding position in the image memory 018, and the other 0″ if
Write in the corresponding position. In other words, image memory D18
The element labeled "1" in , has a uniform density value distribution, is a component of the target object (hereinafter referred to as region), and is labeled "0" in the right image memory D 18. The identified elements are near the boundaries of the target object. The concatenation circuit 19 integrates the elements labeled u1〃 on the image memory D 1a by four concatenations, assigns a unique number (1 or more) to one integrated block, and writes it to the image memory E 20. Also, the number O is assigned to the element labeled 0'' on the 1-image memory D18.

画像メモリE 2Gに書き込む。Write to image memory E2G.

次に、平均濃度・分散計算回路14の構成を詳細に説明
する。第2図は平均濃度・分散計算回路14の構成例を
示すブロック図である。同図において、21は平均濃度
・分散計算部、22,23はレジス・り、24は加算器
、25は除算器、26は掛算器、27は加算器、28,
29,30,31は掛算器、32は加算器、33は減算
器である。
Next, the configuration of the average concentration/variance calculation circuit 14 will be explained in detail. FIG. 2 is a block diagram showing an example of the configuration of the average concentration/variance calculation circuit 14. In the figure, 21 is an average density/variance calculation unit, 22 and 23 are Regis registers, 24 is an adder, 25 is a divider, 26 is a multiplier, 27 is an adder, 28,
29, 30, and 31 are multipliers, 32 is an adder, and 33 is a subtracter.

各要素内の(NXM)画素の平均濃度又は(1)式に従
って計算される。
The average density of (NXM) pixels within each element or calculated according to equation (1).

X==:土ΣXil (i=1〜N、 j=1〜M) 
=(1)NM 但し、XIJは各画素の濃度値である。
X==: SatΣXil (i=1~N, j=1~M)
=(1)NM However, XIJ is the density value of each pixel.

平均濃度・分散計算回路14の動作について説明すると
、平均濃度・分散制御部21は、まずレジスタ22およ
びレジスタ23にクリア信号を供給し、これらのレジス
タの内容をクリアする0次に、平均濃度・分散制御部2
1は画像メモリA 13にアドレスを供給して各画素の
濃度値を読み出し、加算器24にてレジスタ22の内容
と読み出された各画素の濃度値を加算しその結果をレジ
スタ22に記憶する。
To explain the operation of the average density/dispersion calculation circuit 14, the average density/dispersion control unit 21 first supplies a clear signal to the register 22 and the register 23, clears the contents of these registers, and then calculates the average density/dispersion. Distributed control unit 2
1 supplies an address to the image memory A 13 to read the density value of each pixel, and an adder 24 adds the contents of the register 22 and the read density value of each pixel, and stores the result in the register 22. .

この動作をNXM回(ここではN=M=4)繰返すとレ
ジスタ22は画像メモリA 13の(NXM)画素の濃
度値の加算結果を保持していることになる。したがって
平均濃度はレジスタ22の内容を(N、XM)で除算器
25を使って除算することによって得られる。
If this operation is repeated NXM times (here N=M=4), the register 22 will hold the result of addition of the density values of (NXM) pixels in the image memory A13. The average density is therefore obtained by dividing the contents of register 22 by (N,XM) using divider 25.

一方、分散σ” (=V)は(2)式で計算される。On the other hand, the variance σ'' (=V) is calculated using equation (2).

但し、XIIは各画素の濃度値、iは平均濃度を表わす
However, XII represents the density value of each pixel, and i represents the average density.

σ2=Σ(XH−)E)” (i=1〜N、j=1〜M)・・・(2)(2)式を展
開すると(3)式を得る。
σ2=Σ(XH−)E)” (i=1 to N, j=1 to M) (2) When formula (2) is expanded, formula (3) is obtained.

σ2;Σ(x+j)”+NM’i”−2xΣ)CIJ(
i=1〜N、j=1〜M)  ・・・(3)分散を計算
する場合、平均濃度・分散計算制御。
σ2;Σ(x+j)"+NM'i"-2xΣ)CIJ(
i=1 to N, j=1 to M) ... (3) When calculating variance, average concentration/variance calculation control.

部21は画素メモリA 13から各画素の濃度値XHを
読み出す毎に、掛算器26で2乗計算x 、 、 *を
行なわせ、その計算結果を加算器2フにてレジスタ23
の内容と加算させ、その和をレジスタ23にセットする
。従ってレジスタ23はレジスタ22と同様にΣ(x 
lj)”の結果を保持していることになる。(3)式の
第2項N M M ”は、除算器25の出力(平均濃度
)iを掛算器28で2乗し、その結果i3とNMとを掛
算器29で掛算することによって得られる。
Each time the unit 21 reads out the density value XH of each pixel from the pixel memory A 13, the multiplier 26 performs square calculations x, , *, and the calculation results are stored in the register 23 by the adder 2.
The sum is added to the contents of , and the sum is set in the register 23. Therefore, like register 22, register 23 is Σ(x
lj)''.The second term N M M'' in equation (3) is obtained by squaring the output (average density) i of the divider 25 using the multiplier 28, and then holding the result i3 and NM by the multiplier 29.

(3)式の第3項21ΣXBは、まず掛算器30でEX
x目を計算し、次に掛算@31でその結果を2倍して得
られる。最後に、加算器32は(3)式の第1項と第2
項を加算し、その結果から減算器33は(3)式の第3
項を引算することによって1分散σ3が計算される。
The third term 21ΣXB in equation (3) is first
It can be obtained by calculating the xth number and then doubling the result using multiplication @31. Finally, the adder 32 adds the first term and the second term of equation (3).
The subtracter 33 adds the terms, and from the result, the third
One variance σ3 is calculated by subtracting the terms.

平均濃度・分散計算制御部21は画像メモリA 13か
ら(NXM)個の画素を読み出す毎に、(NXM)画素
の平均濃度iを画像メモリB 15に書き込み、(NX
N)画素の分散σ8を画像メモリC16に書き込む。こ
の処理を画像メモリA 13全面に施すことにより、(
PXQ)要素の平均濃度値と分散値とを得る。但し画像
メモリA 13の大きさを(RXS)画素とした時、P
 = R/N 。
Every time (NXM) pixels are read out from the image memory A 13, the average density/variance calculation control unit 21 writes the average density i of the (NXM) pixels to the image memory B 15,
N) Write the pixel variance σ8 into the image memory C16. By applying this process to the entire image memory A 13, (
PXQ) Obtain the average concentration value and variance value of the element. However, when the size of image memory A13 is (RXS) pixels, P
= R/N.

Q=S/Mである。第4図はこのときの関係を説明する
ための図である。
Q=S/M. FIG. 4 is a diagram for explaining the relationship at this time.

次に閾値回路17の構成を詳細に説明する。第3図は閾
値回路17の構成例を示すブロック図である。
Next, the configuration of the threshold circuit 17 will be explained in detail. FIG. 3 is a block diagram showing an example of the configuration of the threshold circuit 17.

同図において、34は閾値回路制御部、35は比較器。In the figure, 34 is a threshold circuit control section, and 35 is a comparator.

36はシフトレジスタ、37はレジスタ、38は減算器
36 is a shift register, 37 is a register, and 38 is a subtracter.

39は絶対値回路、40は比較器、41は減算器、42
は絶対値回路、43は比較器、44はシフトレジスタ。
39 is an absolute value circuit, 40 is a comparator, 41 is a subtracter, 42
4 is an absolute value circuit, 43 is a comparator, and 44 is a shift register.

45はレジスタ、46.47はANDゲート、48はO
Rゲート、49はANDゲート、50はORゲート、5
Iは選択回路である。
45 is a register, 46.47 is an AND gate, 48 is O
R gate, 49 is AND gate, 50 is OR gate, 5
I is a selection circuit.

閾値回路制御部34は画像メモリB 15と画像メモリ
C16に二次元的に格納されている情報を例えば左上の
要素からラスター走査で同時に読み出し、各要素の読み
出し毎に以下に示す条件に従って画像メモリD 1gの
対応位置に“1”または“0”を書き込む、まず、画像
メモリC16の出力(分散値Vは、あらかじめ設定され
た閾値θ9と比較器35で比較される。比較@35は1
分散値Vが閾値θ、よりも大きい場合(要素内の濃度値
が一様でない状態、つまり対象物体の境界近傍と考えら
れる要素)は“1”を出力し、それ以外の場合(要素内
の濃度値が一様である状態、つまり領域と考えられる要
素)は“0”を出力する。
The threshold circuit control unit 34 simultaneously reads the information stored two-dimensionally in the image memory B 15 and the image memory C 16 by raster scanning, starting from the upper left element, for example, and reads out the information stored in the image memory D in accordance with the conditions shown below each time each element is read. 1g is written in the corresponding position. First, the output of the image memory C16 (the variance value V is compared with a preset threshold θ9 by the comparator 35. The comparison @35 is 1
If the variance value V is larger than the threshold θ, (a state in which the concentration value within the element is not uniform, that is, an element considered to be near the boundary of the target object), "1" is output; otherwise (the concentration value within the element is In a state where the density value is uniform (that is, an element considered to be a region), "0" is output.

一方、画像メモリB 15の出力(平均濃度D +、 
、;第8図参照;但しD I、1は(1)で得られる量
と同一のものである)は、−行分(Q要素)シフトレジ
スタ36に記憶されるとともに、−要素分レジスタ37
に記憶される。つまり、シフトレジスタ36の中力は現
在画像メモリC16から読み出されている要素のすぐ上
隣りの要素の平均濃度(DI−□、」;第8図)であり
、レジスタ37の出力は現要素のすぐ左隣りの要素の平
均濃度(Dl、、−1;第8図)であるs D + l
 JとDl−1,Jとの差が減算回路38で演算された
後、絶対値回路39で絶対値化される。比較器40は、
あらかじめ設定された閾値0口と絶対値回路39の出力
とを比較し、絶対値回路39の出力が閾値θ0よりも大
きい場合(平均濃度が大きく変化している要素、すなわ
ち対象物体の境界近傍と考えられる要素)は“1”を出
力し、それ以外の場合は0”を出力する。同様に、DI
、、とDIll−tとの差およびその絶対値がそ九ぞれ
減算回路41と絶対値回路42とで演算された後、比較
器43で閾値θ0と比較される。比較器43は絶対値回
路42の出力が閾値θ0よりも大きい場合は′1”を、
それ以外の場合はOnを出力する。
On the other hand, the output of image memory B 15 (average density D +,
,; see FIG. 8; however, DI,1 is the same amount as obtained in (1)) is stored in the -row (Q element) shift register 36, and is stored in the -element register 37.
is memorized. In other words, the intermediate value of the shift register 36 is the average density (DI-□,''; FIG. 8) of the element immediately above the element currently being read out from the image memory C16, and the output of the register 37 is the s D + l, which is the average density of the element immediately to the left (Dl, , -1; Fig. 8)
After the difference between J and Dl-1,J is calculated by the subtraction circuit 38, it is converted into an absolute value by the absolute value circuit 39. The comparator 40 is
Compare the preset threshold 0 and the output of the absolute value circuit 39, and if the output of the absolute value circuit 39 is larger than the threshold θ0 (an element where the average density changes significantly, that is, near the boundary of the target object) possible elements) outputs “1”, otherwise outputs “0”.Similarly, DI
. When the output of the absolute value circuit 42 is larger than the threshold value θ0, the comparator 43 outputs '1'.
In other cases, On is output.

ここで、シフトレジスタ44は、閾値処理結果を一行分
(Q要素)記憶している。レジスタ45は閾値処理結果
を一要素分記憶している。つまり、シフトレジスタ44
の出力は現要素のすぐ上隣りの要素の閾値処理結果(T
i−1,I;第8図)であり。
Here, the shift register 44 stores threshold processing results for one row (Q elements). The register 45 stores the threshold value processing result for one element. In other words, shift register 44
The output of is the threshold processing result of the element immediately above the current element (T
i-1, I; Fig. 8).

レジスタ45の出力は現要素のすぐ左隣りの要素の閾値
処理結果(TI、、−1;第5図)である、閾値処理結
果は“1”か“0”のいずれかであり、“1”は領域を
表わし、′0”は境界を表わしており。
The output of the register 45 is the threshold processing result of the element immediately to the left of the current element (TI, -1; Fig. 5).The threshold processing result is either "1" or "0";" represents the area, and '0" represents the boundary.

本実施例の目的は領域を取出すことにある。比較器40
の出力とシフトレジスタ44の出力はANDゲート46
に入力される。ANDゲート46は2つの入力が共に“
1”である場合(すなわち、T i−t、 1が“1”
でかつ、lD+、J−Dl−t、jl>0口の場合)は
1”を出力し、それ以外の場合は0”を出力する。現要
素とすぐ左隣りの要素との関係゛も同様であり、比較器
43の出力とレジスタ45の出力がANDゲート47に
入力され、ANDゲート47は2つの入力が共に“1”
である場合は“1”を出力し、それ以外の場合は“0”
を出力する。ORゲー・ト48はANDゲート46の出
力とANDゲート47の出力を入力し、いずれかが“1
”である場合は“1”を出力し、それ以外の場合は“O
”を出力する。
The purpose of this embodiment is to extract the area. Comparator 40
and the output of the shift register 44 are connected to an AND gate 46.
is input. AND gate 46 has two inputs both “
1” (i.e. T i-t, 1 is “1”
and 1D+, J-Dl-t, jl>0), outputs 1'', and otherwise outputs 0''. The relationship between the current element and the element immediately to the left is also the same; the output of the comparator 43 and the output of the register 45 are input to the AND gate 47, and the AND gate 47 has two inputs both "1".
If so, output “1”, otherwise “0”
Output. The OR gate 48 inputs the output of the AND gate 46 and the output of the AND gate 47, and if either one is "1"
”, output “1”, otherwise output “O”
” is output.

ところが、ラスター走査において、第1行を処理してい
る時、すぐ上隣りの要素は、実際は存在せず、また第1
列を処理している時、すぐ左隣りの要素も存在しない、
閾値回路制御部34は、第1行もしくは第1列を処理し
ている時は、平均濃度使用可信号を“0”にしておき、
それ以外の時は“1”にする、ORゲート48の出力は
この平均濃度使用可信号とANDゲート49でAND演
算され。
However, in raster scanning, when processing the first row, the element immediately above it does not actually exist, and the first row
When processing a column, the element immediately to the left also does not exist,
When processing the first row or column, the threshold circuit control unit 34 sets the average density usable signal to "0",
The output of the OR gate 48, which is set to "1" at other times, is ANDed with this average concentration enable signal by an AND gate 49.

比較器35の出力とANDゲート49の出力はORゲー
ト50でOR演算される。つまり、ORゲート50は、
分散値Vが閾値θVよりも大きい場合あるいは隣接する
要素間の平均濃度の差が大きい場合(すなわち現要素が
境界と判定されようとしている場合)は′i”を出力し
、それ以外の場合はO”を出力する。
The output of the comparator 35 and the output of the AND gate 49 are ORed by an OR gate 50. In other words, the OR gate 50 is
If the variance value V is larger than the threshold θV or if the difference in average density between adjacent elements is large (that is, if the current element is about to be determined as a boundary), 'i' is output; otherwise, 'i' is output. Outputs “O”.

ここで閾値処理結果は、′1”が領域を表わし、“0”
が境界を表わしている。したがって選択回路51はOR
ゲート50の出力が′1けの場合は0″を出力し、OR
ゲート50の出力が“0”の場合は1”を出力する。閾
値回路制御部34は、閾値処理結果を画像メモリD 1
8に書き込ませる。
Here, in the threshold processing results, '1' represents the area, and '0' represents the area.
represents the boundary. Therefore, the selection circuit 51 is OR
If the output of the gate 50 is ``1'', it outputs 0'' and the OR
When the output of the gate 50 is “0”, it outputs “1”.The threshold circuit control unit 34 stores the threshold processing result in the image memory D1.
Write it on 8.

次に連結回路19について説明する。Next, the connection circuit 19 will be explained.

連結回路19は第6図に示すようにマイクロプロセッサ
52とROM53(リードオンリーメモリ)とRAM5
4(ランダムアクセスメモリ)とで構成される。マイク
ロプロセッサ52のプログラムはROM53に書かれて
おり1画像メモリD 18を読み出し4連結しているパ
1”のブロックに1以上の固有の番号を割当て1画像メ
モリD 18上の“1”の位置に対応した画像メモリE
 2G上の位置に、その割当てられた番号を書き込む、
なお、4連結とは、第8図において、DI、j要素と4
近傍(Dl−z、J要素、Dll)−1要素、Dl、1
.j要素、およびD I、jや、要素)の一つの要素と
の関係で、DIIJ要素と4近傍の一つの要素がともに
“1nであることを言い、このときこの2つの要素は4
連結し  ゛ていると言う、したがって4連結している
ブロックとは、′1”の集合で、その“1”の要素は4
近傍の関係で連結していることを言う。
As shown in FIG.
4 (random access memory). The program of the microprocessor 52 is written in the ROM 53, reads out one image memory D18, assigns a unique number of 1 or more to the 4 connected blocks of "1", and sets the position of "1" on the one image memory D18. Image memory E compatible with
Write the assigned number in the position on 2G,
In addition, 4-connection means DI, j element and 4-connection in Fig. 8.
Neighborhood (Dl-z, J element, Dll)-1 element, Dl, 1
.. It is said that both the DIIJ element and one element in the 4 neighborhood are "1n" in relation to the j element and one element of D I, j, element), and in this case, these two elements are 4
A block that is said to be connected, and therefore has 4 connections, is a set of ``1'', and the element of ``1'' is 4.
It means that they are connected by a neighborhood relationship.

4連結している“1”のブロックにつき、1個の固有の
番号を割当てるから、結局、画像メモリE 20は0か
ら画像メモリD 18上に存在する“1”のブロックの
個数の範囲の番号を保持している。
Since one unique number is assigned to each of the four connected "1" blocks, the image memory E 20 is a number ranging from 0 to the number of "1" blocks existing on the image memory D 18. is held.

但し、0は画像メモリD 18上の“0”に対応する。However, 0 corresponds to "0" on the image memory D18.

(発明の効果) 以上、詳細に説明したように本発明によれば。(Effect of the invention) According to the present invention, as described above in detail.

入力画像の複数の画素を1要素として要素内の平均濃度
を計算するとともに要素内の複数の画素の濃度値の分散
を計算しているので、各要素が対象物体の領域に属する
のか或いは境界に屓するのかを判定し、かつ隣接する要
素の連結性が判定できるようになり、従って濃淡画像を
対象物体の切出しのために領域分割することが可能とな
る。またラスター走査を用いることにより処理が高速で
行なえるようになる利点がある。
Since multiple pixels of the input image are considered as one element, the average density within the element is calculated, and the variance of the density values of multiple pixels within the element is calculated. It is now possible to determine whether the image is distorted or not, and to determine the connectivity of adjacent elements, thereby making it possible to divide the grayscale image into regions for cutting out the target object. Furthermore, the use of raster scanning has the advantage that processing can be performed at high speed.

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

第1図は本発明による画像処理装置の実施例を示すブロ
ック図、第2図は平均濃度・分散計算回路のブロック図
、第3図は閾値回路のブロック図、第4図は画素と要素
との、対応の説明図、第5図は閾値処理結果の隣接する
要素の説明図、第6図は連結回路のブロック図、第7図
は従来の画像処理装置のブロック図、第8図は4近傍の
画素の平均濃度値の説明図、゛第9図は画像テーブルを
示す図である。 なお図において、 12・・・画像入力装置、 13・・・画像メモリA、 I4・・・平均濃度・分散計算回路、 15・・・画像メモリB、 16・・・画像メモリC1 17・・・閾値回路、 18・・・画像メモリD、 19・・・連結回路。 20・・・画像メモリE。 21・・・平均濃度・分散計算制御部。 22.23・・・レジスタ。 24.2フ、32・・・加算器、 25・・・除算器、 26.28.29,30.31・・・掛算器、33・・
・減算器。 34・・・閾値回路制御部、 35.40,43・・・比較器。 36.44・・・シフトレジスタ、 37.45・・・レジスタ。 38.41・・・減算器。 39.42・・・絶対値回路。 46.47.49・・・ANDゲート。 48.50・・・ORゲート、 51・・・選択回路、 52・・・マイクロプロセッサ。 53・・・ROM、 54・・・RAM、 である。
FIG. 1 is a block diagram showing an embodiment of an image processing device according to the present invention, FIG. 2 is a block diagram of an average density/variance calculation circuit, FIG. 3 is a block diagram of a threshold circuit, and FIG. 4 is a block diagram showing pixels and elements. , FIG. 5 is an explanatory diagram of adjacent elements of the threshold processing result, FIG. 6 is a block diagram of a connection circuit, FIG. 7 is a block diagram of a conventional image processing device, and FIG. An explanatory diagram of average density values of neighboring pixels, FIG. 9 is a diagram showing an image table. In the figure, 12... Image input device, 13... Image memory A, I4... Average density/variance calculation circuit, 15... Image memory B, 16... Image memory C1 17... Threshold circuit, 18... Image memory D, 19... Connection circuit. 20... Image memory E. 21... Average concentration/dispersion calculation control section. 22.23...Register. 24.2F, 32... Adder, 25... Divider, 26.28.29, 30.31... Multiplier, 33...
・Subtractor. 34... Threshold circuit control unit, 35.40, 43... Comparator. 36.44...Shift register, 37.45...Register. 38.41...Subtractor. 39.42... Absolute value circuit. 46.47.49...AND gate. 48.50...OR gate, 51...selection circuit, 52...microprocessor. 53...ROM, 54...RAM.

Claims (1)

【特許請求の範囲】[Claims] 原画像の各画素の濃度を電気信号に変換して蓄積する蓄
積手段と、該蓄積手段に蓄積されている複数の画素から
構成される要素の平均濃度及び濃度値の分散を計算する
平均濃度・分散計算手段と、該計算手段により計算され
た分散の値及び隣接する要素間の平均濃度の値の差に基
づいて前記要素を領域構成要素と境界要素とに分類する
分類手段と、該分類手段により領域構成要素に分類され
た要素を連結し、連結された領域に固有の番号を割当て
る連結手段とを有することを特徴とする画像処理装置。
A storage means that converts the density of each pixel of the original image into an electrical signal and stores it; and an average density/density controller that calculates the average density and variance of the density values of an element composed of a plurality of pixels stored in the storage means. a variance calculation means; a classification means for classifying the elements into area constituent elements and boundary elements based on the variance value calculated by the calculation means and the difference in the average concentration value between adjacent elements; and the classification means 1. An image processing device comprising: connecting means for connecting elements classified into area constituent elements by the above method, and assigning a unique number to the connected area.
JP59250314A 1984-11-27 1984-11-27 Picture processor Pending JPS61128384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59250314A JPS61128384A (en) 1984-11-27 1984-11-27 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59250314A JPS61128384A (en) 1984-11-27 1984-11-27 Picture processor

Publications (1)

Publication Number Publication Date
JPS61128384A true JPS61128384A (en) 1986-06-16

Family

ID=17206063

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59250314A Pending JPS61128384A (en) 1984-11-27 1984-11-27 Picture processor

Country Status (1)

Country Link
JP (1) JPS61128384A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5040133A (en) * 1990-01-12 1991-08-13 Hughes Aircraft Company Adaptive clusterer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5040133A (en) * 1990-01-12 1991-08-13 Hughes Aircraft Company Adaptive clusterer

Similar Documents

Publication Publication Date Title
CN111583097B (en) Image processing methods, apparatuses, electronic devices and computer-readable storage media
JP6871314B2 (en) Object detection method, device and storage medium
CN109918969B (en) Face detection method and device, computer device and computer readable storage medium
Ttofis et al. A low-cost real-time embedded stereo vision system for accurate disparity estimation based on guided image filtering
JP3853034B2 (en) Object boundary determination method and apparatus, and recording medium recording object boundary determination program
CN103679169B (en) The extracting method of characteristics of image and device
CN111480183B (en) Light field image rendering method and system for generating perspective effect
Shi et al. An FPGA-based hardware accelerator for traffic sign detection
KR101981284B1 (en) Apparatus Processing Image and Method thereof
CN114419058B (en) A method for training image semantic segmentation models for traffic road scenes
JPS61112284A (en) Method and apparatus for implementing expansive and erosive deformation in gray scale image processing
Yang et al. Prior knowledge guided small object detection on high-resolution images
CN113792752A (en) Image feature extraction method and system based on binocular camera and intelligent terminal
CN114359352A (en) Image processing method, apparatus, device, storage medium, and computer program product
CN114677392B (en) Matting method, image pickup apparatus, device, conference system, electronic apparatus, and medium
Geiger et al. Visual organization for figure/ground separation
JPS61128384A (en) Picture processor
JPS61128385A (en) Picture processor
CN111862106A (en) Image processing method based on light field semantics, computer device and storage medium
Cuisenaire et al. Fast Euclidean morphological operators using local distance transformation by propagation, and applications
Ilas New histogram computation adapted for FPGA implementation of HOG algorithm: For car detection applications
CN111862098B (en) Individual matching methods, devices, equipment and media based on light field semantics
JPH01288974A (en) Picture processing method
JP4299908B2 (en) Object boundary determination method and apparatus
JPS62108381A (en) Density histogram detecting system