JPH0474283A - Method and device for picture processing - Google Patents

Method and device for picture processing

Info

Publication number
JPH0474283A
JPH0474283A JP2188664A JP18866490A JPH0474283A JP H0474283 A JPH0474283 A JP H0474283A JP 2188664 A JP2188664 A JP 2188664A JP 18866490 A JP18866490 A JP 18866490A JP H0474283 A JPH0474283 A JP H0474283A
Authority
JP
Japan
Prior art keywords
image
value
histogram
difference
values
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.)
Granted
Application number
JP2188664A
Other languages
Japanese (ja)
Other versions
JP2956151B2 (en
Inventor
Sumihiko Kawashima
川島 純彦
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.)
Toyobo Co Ltd
Original Assignee
Toyobo 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 Toyobo Co Ltd filed Critical Toyobo Co Ltd
Priority to JP2188664A priority Critical patent/JP2956151B2/en
Publication of JPH0474283A publication Critical patent/JPH0474283A/en
Application granted granted Critical
Publication of JP2956151B2 publication Critical patent/JP2956151B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Input (AREA)

Abstract

PURPOSE:To obtain a binary picture without losing form information of a variable density picture by generating a histogram of the difference between adjacent maximum and minimum values to set a critical value of the histogram and obtain a threshold for binarization in accordance with maximum and minimum values between which the difference is larger than the critical value. CONSTITUTION:Values and positions of extreme values of the variable density picture in a picture memory circuit 3 are detected and stored, and the difference between adjacent extreme values is obtained by a difference detecting circuit 5, and the histogram of the difference is obtained by a histogram generating circuit 6, and a value CT at the bottom point of the histogram is obtained by a bottom point detecting circuit 7. Extreme values related to the image are obtained from the obtained value CT by a comparing and selecting circuit 8, and extreme values are used to determine the threshold by a threshold calculating circuit 9, and the variable density picture is converted to a binary picture in accordance with variable density picture information and the threshold. Thus, the binary picture is obtained without losing picture form information of the variable density picture.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、を最像素子から入力された濃淡画像を、2値
画像に変換する画像処理方法とその装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image processing method and apparatus for converting a grayscale image input from an image element into a binary image.

(従来の技術) 通常、画像処理を行なう時、濃淡画像を2値画像に変換
して、種々の解析を行なう、この様な2値化において従
来は、画面全体に対して、同一のしきい値を適用して、
2値化処理を行なっていた。
(Prior art) Normally, when image processing is performed, a grayscale image is converted into a binary image and various analyzes are performed. Conventionally, in such binarization, the same threshold is applied to the entire screen. Apply the value and
Binarization processing was performed.

この様に、画面全体に対し、同一のしきい値を適用する
と、撮像素子から入力された濃淡画像が、2値画像に変
換された時、もとの濃淡画像の形状情報が失なわれ、以
後の解析ができないことが生じる。これは、濃淡画像が
、通常の撮像素子で撮像した時は、256階調の濃淡情
報をもっているのに対し、2値画像の濃淡情報が2階調
であることから生じる。つまり、256階調の濃淡情報
を2階調の濃淡情報に変換する時、情報が失なわれ、図
形の形状情報が失なわれるからである。
In this way, if the same threshold value is applied to the entire screen, when the grayscale image input from the image sensor is converted into a binary image, the shape information of the original grayscale image will be lost. Further analysis may not be possible. This occurs because a grayscale image has grayscale information of 256 gradations when captured by a normal image sensor, whereas a binary image has grayscale information of 2 grayscales. In other words, when converting 256-level gradation information into 2-gradation gradation information, information is lost, and the shape information of the figure is also lost.

この様な、情報欠落を防ぐため、従来は、2値化処理の
前に、画像のコントラストを強調する処理を実施したり
、画像を描像素子に入力するための照明の均一化が非常
に重要な技術であった。しかし、この様な細心の注意を
はらって、画像を撮像素子に入力し、またコントラスト
の強調処理を実施しても、2値化がうまくいかないこと
が、実際は多い、このことが、画像処理技術の応用展開
において、現在、重要な問題となっている。
In order to prevent such information loss, conventionally it has been very important to perform processing to enhance the contrast of the image before binarization processing, and to equalize the illumination for inputting the image to the imaging element. It was a great technique. However, even if such careful attention is taken to input an image to an image sensor and contrast enhancement processing is performed, in reality, there are many cases where the binarization is not successful. This is currently an important issue in application development.

従来の2値化処理を適用した例を第4図を用いて説明す
る。
An example in which conventional binarization processing is applied will be explained using FIG. 4.

