JPS61251969A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPS61251969A
JPS61251969A JP60093370A JP9337085A JPS61251969A JP S61251969 A JPS61251969 A JP S61251969A JP 60093370 A JP60093370 A JP 60093370A JP 9337085 A JP9337085 A JP 9337085A JP S61251969 A JPS61251969 A JP S61251969A
Authority
JP
Japan
Prior art keywords
address counter
counter
address
image
variance
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
JP60093370A
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 JP60093370A priority Critical patent/JPS61251969A/en
Publication of JPS61251969A publication Critical patent/JPS61251969A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To classify an area to which a factor belongs or an interface and to obtain the excellent classified result on the overall surface of a light and dark image by setting the factor in such a way that one factor and picture elements in the factor adjacent to the former factor can overlap by the half when a means density and its variance in the factor are calculated with plural picture elements of an input image as one factor. CONSTITUTION:An adder 29 adds the contents of an XH address counter 25 and those of an XL address counter 26, which turns out the X address of an image memory A2. The contents of an YH counter 27 and those of an YL counter 28 are added 30 to be the Y address of the memory A2. A mean density/variance control part 24 reads the density values of NXM picture elements out of the memory A2, calculates the mean density -x and the variance sigma<2>, writes them in picture memories E22 and F23, respectively, after which it adds 31 the contents of the counter 25 to an M/2, sets the result to the counter 25, and advances an NX address counter 33 by one. When the counter 33 comes to W-1, the counter 25 is cleared, and an NY address counter 34 is advanced by one. Then the contents of the counter 27 are added 32 to an N/2, and the result is set to the counter 27, thereby obtaining the mean density and the variance.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は濃淡画像を領域分割するだめの画像処理方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image processing method for dividing a grayscale image into regions.

(従来の技術) 従来の画像処理方法を適用した画像処理装置としては例
えば特願昭59−250314号明細書に記載されたも
のがある。この画像処理装置のブロックである第3図を
用いて従来の画像処理方法を説明する。
(Prior Art) An example of an image processing apparatus to which a conventional image processing method is applied is the one described in Japanese Patent Application No. 59-250314. A conventional image processing method will be explained using FIG. 3, which is a block diagram of this image processing apparatus.

画像入力装置1は、入力濃淡画像の濃度値を1画素Lビ
ット(ここではL=8)で量子化する。画像メモIJA
 2は第4図のごとく入力画像を2次元的に格納するメ
モリである。
The image input device 1 quantizes the density value of the input grayscale image using L bits per pixel (here, L=8). Image memo IJA
2 is a memory for two-dimensionally storing the input image as shown in FIG.

平均濃度・分散計算回路3は画像メモ1JA2に格納さ
れた画像の(NXM)画素を1要素(ここではN=M=
4 )として各要素内の(NXM)画素の濃度値の平均
と分散を計算する。平均濃度・分散計算回路3の出力は
画像メモIJB4及び画像メモリC5に接続されており
、画像メモIJB4には平均濃度が第4図に示す如く2
次元的に格納され、一方、画像メモIJC5には平均濃
度・分散計算回路3で計算された分散が同じく2次元的
に格納される。閾値回路6は画像メモIJB  4と画
像メモリC5に格納された情報をそれぞれ例えば左上の
要素からラスター走査で読み出す。そして読み出された
現要素の分散の値が予め設定された閾値θ7よシも小さ
く、かつ現要素の平均濃度と現要素のすぐ上隣シの要素
の平均濃度との差が予め設定された閾値θ。よりも小さ
く、かつ現要素の平均濃度と現要素のすぐ左隣りの要素
の平均濃度との差が閾値θゎよりも小さい場合には1#
を画像メモリD 7の対応位置に書き込む。それ以外の
操合には°0”を対応位置に書き込む。つまり、画像メ
モリD 7で°′1″′とラベル付けされた要素は、濃
度値の分布が一様であり、対象物に対応した部分(以下
、領域と称す)であシ、一方、画像メモリD 7上で“
′0″とラベル付けされた要素は濃度値の分布が一様で
ないかもしくは隣接する要素間で平均濃度が大きく変化
しておシ、対象物の輪郭近傍(以下、境界と称す)であ
る。
The average density/variance calculation circuit 3 converts (NXM) pixels of the image stored in the image memo 1JA2 into one element (here, N=M=
4) Calculate the average and variance of the density values of (NXM) pixels within each element. The output of the average density/variance calculation circuit 3 is connected to the image memo IJB4 and the image memory C5, and the image memo IJB4 has an average density of 2 as shown in FIG.
On the other hand, the image memo IJC 5 also stores the variance calculated by the average density/variance calculation circuit 3 two-dimensionally. The threshold circuit 6 reads out the information stored in the image memo IJB 4 and the image memory C5, respectively, starting from the upper left element, for example, by raster scanning. Then, the read variance value of the current element is smaller than the preset threshold θ7, and the difference between the average density of the current element and the average density of the element immediately above the current element is set in advance. Threshold θ. 1# 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 θゎ.
is written to the corresponding position in the image memory D7. For other operations, write °0" in the corresponding position. In other words, the element labeled °'1"' in image memory D7 has a uniform distribution of density values and corresponds to the object. On the other hand, on the image memory D7, “
Elements labeled '0'' have uneven distribution of density values or the average density varies greatly between adjacent elements, and are near the contour of the object (hereinafter referred to as boundary).