第4図において、(a)は、撮像素子から入力された濃
淡画像、(b)はX−Xにおける1次元濃度ヒストグラ
ム、(C)、(d)、(e)は、夫々、しきい値がA。
In FIG. 4, (a) is a grayscale image input from the image sensor, (b) is a one-dimensional density histogram at X-X, and (C), (d), and (e) are threshold values, respectively. is A.

B、Cの時の2値画像を示している。Binary images for B and C are shown.

第4図の例からも判る様に、従来の2値化処理において
は、′a濃淡画像形状情報が失なわれ、2値画像は、本
来の画像とは、まったく異なったものになっている。こ
の様な、形状情報の喪失が生じると、画像処理は、正し
い結果が得られないことは、いうまでもない、上記問題
を解決する方法として、撮像素子等から入力された画像
を、各水平走査線または各垂直走査線ごとに、濃度値の
極大値および極小値を求め、となりあった極大値と極小
値の値から、2値化のしきい値を求め、該しきい値を該
となりあった極大値、極小値間のしきい値として2(l
[画像を求める方法が本発明者により既に提案されてい
る0本方法は、従来の方法に比べ、非常に優れた方法で
あるが、ノイズの多い画像に対しては、前処理として、
ノイズ除去を慎重に行なわないと、2値画像にノイズが
のったり、また、細い細線画像に対しては、画像の形状
情報が失なわれやすいという欠点があった。
As can be seen from the example in Figure 4, in conventional binarization processing, the 'a gradation image shape information is lost, and the binary image becomes completely different from the original image. . It goes without saying that if such a loss of shape information occurs, correct results cannot be obtained in image processing.As a way to solve the above problem, the image input from the image sensor etc. is For each scanning line or each vertical scanning line, find the maximum and minimum values of the density value, calculate the binarization threshold from the adjacent maximum and minimum values, and set the threshold value to the corresponding maximum and minimum values. The threshold value between the local maximum and local minimum values is 2(l
[The zero method, which has already been proposed by the present inventor as a method for obtaining images, is a very superior method compared to conventional methods, but for images with a lot of noise, as preprocessing,
If noise removal is not performed carefully, there are drawbacks in that noise may be added to the binary image, and shape information of the image is likely to be lost in the case of fine line images.

(発明が解決しようとする課題) 本発明は、上記の様な問題点に鑑み、描像素子から入力
された濃淡画像の形状情報を失なうことなく、またノイ
ズに強い、2値画像検出方法またはその装置を提供する
ことを目的としている。
(Problems to be Solved by the Invention) In view of the above-mentioned problems, the present invention provides a binary image detection method that does not lose the shape information of the grayscale image input from the imaging element and is resistant to noise. or for the purpose of providing such equipment.

(課題を解決するための手段) 本発明は、撮像素子等から入力された画像を2値化画像
に処理する方法であって、人力された画像を、各水平走
査線、各垂直走査線ごとに濃度値の極大値、極小値を求
め、となり合った極大値と極小値との差を求め、この差
(Δa)のヒストグラムを作成し、該ヒストグラムの臨
界値(谷点:C1)を設定し、ΔaがCアより大の極大
値と極小値を求めてこの極大値と極小値から2値化のし
きい値を求め、該しきい値をとなり合った極大値と極小
値をとる画像のしきい値として2値化画像を求めること
を少なくとも有することを特徴とする画像処理方法であ
り、また撮像素子等から人力された画像を2値化画像に
処理する装置であって、入力された画像を各水平走査線
、各垂直走査線ごとに濃度値の極大値と極小値を求め、
となり合った極大値と極小値との差の絶対値(Δa)の
ヒストグラムを作成し、該ヒストグラムの臨界値(谷点
: Cy)を設定する臨界値設定回路を少なくとも有す
ることを特徴とする画像処理装置である。
(Means for Solving the Problems) The present invention is a method of processing an image input from an image sensor etc. into a binarized image, in which a manually generated image is processed for each horizontal scanning line and each vertical scanning line. Find the local maximum value and local minimum value of the density value, calculate the difference between the adjacent local maximum value and local minimum value, create a histogram of this difference (Δa), and set the critical value (trough point: C1) of the histogram. Then, find the local maximum value and local minimum value where Δa is larger than Ca, calculate the threshold value for binarization from this maximum value and local minimum value, and create an image that takes the local maximum value and local minimum value that are adjacent to the threshold value. This is an image processing method characterized by at least the step of obtaining a binarized image as a threshold value of the input signal, and an apparatus for processing an image manually inputted from an image sensor or the like into a binarized image. Calculate the maximum and minimum density values for each horizontal scanning line and each vertical scanning line of the image.
An image characterized by having at least a critical value setting circuit that creates a histogram of the absolute value (Δa) of the difference between adjacent local maximum values and local minimum values and sets a critical value (trough point: Cy) of the histogram. It is a processing device.

本発明を第2図を用いて説明する。第2図は、撮像素子
によって得られたある画像の水平(または垂直)走査線
における1次元濃度ヒストグラムを示したものであるs
 Xl+Xt+・・・、χ3.X、。、 ・・・は、濃
度値が極値をとる画素を示し、に1.χ2゜Xi+Xi
+1・・・における濃度値をal+82・・・ai+a
i。1.・・・とする。
The present invention will be explained using FIG. 2. Figure 2 shows a one-dimensional density histogram in a horizontal (or vertical) scanning line of an image obtained by an image sensor.
Xl+Xt+..., χ3. X. , . . . indicate pixels whose density value takes an extreme value, and 1. χ2゜Xi+Xi
The density value at +1... is al+82...ai+a
i. 1. ...and...

撮像素子で画像をとり込み、1次元濃度ヒストグラムを
作成すると、第2図の様に、となりあった極大値と極小
値の差(以後コントラストと呼ぶ)が小さいものと、大
きなものが存在する。コントラストの小さなものはノイ
ズであり、大きなものは像を表わしている。この様なノ
イズと像のコントラストの分岐点を求める方法として、
本発明では、コントラストのヒストグラムを利用する方
法を提案する。
When an image is captured by an image sensor and a one-dimensional density histogram is created, as shown in FIG. 2, there are cases where the difference (hereinafter referred to as contrast) between the maximum value and minimum value adjacent to each other is small and the difference is large. A small contrast represents noise, a large contrast represents an image. As a method to find the bifurcation point between noise and image contrast,
The present invention proposes a method using a contrast histogram.

通常、ノイズと像のコントラストは、明確に区分できる
Usually, noise and image contrast can be clearly distinguished.

このため、コントラストのヒストグラムは、第3図の様
に、双峰性を有するものとなる。
Therefore, the contrast histogram has bimodal properties as shown in FIG.

第3図において、谷点の値Crより小さいものはノイズ
、大きいものは像のコントラストを示している。
In FIG. 3, a value smaller than the valley point value Cr indicates noise, and a value greater than the valley point value Cr indicates image contrast.

さて、この様なコントラストのヒストグラムから、ノイ
ズと像のコントラストの分岐点C7を求める方法として
、サンプルの選び方により、次の3種類を提案する。
Now, as a method for finding the branch point C7 between noise and image contrast from such a contrast histogram, we propose the following three methods depending on how samples are selected.

(1)  水平走査線または垂直走査線の1ラインごと
に求める方法。この場合、走査線1ラインごとにC1の
値が変わる。
(1) A method of determining each horizontal scanning line or vertical scanning line. In this case, the value of C1 changes for each scanning line.

(2)  水平走査方向または垂直走査方向全体で求め
る方法。この場合、各走査方向でC0の値は、固定とな
る。
(2) A method of determining in the entire horizontal scanning direction or vertical scanning direction. In this case, the value of C0 is fixed in each scanning direction.

(3)  水平走査方向と垂直走査方向全体で求める方
法。この場合、水平、垂直走査方向でC7の値は単一値
をとる。
(3) A method of calculating in the entire horizontal scanning direction and vertical scanning direction. In this case, the value of C7 takes a single value in the horizontal and vertical scanning directions.

上記の方法は、夫々一長一短があるが、処理時間を短く
したい場合は、(3)の方法が良い。
Each of the above methods has advantages and disadvantages, but if you want to shorten the processing time, method (3) is better.

次に、しきい値T II Lの決定方法について述べる
Next, a method for determining the threshold value T II L will be described.

第2図において、(1)式 %式%(1) を満たす極値は、ノイズ、(2)式 、、、、−a、 l >cTi= 1.2・−−−−−
(2)を満たす極値は、像を表わしている。
In Fig. 2, the extreme value that satisfies formula (1) is noise, formula (2), ,, -a, l > cTi= 1.2・------
Extreme values that satisfy (2) represent images.

今、a++az+・・・の極値の中から、(2)式を満
たす極値のみを抽出した時、それがa+’ +az’ 
r ・・・・・・で、al’ +8!’ l ・・・・
・・の濃度値に対応する画素を×1、l ・・・とする
Now, when we extract only the extreme values that satisfy equation (2) from the extreme values of a++az+..., it becomes a+'+az'
r...and al' +8! ' l...
Let the pixels corresponding to the density values of . . . be ×1, l .

この間、となりあった極値間Xi’〜xt−+(i・1
.2・・・)におけるしきい値THLを、次式により決
定する。
During this period, between the adjacent extreme values Xi'~xt-+(i・1
.. 2...) is determined by the following equation.

例えば、第2図において(3)式をに=0.5として適
用すると第1図のようになる。
For example, if equation (3) is applied to FIG. 2 with 0.5, the result will be as shown in FIG. 1.

第1図において、ノイズと考えられる領域のしきい値は
、求まっていない。この様な領域のしきい値は、前後の
しきい値の値からしきい値を決定する。例えば、第1図
のAの領域のしきい値は、その前後のしきい値THL’
 、THLから、次のいずれかの方法で決定する。
In FIG. 1, the threshold value for the area considered to be noise has not been determined. The threshold value for such an area is determined from the values of the previous and subsequent threshold values. For example, the threshold value in area A in FIG. 1 is the threshold value THL' before and after it.
, THL, by one of the following methods.

1)シきい値をTHL ’ またはTHL″とする2)
シきい値をTHL ’ とTHL“の平均値上記の方法
のいずれの方法が良いかは、画像により違ってくるが、
実験結果では、あまり大きな差は生じていない。
1) Set the threshold to THL' or THL''2)
The threshold value is the average value of THL' and THL" Which of the above methods is better depends on the image, but
The experimental results show that there is not much difference.

第4図の画像に対し、本発明をに=0.5として適用す
ると、第5図の様になる。
When the present invention is applied to the image in FIG. 4 with 0.5, the result is as shown in FIG. 5.

第1図、第5図より、しきい値は、画像周辺の濃度値に
より変動し、濃度が高ければ、しきい値が高くなり、濃
度が低ければ、しきい値が低くなってい(様子が判る。
From Figures 1 and 5, the threshold value changes depending on the density value around the image; the higher the density, the higher the threshold value, and the lower the density, the lower the threshold value (the situation is different). I understand.

この様に、画像周辺の濃度値により、しきい値は変動し
ていく。このことは、人間が、画像の境界を判断するの
と同様なことを行なっていることになる0以上から、本
発明を利用すれば、従来の方法に比べ、濃淡画像の画像
形状情報を失なわずに2値画像が得られることが判る。
In this way, the threshold value changes depending on the density value around the image. This means that humans are doing something similar to determining the boundaries of an image, so if the present invention is used, the image shape information of the gray scale image will be lost compared to the conventional method. It can be seen that a binary image can be obtained without any movement.

この様にして、各水平あるいは垂直走査線ごとに、しき
い値THLを求め、夫々の領域1+−X++a(1・0
 1.2.・・・)において、求まったしきい値T 1
1 L以上の濃度をもった画素に対しては、白くまたは
黒)とし、T 11 L未満の濃度を持った画素に対し
ては、黒(または白)として処理する。この結果、水平
あるいは垂直走査線に対し、夫々1枚づつの2値画像が
得られる。
In this way, the threshold value THL is determined for each horizontal or vertical scanning line, and the threshold value THL is determined for each horizontal or vertical scanning line.
1.2. ), the determined threshold value T 1
A pixel with a density of 1 L or more is treated as white or black, and a pixel with a density of less than T 11 L is treated as black (or white). As a result, one binary image is obtained for each horizontal or vertical scanning line.