次に、平均濃度・分散計算回路3を詳細に説明する。各
要素内の(NXM)画素の平均濃度マは(1)に従って
計算される。
Next, the average concentration/variance calculation circuit 3 will be explained in detail. The average density of (NXM) pixels within each element is calculated according to (1).

但し、X + +は各画素の濃度値である。一方、各要
素内の(NXM)画素の分散σ2は(2)式で計算され
る。
However, X + + is the density value of each pixel. On the other hand, the variance σ2 of (NXM) pixels within each element is calculated using equation (2).

(2)式を展開すると(3)式を得る。Expanding equation (2) yields equation (3).

第5図は、平均濃度・分散計算回路3の構成例を示すブ
ロック図である。
FIG. 5 is a block diagram showing an example of the configuration of the average concentration/variance calculation circuit 3. As shown in FIG.

画像メモリA 2のアドレスはXとyの2種類ある。X
アドレスのカウンタはXHアドレスカウンタ9とXLア
ドレスカウンタ10から構成される。
There are two types of addresses in the image memory A2: X and y. X
The address counter consists of an XH address counter 9 and an XL address counter 10.

また、XアドレスのカウンタはYHアドレスカウンタ1
1とYLアドレスカウンタ12とから構成される。XL
アドレスカウンタ10は0から(M−1)までカウント
するカウンタであシ、YLアドレスカウンタ12ばOか
ら(N−1)tでカウントするカウンタである。従って
、XLアドレスカウンタ10とYLアドレスカウンタ1
2を制御することによって、画像メモリA 2の(NX
M)画素を読み出すことが出来る。
Also, the X address counter is YH address counter 1.
1 and a YL address counter 12. XL
The address counter 10 is a counter that counts from 0 to (M-1), and the YL address counter 12 is a counter that counts from O to (N-1)t. Therefore, XL address counter 10 and YL address counter 1
(NX
M) Pixels can be read out.

ところで、Mが2のべき乗であるとき(つまりM = 
1 、2 、4. 、8 、16 、・・・)、画像メ
モリA 2のXアドレスは下位のXLアドレスカウンタ
10と上位のXHアドレスカウンタ9と分けて制御す゛
ることかできる。つまり、画像メモリA 2の(NXM
)画素を読み出した後、XHアドレスカウンタ9を1つ
だけ進めることによって、次の要素の(NXM )画素
を読み出すことが可能となる。従って、XHアドレスカ
ウンタ9はOから(Q−1)’1でカウントするカウン
タである。但し、画像メモリA 2の大きさを(RXS
)画素としだ時Q=S/Mである。
By the way, when M is a power of 2 (that is, M =
1, 2, 4. , 8, 16, . . .), the X address of the image memory A2 can be controlled separately by the lower XL address counter 10 and the upper XH address counter 9. In other words, (NXM
) After reading out the pixels, by incrementing the XH address counter 9 by one, it becomes possible to read out the (NXM) pixels of the next element. Therefore, the XH address counter 9 is a counter that counts from O to (Q-1)'1. However, the size of image memory A2 (RXS
) When starting from a pixel, Q=S/M.

同様に、YHアドレスカウンタ11はOから(P−1)
までカウントするカウンタである。但しP = R/N
である。
Similarly, the YH address counter 11 is from O to (P-1)
This is a counter that counts up to. However, P = R/N
It is.

一方、XHアドレスカウンタ9は、画像メモリA 2の
(NXM)画素を読出す毎に1つだけ進められるから、
画像メモリB 4および画像メモリC5のXアドレスと
なる。同様にYHアドレスカウンタ11は、画像メモリ
B 4および画像メモリC5のXアドレスとなる。
On the other hand, the XH address counter 9 is incremented by one every time (NXM) pixels of the image memory A2 are read.
This is the X address of image memory B4 and image memory C5. Similarly, YH address counter 11 becomes the X address of image memory B4 and image memory C5.

画像メモIJA2から各要素内の(NXM)画素の平均
濃度マ及び分散σ2はレジスタ13 、14、加算器1
5、除算器16、掛算器17、加算器18、除算器19
、掛算器20及び減算器21から構成される計算部(図
中の破線内)により計算される。
The average density and variance σ2 of (NXM) pixels in each element from the image memo IJA2 are sent to registers 13 and 14, and adder 1.
5, divider 16, multiplier 17, adder 18, divider 19
, a multiplier 20 and a subtracter 21 (indicated by a broken line in the figure).