本発明では、上記の様にして得られた2値画像をそのま
ま利用する方法の他、下記の様に、上記の2値画像間の
論理積または、論理和をとる方法を提案する。この様に
することにより、ノイズが除去されたきれいな2値画像
の生成、不鮮明な画像からの2値画像の生成が、より高
度なレベルで達成できる。しかし、その反面処理時間が
長くなるという欠点も有することになる。
In addition to the method of using the binary images obtained as described above as they are, the present invention proposes a method of calculating the AND or OR of the binary images as described below. By doing so, generation of a clean binary image from which noise has been removed and generation of a binary image from a blurred image can be achieved at a higher level. However, on the other hand, it also has the disadvantage that the processing time becomes longer.

従って、以下の方法を適用するかどうかは、画像処理の
目的により決定されることになる。
Therefore, whether or not to apply the following method will be determined depending on the purpose of image processing.

以下、2枚の画像の論理積、論理和をとり、2値画像を
得る方法について説明する。
Hereinafter, a method of obtaining a binary image by performing a logical product and a logical sum of two images will be described.

さて、上記の様にして、求められた2枚の2値画像に対
し、対応する画素間の論理積(AND)または、論理和
(OR)をとることにより、2値画像を求める。今背景
をO(白)、画像を1(黒)とした時、その論理積、論
理和をとった時の2値画像は、次の様にして求めること
ができる。
Now, a binary image is obtained by performing a logical product (AND) or a logical sum (OR) between corresponding pixels of the two binary images obtained as described above. Now, assuming that the background is O (white) and the image is 1 (black), a binary image can be obtained by performing the AND and OR of the two as follows.

Cijは論理積、C′1、は論理和による2値画像を示
す、a、、は、水平走査による得られた2値画像、bi
Jは垂直走査により得られた2値画像、Cij+C’ 
i□は、その等の2値画像の論理積、論理和をとること
により得られる2(!!画像を示す、N、Mは夫々、水
平、垂直方向の画素数を示す。
Cij is a logical product, C'1 is a binary image obtained by a logical sum, a, , is a binary image obtained by horizontal scanning, bi
J is a binary image obtained by vertical scanning, Cij+C'
i□ indicates a 2(! image) obtained by logical product and logical sum of these binary images, and N and M indicate the number of pixels in the horizontal and vertical directions, respectively.

上記の様な論理積、論理和をとることによる効果を第6
図を用いて説明する。
The effect of taking logical products and logical sums as above is explained in the sixth section.
This will be explained using figures.

第6図において、(a)は撮像素子から入力された濃淡
画像、(b)は、水平走査により得られた2 (a画像
、(C)は、垂直走査により得られた2値画像、(d)
は、(b)と(C)の画像の論理積により得られた2値
画像、(e)は、(b)と(C)の画像の論理和とによ
り得られた2値画像を表わしている。
In FIG. 6, (a) is a grayscale image input from the image sensor, (b) is an image 2 (a) obtained by horizontal scanning, and (C) is a binary image obtained by vertical scanning, ( d)
represents the binary image obtained by the AND of images (b) and (C), and (e) represents the binary image obtained by the logical sum of the images (b) and (C). There is.

第6図において、■、■は、ノイズレベルに近いコント
ラストを持った線画像で、■′1■′は、それの2値函
像を示し、■、■は、2値画像に変換した時に生したノ
イズを示している。
In Figure 6, ■ and ■ are line images with contrast close to the noise level, ■'1■' is the binary image, and ■ and ■ are the line images that have a contrast close to the noise level, and ■ and ■ are the line images that have a contrast close to the noise level. This shows the noise generated.

水平方向の走査により得られた2値画像(b)は、通常
、水平方向に対する感度が高くなり、このため、■で示
される様な水平方向のノイズをひろいやすい傾向にある
。また、水平方向の感度に比べ垂直方向の感度は逆に低
くなり、ノイズレベルに近いコントラストをもった線画
像のは、検出されにくい。
A binary image (b) obtained by scanning in the horizontal direction usually has high sensitivity to the horizontal direction, and therefore tends to have horizontal noise as shown by ■. Furthermore, the sensitivity in the vertical direction is conversely lower than the sensitivity in the horizontal direction, and line images with contrast close to the noise level are difficult to detect.

垂直方向の走査により得られた2値画像(C)の場合は
水平方向の走査の場合とは逆に、垂直方向の感度が高く
、水平方向の感度は低くなる。
In the case of a binary image (C) obtained by scanning in the vertical direction, the sensitivity in the vertical direction is high and the sensitivity in the horizontal direction is low, contrary to the case of scanning in the horizontal direction.

このため、(C)で示される様な2値画像が得られる。Therefore, a binary image as shown in (C) is obtained.

従って、2値画像aijとt)iJの論理積を取ること
により得られた画像C4jは、ノイズ■、■が除去され
たきれいな像となるかわりに、ノイズレベルに近いコン
トラストを持った線画像の情報が失なわれる。2値画像
aijとbijの論理和を取った時は、得られた画像c
′、は、ノイズレベルに近いコントラストを持った線画
像の情報は失なわれないが、ノイズ■、■が除去されず
に残る。
Therefore, the image C4j obtained by taking the logical product of the binary image aij and t)iJ is a line image with a contrast close to the noise level, instead of being a clean image with the noises ■ and ■ removed. Information is lost. When the binary images aij and bij are logically summed, the obtained image c
′, the information of the line image with a contrast close to the noise level is not lost, but the noises ■ and ■ remain without being removed.