平均濃度・分散制御部8ばXHアドレスカウンタ9、X
Lアドレスカウンタ10、YHアドレスカウンタ11、
YLアドレスカウンタ12を制御して、画像メモ1JA
2から各要素毎の(NXM)画素を読み出すと共に、計
算部のレジスタ13゜14を制御して平均濃度マ及び分
散σ2を計算する。
Average density/dispersion control unit 8, XH address counter 9,
L address counter 10, YH address counter 11,
By controlling the YL address counter 12, the image memo 1JA
(NXM) pixels for each element are read out from 2, and the average density ma and variance σ2 are calculated by controlling the registers 13 and 14 of the calculating section.

更に、この計算結果を画像メモIJB4及び画像メモリ
C5に格納する。
Furthermore, this calculation result is stored in the image memo IJB4 and the image memory C5.

次に動作を説明する。Next, the operation will be explained.

平均濃度・分散制御部8は、まずXHアドレスカウンタ
9、XLアドレスカウンタ10.YHアドレスカウンタ
11およびYLアドレスカウンタ12にクリア信号を供
給し、これらのアドレスカウンタをクリアする。次に、
平均濃度・分散制御部8はレジスタ13およびレジスタ
14にクリア信号を供給し、これらのレジスタの内容を
クリアする。
The average density/dispersion control section 8 firstly controls an XH address counter 9, an XL address counter 10 . A clear signal is supplied to the YH address counter 11 and the YL address counter 12 to clear these address counters. next,
The average density/dispersion control section 8 supplies a clear signal to the register 13 and the register 14 to clear the contents of these registers.

平均濃度・分散制御部8は4つのアドレスカウンタ(X
Hアドレスカウンタ9、XLアドレスカウンタ10、Y
Hアドレスカウンタ11およびYLアドレスカウンタ1
2)で決まる画素の濃度値を読み出し、加算器15にて
レジスタ13の内容と読み出された濃度値を加算しその
結果をレジスタ13に記憶する。次に、XLアドレスカ
ウンタ10を1つだけ進めて、隣りの画素の濃度値を読
み出し、同じ動作を行う。このようにしてXLアドレス
カウンタ10を1つずつ進め力から、各画素の濃度値の
加算料を求める。平均濃度・分散制御部8はXLアドレ
スカウンター0が(M−1)に々ったら、XLアドレス
カウンター0を1つだけ進めるのではなく、XLアドレ
スカウンター0をクリアするとともに、YLアドレスカ
ウンター2を1つだけ進める。結局、画像メモIJA2
を(NXM)回読み出すと、レジスター3は、画像メモ
IJA2の(NXM)画素の濃度値の加算結果を保持し
ていることになる。したがって平均濃度マは除JE器1
.6を使って、レジスター3の内容を定数NMで除算す
ることによって得られる。
The average density/dispersion control unit 8 has four address counters (X
H address counter 9, XL address counter 10, Y
H address counter 11 and YL address counter 1
2), the adder 15 adds the contents of the register 13 and the read density value, and stores the result in the register 13. Next, the XL address counter 10 is incremented by one, the density value of the adjacent pixel is read out, and the same operation is performed. In this way, the XL address counter 10 is advanced one by one, and the addition amount of the density value of each pixel is determined from the force. When the XL address counter 0 reaches (M-1), the average density/dispersion control unit 8 does not advance the XL address counter 0 by one, but clears the XL address counter 0 and increments the YL address counter 2. Advance only one step. In the end, image memo IJA2
When read out (NXM) times, the register 3 holds the result of addition of the density values of (NXM) pixels of the image memo IJA2. Therefore, the average density Ma is divided by JE unit 1
.. 6 by dividing the contents of register 3 by a constant NM.