この様に、論理積をとることにより、コントラストの悪
い線画像の情報は失なわれるが、ノイズが除去されたき
れいな2値画像が得られ、論理和をとると、コントラス
トの悪い線画像の情報も失なわれることなく2値画像が
得られるが、ノイズが除去されずに残る。
In this way, by taking the logical product, the information of the line image with poor contrast is lost, but a clean binary image with noise removed is obtained. Although a binary image is obtained without any loss of noise, noise remains without being removed.

この様に、論理積、論理和をとることにより得られる2
値画像は、夫々、一長一短あるが、場合、場合により、
使い分けることにより、きわめて有効な処理ができる。
In this way, the 2 obtained by taking logical products and logical sums
Each value image has its advantages and disadvantages, but depending on the case,
By using them properly, extremely effective processing can be achieved.

(実施例) (実施例−1) 本発明の実施例を第7図を用いて説明する。(Example) (Example-1) An embodiment of the present invention will be described using FIG. 7.

CCロカメラ(1)から入力された濃淡画像は、A/D
変喚回路(2)により、濃淡値をアナログ値からディジ
タル値に変換され、画像メモリー回路(3)に記憶され
る0画像メモリー回B(3)の濃淡画像は、逼像素子の
水平または垂直走査線ごとに取り出され、極値検出回路
(5)で極値の値と位置が検出され記憶される。記憶さ
れた極値の値から、となりあった極値間の差が差検出回
路(5)により求められ、ヒストグラム作成回路(6)
により、差のヒストグラムが求められ、谷点検出回路(
7)により、ヒストグラムの谷点の(l[Crが求めら
れる。
The grayscale image input from the CC camera (1) is A/D
The conversion circuit (2) converts the grayscale values from analog values to digital values, and the grayscale image of the 0 image memory circuit (3) is stored in the image memory circuit (3). Each scanning line is taken out, and the value and position of the extreme value are detected and stored in the extreme value detection circuit (5). From the stored extreme values, a difference detection circuit (5) calculates the difference between adjacent extreme values, and a histogram creation circuit (6)
The histogram of the difference is obtained by using the trough detection circuit (
7), the valley point (l[Cr) of the histogram is determined.

求められたCrの値から、(2)式の演算が比較選択回
路(8)により実施され、像に関係する極値の値が求め
られる。しきい値演算回路(9)では、求められた極値
の値を用い、(3)式よりしきい値が決定される。
From the obtained value of Cr, the computation of equation (2) is performed by the comparison and selection circuit (8), and the value of the extreme value related to the image is obtained. The threshold value calculation circuit (9) uses the obtained extreme value to determine the threshold value from equation (3).

白黒判定回路00)では、画像メモリー回路(3)から
の濃淡画像情報と、しきい値演算回路(9)からのしき
い値の値から、濃淡画像が2値画像に変換される。変換
された2値画像は、2値画像メモリー回路(11)に記
憶され、必要に応じ、出力回路0りから出力される。
In the black and white determination circuit 00), the grayscale image is converted into a binary image based on the grayscale image information from the image memory circuit (3) and the threshold value from the threshold calculation circuit (9). The converted binary image is stored in the binary image memory circuit (11) and output from the output circuit 0 as required.

尚、ヒストグラム作成回路から谷点C1を求める方法と
して、水平または垂直走査線の1走査線ごとにC7を求
める方法、水平または垂直走査線の全ラインについて1
個のC7を求める方法、水平、垂直走査線の全ラインを
走査して1個のC1を求める方法があることを発明の詳
細な説明の項で述べたが、構成としては第7図と同様な
方法で実施できるので説明は省略する。
In addition, as a method of obtaining the valley point C1 from the histogram creation circuit, there is a method of obtaining C7 for each horizontal or vertical scanning line, and a method of obtaining C7 for each horizontal or vertical scanning line.
As mentioned in the detailed description of the invention, there are methods for finding C7 and finding one C1 by scanning all the horizontal and vertical scanning lines, but the structure is the same as that shown in FIG. Since this method can be implemented using various methods, the explanation will be omitted.

(実施例−2) 実施例−1では、画像の水平または垂直方向の走査によ
り2値画像を得る方法について述べたが、実施例〜2で
は、水平および垂直方向の走査により得られた2値画像
間の論理積または、論理和をとることにより2値画像を
得る方法について第8図を用いて説明する。
(Example 2) In Example 1, a method for obtaining a binary image by scanning the image in the horizontal or vertical direction was described. A method of obtaining a binary image by logical product or logical sum between images will be explained using FIG.

第8図において、(1)から(11’ )、(11’ 
)までの構成は、第7図と同しなので説明は省略する。
In Figure 8, (1) to (11'), (11'
) is the same as that in FIG. 7, so the explanation will be omitted.

論理積、論理和演算回路側では、水平走査2値画像メモ
リー回路(11’ )、垂直走査1値画像メモリー回路
(11’ )からの2値画像情報をもとに、(4)式ま
たは(5)式の演算が実施され、2 (+!!画像が求
められ、2(II画像記憶回路04)に記憶され、必要
に応じ、出力回路面から出力される。
On the logical product and logical sum operation circuit side, formula (4) or ( The calculation of equation 5) is performed, and the 2 (+!! image) is obtained, stored in the 2 (II image storage circuit 04), and output from the output circuit surface as required.

(発明の効果) 実施例−2による実際の適用例を第9図に示す。(Effect of the invention) FIG. 9 shows an actual application example of Example-2.

第9図(a)は、CCOカメラから取り込んだfA淡画
像を、第9図[有])は、従来の2値化法による2値画
像を、第9図(C)は、本発明の2値化法(論理積によ
る法)による2値画像を示す。
FIG. 9(a) shows an fA light image captured from a CCO camera, FIG. 9(C) shows a binary image obtained by the conventional binarization method, and FIG. A binary image obtained by a binarization method (a method using logical product) is shown.

第9図より、従来の方法では、濃淡画像の画像形状情報
がかなり失なわれているのに対し、本発明によれば、は
とんど失なわれずに2値画像が得られていることが判る
From FIG. 9, it can be seen that in the conventional method, the image shape information of the grayscale image is considerably lost, whereas according to the present invention, a binary image is obtained without losing much of it. I understand that.

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

第1図は、濃淡画像例に本発明の1例を適用したときの
しきい値を示す図、第2図は濃淡画像例を示す図、第3
図はとなり合った極大値と極小値との差の絶対値の例を
ヒストグラムで示した図、第4図は従来方法による濃淡
画像を2(I!化したときの状態を示す図、第5図は本
発明法の1例を適用したときの濃淡画像と2値化画像の
概略を示す図、第6図は論理積、論理和の演算適用例の
概略を示す図、第7図は実施例−1での各回路の配列の
概略を示す図、第8図は実施例−2での各回路の配列の
概略を示す図、第9図は実施例−2での適用結果を示す
概略図である。 N・ /イス 特許出願人  東洋紡績株式会社 1三二 1& 6丁 Aa (”la= −a;−r f )d、ノ4ス 濃。 襲ツ フベ 7面の浄町内容に変更なし) 一啼〆 O:  し芝・・櫃 @、儂友 (C) 一目 ・・−一一一一一一一 墨9 諷 図面の浄書(内容に変更なし) 15図 (す bシ 狗口 1゜ 2゜ 3゜ 手 続 補 正 書(方式) %式% 事件の表示 平成2年 特許m)!l 8 s 664号発明の名称 画像処理方法及びその装置 補正をする者 事件との関係    特許出願人 大阪市北区堂島浜二丁目2番日号 日 6、補正の内容 (1) IjJl書に最初に添付した図面の第4図、第
5図、第6図、および第9図の浄書、別紙のとおり。 (内容に変更なし)
FIG. 1 is a diagram showing a threshold value when one example of the present invention is applied to an example of a grayscale image, FIG. 2 is a diagram showing an example of a grayscale image, and FIG.
The figure is a histogram showing an example of the absolute value of the difference between the maximum value and the minimum value that are adjacent to each other. The figure shows an outline of a grayscale image and a binarized image when one example of the method of the present invention is applied, Fig. 6 shows an outline of an example of applying logical product and logical sum operations, and Fig. 7 shows an example of the implementation. FIG. 8 is a diagram schematically showing the arrangement of each circuit in Example-1, FIG. 9 is a diagram schematically showing the arrangement of each circuit in Example-2, and FIG. 9 is a schematic diagram showing the application result in Example-2. This is a diagram. (None) Ichimatsu〆O: Shishiba・・柃@、儂朂(C) Ichimoku・・-11111一一く 9 Engraving of a mime drawing (no changes to the content) Illustration 15 (Subushi Inuguchi 1゜2゜3゜Procedural amendment (method) % formula % Display of the case 1990 Patent m)!l 8 s No. 664 Name of the invention Image processing method and its device Person who corrects the device Relationship with the case Patent applicant Date No. 6, 2-2 Dojimahama, Kita-ku, Osaka, Contents of amendment (1) Engravings of Figures 4, 5, 6, and 9 of the drawings originally attached to the IjJl book, and the attached sheet. As per (no change in content)

Claims (2)

【特許請求の範囲】[Claims] (1)撮像素子等から入力された画像を2値化画像に処
理する方法であって、入力された画像を、各水平走査線
、各垂直走査線ごとに濃度値の極大値、極小値を求め、
となり合った極大値と極小値との差を求め、この差(Δ
a)のヒストグラムを作成し、該ヒストグラムの臨界値
(谷点:Cr)を設定し、ΔaがCrより大の極大値と
極小値を求めてこの極大値と極小値から2値化のしきい
値を求め、該しきい値をとなり合った極大値と極小値を
とる画像のしきい値として2値化画像を求めることを少
なくとも有することを特徴とする画像処理方法。
(1) A method of processing an image input from an image sensor etc. into a binarized image, which converts the input image into maximum and minimum density values for each horizontal scanning line and each vertical scanning line. seek,
Find the difference between the local maximum and minimum values that are next to each other, and calculate this difference (Δ
Create the histogram of a), set the critical value (valley point: Cr) of the histogram, find the local maximum value and local minimum value where Δa is larger than Cr, and use the local maximum value and local minimum value to determine the threshold for binarization. An image processing method comprising at least the steps of determining a value, and determining a binarized image using the threshold value as a threshold value of an image that takes adjacent maximum and minimum values.
(2)撮像素子等から入力された画像を2値化画像に処
理する装置であって、入力された画像を各水平走査線、
各垂直走査線ごとに濃度値の極大値と極小値を求め、と
なり合った極大値と極小値との差の絶対値(Δa)のヒ
ストグラムを作成し、ヒストグラムの臨界値(谷点:C
r)を設定する臨界値設定回路を少なくとも有すること
を特徴とする画像処理装置。
(2) A device that processes an image input from an image sensor etc. into a binarized image, which converts the input image into each horizontal scanning line,
The maximum and minimum values of the density values are determined for each vertical scanning line, and a histogram of the absolute value (Δa) of the difference between the adjacent maximum and minimum values is created, and the critical value of the histogram (trough point: C
An image processing device comprising at least a threshold value setting circuit for setting r).
JP2188664A 1990-07-16 1990-07-16 Image processing method and apparatus Expired - Lifetime JP2956151B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2188664A JP2956151B2 (en) 1990-07-16 1990-07-16 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2188664A JP2956151B2 (en) 1990-07-16 1990-07-16 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0474283A true JPH0474283A (en) 1992-03-09
JP2956151B2 JP2956151B2 (en) 1999-10-04

Family

ID=16227692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2188664A Expired - Lifetime JP2956151B2 (en) 1990-07-16 1990-07-16 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP2956151B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100442114B1 (en) * 2001-11-27 2004-07-30 대한민국 System for binary coding of image by searching the maximum point of histogram

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4473335B1 (en) * 2009-03-27 2010-06-02 株式会社オプトエレクトロニクス Optical information reading apparatus and optical information reading method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100442114B1 (en) * 2001-11-27 2004-07-30 대한민국 System for binary coding of image by searching the maximum point of histogram

Also Published As

Publication number Publication date
JP2956151B2 (en) 1999-10-04

Similar Documents

Publication Publication Date Title
US4817174A (en) Image processing apparatus
JPH0456509B2 (en)
JPH041866A (en) Method and device for image processing
JPH0474283A (en) Method and device for picture processing
JPH06113139A (en) Picture binarization device
JPH0433176A (en) Method and device for image processing
JP3267107B2 (en) Background image creation method and image processing apparatus
JP3223385B2 (en) Pattern matching device for grayscale images
JP2732608B2 (en) Background image erasing and binarization processing method for linear figure image and apparatus therefor
JP3091356B2 (en) Moving object detection method and apparatus
JPH07160815A (en) Method and device for image binarization processing by contour enphasis
JP3240389B2 (en) Binarization processing device
JP2002183713A (en) Method and device for processing image
JPH04290177A (en) Binary coding processing method for gradational image information
JPH0713836B2 (en) Binarization circuit
JPH0561677B2 (en)
JPH06152947A (en) Image processor
JP2859603B2 (en) Method and apparatus for binarizing image data
Vijayan Various feasible maneuvers for the analysis of an image for retrieval of information and optimization
JPS59226978A (en) Skew correction system
JPS603273A (en) System for setting binary-coding threshold value of picture
JPS59135573A (en) Identifying system of photo region
JPH05122521A (en) Method and device for improving image picture quality
Palenichka Structure-Adaptive Evaluation of Noise in Images for Automatic Image Quality Control
JPS60140349A (en) Original picture restoring method of net point picture

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100723

Year of fee payment: 11

EXPY Cancellation because of completion of term