一方、平均濃度・分散制御部8は画像メモリA 2から
各画素の濃度値XI、を読み出す毎に、掛算器17で2
乗計算XIj2を行わせ、その計算結果を加算器18に
てレジスター4の内容と加算させその和をし・ゾスタ1
4にセットする。従って、レジスター4は、レジスター
3と同様にΣ(X、ρ2の結果を保持していることにな
る。分散σ2は(3)式で計算されるが、(3)式の第
1項はレジスター4の内容を除算器19にて定数NMで
除算することによって得られる。一方、(3)式の第2
項は除算器16の出力(平均濃度)Xを掛算器20で2
乗することによって得られる。したがって、分散σ2は
、減算器21で(3)式の第1項から、(3)式の第2
項を引算することによって計算される。
On the other hand, each time the average density/dispersion control unit 8 reads out the density value XI of each pixel from the image memory A2, the multiplier 17
Perform multiplication calculation XIj2, add the calculation result to the contents of register 4 in adder 18, and add the sum.
Set to 4. Therefore, like register 3, register 4 holds the result of Σ(X, ρ2. The variance σ2 is calculated using equation (3), but the first term of equation (3) is 4 by the constant NM in the divider 19. On the other hand, the second
The term is the output (average density) X of the divider 16 and the multiplier 20
It is obtained by multiplying. Therefore, the variance σ2 is calculated from the first term of equation (3) by the subtracter 21 to the second term of equation (3).
Calculated by subtracting terms.

平均濃度・分散制御部8は画像メモリA 2から(NX
M)個の画素を読み出し、(NXM)画素の平均濃度マ
を画像メモリB 4に書き込み、分散σ2を画像メモリ
C5に書き込んだ後、XHアドレスカウンク9を1つだ
け進め、次の要素の処理を行う。平均濃度・分散制御部
8は、XHアドレスカウンタ9が(Q−1)になったら
、XHアドレスカウンタ9をクリアするとともにYHア
ドレスカウンタ11を1つだけ進める。
The average density/dispersion control unit 8 is connected to the image memory A2 (NX
After reading out M) pixels, writing the average density map of (N Perform processing. When the XH address counter 9 reaches (Q-1), the average concentration/dispersion control unit 8 clears the XH address counter 9 and advances the YH address counter 11 by one.

このようにして、平均濃度・分散制御部8は、平均濃度
および分散の計算を画像メモIJA2の全面に施すこと
により、(PXQ)要素の平均濃度値と分散値とを得る
In this manner, the average density/dispersion control unit 8 obtains the average density value and variance value of the (PXQ) element by calculating the average density and variance over the entire surface of the image memo IJA2.

(発明が解決しようとする問題点) しかしなから、前記画像処理方法では次のような問題点
がある。
(Problems to be Solved by the Invention) However, the image processing method has the following problems.

要素と要素との間に丁度対象物の輪郭が存在している場
合、とれら2つの要素の分散値はともに小さい値(すな
わち、閾値θ7よりも小さい値)となってしまう。この
ような場合、隣接する2要素間の平均濃度の差に対する
閾値θ。を適切な値に設定することにより、この要素を
境界と分類しなければならない。しかしガから、一定の
閾値θ。では、画面全体に対して良好な要素の分類結果
(領域もしくは境界)を得ることはできないという欠点
があった。
If the outline of the object is exactly present between the elements, the variance values of these two elements will both be small values (that is, values smaller than the threshold value θ7). In such a case, a threshold value θ for the difference in average density between two adjacent elements. This element must be classified as a boundary by setting it to an appropriate value. But from Moth, a certain threshold θ. However, this method has the disadvantage that it is not possible to obtain good element classification results (regions or boundaries) for the entire screen.

本発明は、以上述べた要素と要素との間に丁度対象物の
輪郭が存在している場合でも、領域もしくは境界に分類
することが可能で、しかも濃淡画像の全体に対して良好
な分類結果を得ることができる画像処理方法を提供する
ことを目的とする。
The present invention makes it possible to classify the object into regions or boundaries even when the outline of the object exists between the elements described above, and to achieve good classification results for the entire grayscale image. The purpose of the present invention is to provide an image processing method that can obtain the following.

(問題点を解決するだめの手段) 本発明は前記問題点を解決するために、原画像の各画素
の濃度を電気信号に変換して蓄積し、蓄積された複数の
画素から構成される要素の平均濃度及び濃度値の分散を
計算し、該計算結果に基づいて領域構成要素と境界要素
とに分類することにより画像処理を行なう画像処理方法
において、前記各要素は隣接する要素と部分的に重なり
合うように設定されるものである。
(Means for Solving the Problems) In order to solve the above problems, the present invention converts the density of each pixel of an original image into an electrical signal and stores it, and an element composed of a plurality of stored pixels. In an image processing method that performs image processing by calculating the average density and variance of density values of and classifying into area constituent elements and boundary elements based on the calculation results, each element is partially connected to an adjacent element. They are set so that they overlap.

好ましくは前記各要素が隣接する要素と半分だけ重なり
合うように設定されるものである。
Preferably, each element is set to overlap an adjacent element by half.

(作用) 本発明によれば以上のように画像処理方法を構成したの
で、次のように作用する。   ゛各要素内の画素はそ
れぞれ隣接する要素の画素に部分的に(例えば、半分だ
け)重なる状態に設定され、この各要素について平均濃
度及びi変位が計算される。従って、要素と要素との間
に丁度対象物の境界が存在することがあシえなくなり、
各要素が対象物の領域に属するのか、又は境界に属する
のかを分類することが可能となる。また、一定の閾値に
よって濃淡画像の画面全体に対して良好な分類結果を得
ることが可能と々る。
(Function) According to the present invention, since the image processing method is configured as described above, it functions as follows. ``Pixels within each element are set to partially (for example, only half) overlap the pixels of adjacent elements, and the average density and i displacement are calculated for each element. Therefore, it becomes impossible for the boundary of the object to exist exactly between the elements,
It becomes possible to classify whether each element belongs to the region of the object or to the boundary. Further, by using a certain threshold value, it is possible to obtain good classification results for the entire screen of grayscale images.

(実施例) 第2図は、隣接する要素の重なる様子を説明しく11)
   、。
(Example) Figure 2 explains how adjacent elements overlap11)
,.

たものである。要素aと要素すは隣接する要素であり(
−NXM)画素だけ重なり合っている。従来の画像処理
方法では、互いに重なり合わ々い要素(a、c、・・・
)に対してのみ平均濃度と分散を計算していだが、本発
明では、(a、b、c、d、・・・)と重なり合う要素
に対して、平均濃度と分散を計算する。また縦方向の処
理も横方向の処理と全く同様である。
It is something that Element a and element S are adjacent elements (
-NXM) Only pixels overlap. In conventional image processing methods, elements (a, c,...
), but in the present invention, the average density and variance are calculated for elements that overlap (a, b, c, d, . . . ). Furthermore, the processing in the vertical direction is exactly the same as the processing in the horizontal direction.

第1図は本発明の実施例を示すブロック図である。同図
において、第5図と同一の参照符号は同一性のある構成
部分を示す。画像メモリA 2から読み出した画素から
要素毎の平均濃度及び分散を計算する計算部(図中の破
線内)は第5図と同一である。従って、第5図の平均濃
度・分散制御部   。
FIG. 1 is a block diagram showing an embodiment of the present invention. In this figure, the same reference numerals as in FIG. 5 indicate the same components. The calculation section (within the broken line in the figure) that calculates the average density and variance for each element from the pixels read out from the image memory A2 is the same as in FIG. Therefore, the average concentration/dispersion control section in FIG.

8に相当する平均濃度・分散制御部24によって、この
計算部は同様にして制御され、各要素内の平均濃度マ及
び分散σ2を計算する。
This calculating section is similarly controlled by the average concentration/dispersion control section 24 corresponding to 8, and calculates the average concentration and variance σ2 within each element.

次に第5図と相違する構成部分を説明する。Next, components different from those in FIG. 5 will be explained.

画像メモリE 22は第5図の画像メモリB 4に相当
し、平均濃度を格納するメモリである。また、(12)
     ゛ 画像メモリF23は画像メモリC5に相当し、分散を格
納するメモリである。画像メモリE 22と画像メモ!
JFv23の大きさは(VXW)要素である。
The image memory E 22 corresponds to the image memory B 4 in FIG. 5, and is a memory for storing average density. Also, (12)
゛The image memory F23 corresponds to the image memory C5, and is a memory that stores variance. Image memory E 22 and image memo!
The size of JFv23 is the (VXW) element.

(第2図参照)。但し、V = 2R/N 、 W= 
2S/Mである。これは、隣接する要素内の画素が丁度
半分だけ重なり合うように設定しているためである。
(See Figure 2). However, V = 2R/N, W =
It is 2S/M. This is because pixels in adjacent elements are set to overlap by exactly half.

XLアドレスカウンタ26はOから(M−1)までカウ
ントするカウンタであシ、YLアドレスカウンタ28は
Oから(N−1)までカウントするカウンタである。従
ってXLアドレスカウンタ26とYLアドレスカウンタ
28を制御することによって、画像メモリA 2の(N
XM)画素を読み出すことが出来る。
The XL address counter 26 is a counter that counts from O to (M-1), and the YL address counter 28 is a counter that counts from O to (N-1). Therefore, by controlling the XL address counter 26 and the YL address counter 28, (N
XM) pixels can be read out.

ここで、Mが2のべき乗であったとしても、画像メモリ
A 2のXアドレスは、第5図の従来の方法では制御で
きない。つまり、上位のXHアドレスカウンタ25と下
位のXLアドレスカウンタ26をそのまま画像メモリA
2のXアドレスとすることはできない。XHアドレスカ
ウンタ25の内容とXしアドレスカウンタ26の内容と
を加算器29で加算しその結果を画像メモリA2のXア
ドレスとする。同様に、YHアドレスカウンタ27の内
容とYLアドレスカウンタ28の内容とを加算器30で
加算し、その結果を画像メモリA 2のXアドレスとす
る。XHアドレスカウンタ25はOから<s−7>まで
カウントするカウンタであり、自身の出力と定数M/2
とを加算器31で加算することによりN/2毎の値(0
、N/2 、 M 。
Here, even if M is a power of 2, the X address of the image memory A2 cannot be controlled by the conventional method shown in FIG. In other words, the upper XH address counter 25 and the lower XL address counter 26 are directly stored in the image memory A.
It cannot be an X address of 2. The contents of the XH address counter 25 and the contents of the XH address counter 26 are added by an adder 29, and the result is set as the X address of the image memory A2. Similarly, the contents of the YH address counter 27 and the contents of the YL address counter 28 are added by an adder 30, and the result is set as the X address of the image memory A2. The XH address counter 25 is a counter that counts from O to <s-7>, and has its own output and a constant M/2.
By adding the values in the adder 31, the value of every N/2 (0
, N/2, M.

3B4/2 、2 M 、・・・)を取る。同様にYH
アドレスカウンタ27は、0から(R−T)までカウン
トするカウンタであり、自身の出力と定数V2とを加算
器32で加算することにより N/2毎の値(0,N/
2゜N、3N/2,2N、・・・)を取る。
3B4/2, 2M,...). Similarly YH
The address counter 27 is a counter that counts from 0 to (RT), and by adding its own output and a constant V2 using an adder 32, the address counter 27 calculates a value every N/2 (0, N/
Take 2°N, 3N/2, 2N,...).

NXアドレスカウンタ33とNXアドレスカウンタ34
は画像メモリE  22および画像メモリF  23の
アドレスカウンタである。
NX address counter 33 and NX address counter 34
are address counters of image memory E 22 and image memory F 23.

平均濃度・分散制御部24ばXHアドレスカウンタ25
、XHアドレスカウンタ26、YHアドレスカウンタ2
7及びYLアドレスカウンタ28を制御することにより
、画像メモリA 2のX、Yアドレスを指定して、格納
された画素の濃度値を読み出すと共に、計算部のレジス
タ13及びレジスタ14を制御して第5図の従来例と同
様に平均濃度及び分散を計算する。更に、NXアドレス
カウンタ33及びNYアドレスカウンタ34を制御して
各要素毎の計算結果を画像メモ1JE22及び画像メモ
IJF23に格納する。
Average density/dispersion control unit 24 and XH address counter 25
, XH address counter 26, YH address counter 2
7 and the YL address counter 28, the X and Y addresses of the image memory A2 are designated and the stored density values of the pixels are read out, and the registers 13 and 14 of the calculation section are controlled to The average concentration and variance are calculated in the same way as in the conventional example shown in FIG. Further, the NX address counter 33 and the NY address counter 34 are controlled to store the calculation results for each element in the image memo 1JE 22 and the image memo IJF 23.

次に動作を説明する。平均濃度・分散制御部24は、ま
ずXHアドレスカウンタ251.XLアドレスカウンタ
26、YHアドレスカウンタ27およびYLアドレスカ
ウンタ28にクリア信号を供給シ、これらのアドレスカ
ウンタをクリアする。
Next, the operation will be explained. The average density/dispersion control unit 24 first controls the XH address counter 251. A clear signal is supplied to the XL address counter 26, YH address counter 27, and YL address counter 28 to clear these address counters.

また、平均濃度・分散制御部24は、NXアドレスカウ
ンタ33およびNYアドレスカウンク34にクリア信号
を供給し、これらのアドレスカウンタをクリアする。
The average density/dispersion control unit 24 also supplies a clear signal to the NX address counter 33 and NY address counter 34 to clear these address counters.

画像メモリA 2のアドレスは次のようにして生成され
る。XHアドレスカウンタ25の内容とXLアドレスカ
ウンタ26の内容は加算器29で加算され、加算器29
の出力は画像メモリA 2のlXアドレスとなる。また
、YHアドレスカウンタ27の内容とYLアドレスカウ
ンタ28の内容は加算器30で加算され、加算器30の
出力はメモリA 2のYアドレスとなる。
The address of image memory A2 is generated as follows. The contents of the XH address counter 25 and the contents of the XL address counter 26 are added by an adder 29;
The output becomes the lX address of image memory A2. Further, the contents of the YH address counter 27 and the contents of the YL address counter 28 are added by an adder 30, and the output of the adder 30 becomes the Y address of the memory A2.

次に、平均濃度・分散制御部24はレジスタ13および
レジスタ14にクリア信号を供給し、これらのレジスタ
の内容をクリアする。平均濃度・分散制御部24はXL
アドレスカウンタ26とYLアドレスカウンタ28を従
来と同様の方法で制御し、画像メモリA 2から(NX
M)画素の濃度値を読み出し、(NXM)画素の平均濃
度マと分散σ2を計算する。次に、平均濃度・分散制御
部24は、平均濃度マを画像メモ!JE22に書き込み
、分散σ2を画像メモ!JF23に書き込んだ後、XI
(アドレスカウンタ25の内容と定数M/2を加算器3
1で加算し、その結果をXHアドレスカウンタ25にセ
ットするとともに、NXアドレスカウンタ33を1つだ
け進める。したがって、XHアドレスカウンタ25はV
2であり、Y)Iアドレスカウンタ27は0となってい
るから、次に処理される要素は直前に処理された要素と
画像メモリA 2の(NXM)画素の丁度半分が重々9
合っていることになる。
Next, the average concentration/dispersion control section 24 supplies a clear signal to the register 13 and the register 14 to clear the contents of these registers. The average concentration/dispersion control section 24 is XL
The address counter 26 and the YL address counter 28 are controlled in the same manner as before, and from the image memory A2 (NX
M) Read the density value of the pixel and calculate the average density value and variance σ2 of (NXM) pixels. Next, the average density/dispersion control unit 24 records the average density as an image memo! Write in JE22 and take an image memo of the variance σ2! After writing to JF23, XI
(The contents of the address counter 25 and the constant M/2 are added to the adder 3.
The result is set in the XH address counter 25, and the NX address counter 33 is incremented by one. Therefore, the XH address counter 25 is V
2, and the Y)I address counter 27 is 0, so the next element to be processed is exactly half of the previously processed element and the (NXM) pixels of image memory A2.
It means it matches.

以上のように制御して平均濃度・分散制御部24は、N
Xアドレスカウンタ33が(w−i)に力ったら、NX
アドレスカウンタ33とXHアドレスカウンタ25とを
クリアするとともに、NYアドレスカウンタを1つだけ
進め、YHアドレスカウンタ27の内容と定数N/2を
加算器3.2で加算し、その結果をYHアドレスカウン
タ27にセットする。したがって、YHアドレスカウン
タ27はN/2であり、XHアドレスカウンタ25はO
であるから、次に処理される要素は、すぐ上隣シの要素
と画像メモIJA2の(NXM)画素の丁度半分が重々
9合っていることになる。
By controlling as described above, the average concentration/dispersion control section 24 controls N
When the X address counter 33 inputs (w-i), NX
Clear the address counter 33 and the XH address counter 25, advance the NY address counter by one, add the contents of the YH address counter 27 and a constant N/2 using the adder 3.2, and add the result to the YH address counter. Set it to 27. Therefore, YH address counter 27 is N/2, and XH address counter 25 is O.
Therefore, in the next element to be processed, exactly half of the (NXM) pixels of the image memo IJA2 coincide with the element immediately above it.

このようにして、平均濃度・分散制御部24は、平均濃
度および分散の計算を画像メモ1JA2の全面に施すこ
とによシ、(VXW)要素の平均濃度値と分散値とを得
る。
In this way, the average density/dispersion control unit 24 calculates the average density and variance over the entire surface of the image memo 1JA2, thereby obtaining the average density value and variance value of the (VXW) element.

(発明の効果) 以上、詳細に説明したように本発明によれば、入力画像
の複数の画素を1要素として要素内の平均濃度と分散を
計算するときに、1要素内の画素とその要素と隣接する
要素内の画素とが半分だけ重なり合うように要素を設定
しているので、要素と要素との間に丁度対象物の境界が
存在することがありえなくなシ、各要素が対象物の領域
に属するのかあるいは境界に属するのかを分類すること
が可能となり、まだ一定の閾値(θD)によって濃淡画
像の画面全体に対して、良好な分類結果を得ることがで
きる。
(Effects of the Invention) As described above in detail, according to the present invention, when calculating the average density and variance within an element using a plurality of pixels of an input image as one element, the pixels within one element and its elements are Since the elements are set so that the pixels in the adjacent elements overlap by half, it is impossible for the boundary of the object to exist exactly between the elements, and each element It becomes possible to classify whether the image belongs to a region or a boundary, and it is possible to obtain a good classification result for the entire screen of a grayscale image by using a constant threshold value (θD).

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

第1図は本発明の実施例を示す構成図、第2図は本発明
の画素と要素との対応を示す説明図、第3図は従来の画
像処理方法を適用した画像処理装置を示すブロック図、
第4図は従来の画素と要素との対応を示す説明図、第5
図は従来の平均濃度・分散計算回路の構成を示すブロッ
ク図である。 1・・・画像入力装置、2・・・画像メモIJ A、3
・・・平均濃度・分散計算回路、4・・・画像メモIJ
B、5・・・画像メモIJ C16・・・閾値回路、7
・・画像メモリD。 8・・・平均濃度・分散制御部、9・・・XHアドレス
カウンタ、10・・・XLアドレスカウンタ、11・・
YHアドレスカウンタ、12・・・YLアドレスカウン
タ、13・・レジスタ、14・・・レジスタ、15・・
・加算器、16・・・除算器、17・・掛算器、18・
・加算器、19・・除算器、20・・・掛算器、21・
・・減算器、22・・・画像メモリE123・・・画像
メモリF124・・・平均濃度・分散制御部、25・・
XHアドレスカウンタ、26・・・XLアドレスカウン
タ、27・・・YHアドレスカウンタ、28・・・YL
アドレスカウンタ、29・・・加算器、30・・・加算
器、31・・加算器、32・・・加算器、33・・・N
Xアドレスカウンタ、34・・・NYアドレスカウンタ
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the correspondence between pixels and elements of the present invention, and FIG. 3 is a block diagram showing an image processing apparatus to which a conventional image processing method is applied. figure,
Figure 4 is an explanatory diagram showing the correspondence between conventional pixels and elements;
The figure is a block diagram showing the configuration of a conventional average concentration/variance calculation circuit. 1... Image input device, 2... Image memo IJ A, 3
...Average density/dispersion calculation circuit, 4...Image memo IJ
B, 5... Image memo IJ C16... Threshold circuit, 7
...Image memory D. 8... Average density/dispersion control unit, 9... XH address counter, 10... XL address counter, 11...
YH address counter, 12... YL address counter, 13... register, 14... register, 15...
・Adder, 16... Divider, 17... Multiplier, 18...
- Adder, 19... Divider, 20... Multiplier, 21...
...Subtractor, 22...Image memory E123...Image memory F124...Average density/dispersion control section, 25...
XH address counter, 26...XL address counter, 27...YH address counter, 28...YL
Address counter, 29...Adder, 30...Adder, 31...Adder, 32...Adder, 33...N
X address counter, 34...NY address counter.

Claims (2)

【特許請求の範囲】[Claims] (1)原画像の各画素の濃度を電気信号に変換して蓄積
し、蓄積された複数の画素から構成される要素の平均濃
度及び濃度値の分散を計算し、該計算結果に基づいて領
域構成要素と境界要素とに分類することにより画像処理
を行なう画像処理方法において、前記各要素は隣接する
要素と部分的に重なり合うように設定されることを特徴
とする画像処理方法。
(1) Convert the density of each pixel of the original image into an electrical signal and accumulate it, calculate the average density and variance of the density value of an element composed of multiple accumulated pixels, and based on the calculation results, 1. An image processing method for performing image processing by classifying an image into constituent elements and boundary elements, characterized in that each element is set to partially overlap an adjacent element.
(2)前記各要素は隣接する要素と半分だけ重なり合う
ように設定されることを特徴とする特許請求の範囲第1
項記載の画像処理方法。
(2) The first aspect of the present invention is characterized in that each element is set to overlap an adjacent element by half.
Image processing method described in section.
JP60093370A 1985-04-30 1985-04-30 Image processing method Pending JPS61251969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60093370A JPS61251969A (en) 1985-04-30 1985-04-30 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60093370A JPS61251969A (en) 1985-04-30 1985-04-30 Image processing method

Publications (1)

Publication Number Publication Date
JPS61251969A true JPS61251969A (en) 1986-11-08

Family

ID=14080408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60093370A Pending JPS61251969A (en) 1985-04-30 1985-04-30 Image processing method

Country Status (1)

Country Link
JP (1) JPS61251969A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008198224A (en) * 2001-10-25 2008-08-28 Mitsubishi Electric Information Technology Centre Europa Bv Method for deducing characteristic vector for expressing image, image classification method and image analyzer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008198224A (en) * 2001-10-25 2008-08-28 Mitsubishi Electric Information Technology Centre Europa Bv Method for deducing characteristic vector for expressing image, image classification method and image analyzer

Similar Documents

Publication Publication Date Title
JP2000149053A5 (en)
JP2010525486A (en) Image segmentation and image enhancement
KR20150031241A (en) A device and a method for color harmonization of an image
JP3482660B2 (en) Image data processing apparatus and image data processing method
CN111127342B (en) Image processing method, device, storage medium and terminal equipment
JP4272880B2 (en) Color correction method, image processing apparatus, and lookup table
JP4920814B2 (en) Image processing method, apparatus, and recording medium
CN109934783B (en) Image processing method, image processing device, computer equipment and storage medium
JPS61251969A (en) Image processing method
CN110769299A (en) Video frame writing method and device, electronic equipment and storage medium
US20010048772A1 (en) Apparatus and method for efficient implementation of 2-dimensional pixel window averaging
CN112465931A (en) Image text erasing method, related equipment and readable storage medium
US6509901B1 (en) Image generating apparatus and a method thereof
JPH07118002B2 (en) Image processing device
JP4013491B2 (en) Apparatus, method and program for image processing
EP4246428A1 (en) Perspective method for physical whiteboard and generation method for virtual whiteboard
AU727553B2 (en) Improvements in Image Filtering
JP2002300398A (en) Image processor
JPS58177635A (en) Ct image display apparatus
JPS5883885A (en) Overlapping of variable density image and binary image for display controller
JP3225884B2 (en) Image processing device, image processing method, image reading device, copying machine, and recording medium
JPH07193812A (en) Picture compressor and picture compression method
KR20240039394A (en) Image processing device, electronic device having the same, and operating method thereof
CN114648448A (en) Image enhancement method, device, equipment and storage medium
JPS6141273A (en) Picture processor