JPS59178872A - Binary-coding system of contrast picture - Google Patents
Binary-coding system of contrast pictureInfo
- Publication number
- JPS59178872A JPS59178872A JP58052538A JP5253883A JPS59178872A JP S59178872 A JPS59178872 A JP S59178872A JP 58052538 A JP58052538 A JP 58052538A JP 5253883 A JP5253883 A JP 5253883A JP S59178872 A JPS59178872 A JP S59178872A
- Authority
- JP
- Japan
- Prior art keywords
- histogram
- threshold value
- threshold
- binary
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【発明の詳細な説明】
発明の技術分野
本発明は画像処理に係り与えられた濃淡階調をもつ画像
(以後濃淡画像と称する)を2値画像に変換する方式に
関するものである。DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to image processing and to a method for converting an image having a given gray scale (hereinafter referred to as a gray scale image) into a binary image.
従来技術と問題点
従来の濃淡画像の2値化方式としては画像からヒストグ
ラム金と9そのヒストグラムから2値化の閾値を決めそ
の値で画像全体の2値化を行なう方法があり第1図にそ
のヒストグラムと2値化の閾値との関係を示す。同図に
おいて縦軸は濃度を示し、横軸はその濃度を示す度数(
1iiii素数)を示す。第1図においてはαは濃度の
低い画素数βは濃度の高い画素数と濃度の低い画素数と
の差を示している。PRIOR ART AND PROBLEMS Conventional methods for binarizing grayscale images include determining a threshold value for binarization from the histogram of the image and binarizing the entire image using that value, as shown in Figure 1. The relationship between the histogram and the binarization threshold is shown. In the figure, the vertical axis shows the concentration, and the horizontal axis shows the frequency (
1iii prime number). In FIG. 1, α is the number of pixels with low density.β is the difference between the number of pixels with high density and the number of pixels with low density.
つぎにかXるヒストグラムを用いて濃淡画像の2値化を
行なう場合の問題点について述べる。まず濃淡画像が第
2図のごとく濃度勾配全有する場合を考える。第2図に
おいて座標(0,0)に近い部分は濃度が低く(淡)、
座標いvx 、 wy )に近す方は濃度が高い(濃)
ような濃度傾斜があるとする。この場合にはその濃度の
ヒストグラムは第3図に示すように濃淡画素数の差βは
αに比べて小さく々る。か\る第2図のごとき濃淡画像
を1つの閾値で2値化すると第4図に示すととく淡部は
うすくかすれ製部はつぶれる画像となる。Next, we will discuss the problems when binarizing a grayscale image using the X histogram. First, let us consider the case where the grayscale image has a full density gradient as shown in FIG. In Figure 2, the area near the coordinates (0,0) has low density (light);
The closer to the coordinates (vx, wy) the higher the concentration (darker)
Suppose there is a concentration gradient like this. In this case, the density histogram shows that the difference β between the numbers of gray pixels is smaller than α, as shown in FIG. When a grayscale image as shown in FIG. 2 is binarized using one threshold value, the image shown in FIG. 4 becomes an image in which the light areas are faint and the edges are blurred.
か\る欠点全解消するため従来は濃淡画像をいくつかの
小領域に分割してその分割領域毎に第1図で求めたよう
なヒストグラムを求めこれによって分割領域毎に2値化
を行なう方法が採用された。In order to eliminate all of these drawbacks, the conventional method is to divide a grayscale image into several small areas, obtain a histogram like the one shown in Figure 1 for each divided area, and then perform binarization for each divided area. was adopted.
しかじかXる画像分割方式においては例えば低いレベル
に部分的に雑音が混入した場合にこの雑音レベルヶ生か
してしまうという欠点がある。However, the conventional image division method has the disadvantage that, for example, when noise is partially mixed in at a low level, this noise level is taken advantage of.
発明の目的
本発明はか\る従来技術の欠点にかんがみ濃淡画像に濃
度傾斜がある場合でも各部分における濃淡画像全体落す
ことなく2値化することのできる方式全提供すること全
目的とするものである。OBJECTS OF THE INVENTION In view of the shortcomings of the prior art, it is an object of the present invention to provide a system that can binarize the grayscale image without losing the entire grayscale image in each part even if the grayscale image has a gradient in density. It is.
発明の構成
この目的は本発明によれば濃淡画像を格納するメモリと
、該メモリおよび該メモリ上の任意の小領域のヒストグ
ラムを抽出するヒストグラム演算器と、該ヒストグラム
演算器により抽出されたヒストグラムから前記メモリお
よび前記メモリ上の前記小領域を2値化する閾値全算出
する閾値決定回路を設け、前記メモリ全体からヒストグ
ラムをとりメモリ全体についての2値化の閾値を求め且
つそのヒストグラムの形状からその画像の濃度分布に合
わせだ2値化の閾値の上限および下限の範囲を設定し、
前記濃淡画像を複数の小領域に分割し、分割した領域毎
にヒストグラム全とり2値化の閾値を求め、該閾値の値
が前記上限および下限の範囲にあれば前記値により前記
小領域全2値化し、前記範囲内になければ前記範囲の上
限あるいは下限のうち前記値に近い方の値で前記小領域
全2値化することを特徴とする濃淡画像の2値化方式全
提供することによって達成される。According to the present invention, the object is to provide a memory for storing grayscale images, a histogram calculator for extracting a histogram of the memory and an arbitrary small area on the memory, and a histogram extracted by the histogram calculator. A threshold value determining circuit is provided to calculate all threshold values for binarizing the memory and the small area on the memory, and a histogram is obtained from the entire memory, the binarization threshold value for the entire memory is determined, and the threshold value is determined from the shape of the histogram. Set the upper and lower limits of the binarization threshold according to the density distribution of the image,
Divide the grayscale image into a plurality of small regions, find a threshold value for binarizing all histograms for each divided region, and if the value of the threshold is within the range of the upper and lower limits, use the value to binarize all the small regions. By providing a binarization method for a grayscale image, which is characterized in that the small area is binarized using a value that is closer to the upper limit or the lower limit of the range if it is not within the range. achieved.
発明の実施例 以下本発明にか\る実施例について詳細に説明する。Examples of the invention Embodiments according to the present invention will be described in detail below.
本発明の要旨とするところはまず濃淡画像全体のヒスト
グラムをとりα全中心として2値化の閾値の許容幅含・
βが太きければ狭く、βが小さけれは広く設定する。つ
ぎに画像全いくつかの小領域に分割して分割小領域毎に
2値化の閾値全求め、その値が1面像全体から求めた許
容幅の範囲に。りればその値を閾値とし、その範囲にな
ければその範囲の上限値と下限値のうち分割領域毎に求
めた2値化の閾値に近い方全2値化の閾値とすることに
より、分割領域毎に2値化するものである。The gist of the present invention is to first take a histogram of the entire grayscale image and set it as the all center α, including the allowable range of the binarization threshold.
If β is thicker, it is narrower, and if β is smaller, it is set wider. Next, the entire image is divided into several small regions, and the threshold values for binarization are determined for each divided small region, and the values are within the allowable width determined from the entire one-plane image. If it is within that range, then use that value as the threshold, and if it is not within that range, then use the one of the upper and lower limits of that range that is closer to the binarization threshold found for each divided area as the threshold for full binarization. This is to binarize each area.
第5図に本発明の1実施例のフ゛口、り図を示す。FIG. 5 shows a diagram of one embodiment of the present invention.
第5図において入力メモリ1は濃淡画像が格納される。In FIG. 5, an input memory 1 stores grayscale images.
入カッモリ1の全体の内容はデータ線aによりヒストグ
ラム演算器2に送られこ\において画像全体のヒストグ
ラム葡とる。閾値決定回路3はヒストグラム演算器2に
おいて得られたヒストグラムをデータ線b”4介して入
力し2値化の閾値全決定する。一方においてヒストグラ
ム演算器2で得られたヒストグラムはデータ線cf介し
て閾値幅決定回路4に送られ、閾値決定回路3の出力で
ある画像全体の2値化の閾値をデータ線dで参照して分
割小領域の閾値幅を決定する。The entire contents of the input image 1 are sent to a histogram calculator 2 via a data line a, where a histogram of the entire image is obtained. The threshold value determining circuit 3 inputs the histogram obtained by the histogram calculator 2 via the data line b"4 and determines all thresholds for binarization. On the other hand, the histogram obtained by the histogram calculator 2 is input via the data line cf. The threshold width is sent to the threshold width determining circuit 4, and the threshold width of the divided small area is determined by referring to the threshold value for binarization of the entire image, which is the output of the threshold determining circuit 3, using the data line d.
一方において入力メモリ1の画像はn個に分割されその
分割された小領域の内容はデータ線eI+e2・’=
e 1を介してヒストグラム演算器5 a 、 5b。On the other hand, the image in the input memory 1 is divided into n parts, and the contents of the divided small areas are data lines eI+e2・'=
Histogram calculators 5a, 5b via e1.
・・・、5nに送られこ\において各小領域におけるヒ
ストグラムをとり、閾値決定回路5a 、 5b 。. . , 5n, which takes a histogram in each small area and sends it to threshold value determination circuits 5a and 5b.
・・、6nにお(八てはデータ線f1 + f2 +・
・・+fnを介して得られた内容によシその小領域にお
ける2値化の閾値を決定する。..., 6n (the data line f1 + f2 +...
. . . Determine the threshold value for binarization in the small area based on the content obtained through +fn.
閾値比較回路7a 、 7b 、・・・、7nはデータ
線gからの画像全体の2値化の閾値の許容幅を参照しデ
ータ線h1 + h2 +・・・+hnからの小領域に
おける2値化の閾値と比較して小領域の2値化の閾値を
最終的に決定する。2値化回路8は対象としている小領
域をデータ線e1 + ”21・・・enより読み込み
、データ線’+ + ’2 r・・+’nからのその小
領域における2値化の閾値を参照しデータ線jt+jz
+・・・+jnを介して2値画像を格納する。The threshold comparison circuits 7a, 7b,..., 7n refer to the allowable width of the threshold for binarizing the entire image from the data line g, and perform binarization in a small area from the data lines h1+h2+...+hn. The threshold for binarization of the small area is finally determined by comparing the threshold with the threshold. The binarization circuit 8 reads the target small area from the data line e1 + ``21...en, and calculates the threshold value for binarization in the small area from the data line '+ + '2 r...+'n. Reference data line jt+jz
A binary image is stored via +...+jn.
Claims (1)
上の任意の小領域のヒストグラムを抽出するヒストグラ
ム演算器と、該ヒストグラム演算器により抽出されたヒ
ストグラムから前記メモリおよび前記メモリ上の前記小
領域を2値化する閾値を算出する闇値決定回路を設け、
前記メモリ全体からヒストグラム金とりメモリ全体につ
いての2値化の閾値を求め且つそのヒストグラムの形状
からその画像の濃度分布に合わせた2値化の閾値の上限
および下限の範囲を設定し、前記濃淡画像を複数の小領
域に分割し、分割した領域毎にヒストグラムをとり2値
化の閾値を求め、該閾値の値が前記上限および下限の範
囲にあれば前記値により前記小領域″f:2値化し、前
記範囲内になければ前記範囲の上限あるいは下限のうち
前記値に近い方の値で前記小領域に2(tl!i化する
ことを特徴とする濃淡画像の2値化方式。a memory for storing a grayscale image; a histogram calculator for extracting a histogram of the memory and any small area on the memory; and a histogram for extracting the memory and the small area on the memory from the histogram extracted by the histogram calculator. A dark value determination circuit is provided to calculate the threshold for binarization,
The binarization threshold for the entire histogram memory is determined from the entire memory, and the upper and lower limits of the binarization threshold are set according to the density distribution of the image from the shape of the histogram. is divided into a plurality of small regions, a histogram is taken for each divided region, a threshold value for binarization is determined, and if the value of the threshold value is within the range of the upper and lower limits, the small region "f: binary value , and if it is not within the range, the small area is converted to 2(tl!i) with a value that is closer to the value of the upper or lower limit of the range.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58052538A JPS59178872A (en) | 1983-03-30 | 1983-03-30 | Binary-coding system of contrast picture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58052538A JPS59178872A (en) | 1983-03-30 | 1983-03-30 | Binary-coding system of contrast picture |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS59178872A true JPS59178872A (en) | 1984-10-11 |
JPS6323710B2 JPS6323710B2 (en) | 1988-05-17 |
Family
ID=12917544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58052538A Granted JPS59178872A (en) | 1983-03-30 | 1983-03-30 | Binary-coding system of contrast picture |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59178872A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63131272A (en) * | 1986-11-21 | 1988-06-03 | Fuji Electric Co Ltd | Decision method for binarization threshold |
JPH0256688A (en) * | 1988-08-23 | 1990-02-26 | Toyota Central Res & Dev Lab Inc | Character segmenting device |
JPH02168365A (en) * | 1988-12-22 | 1990-06-28 | Sankyo Seiki Mfg Co Ltd | Method for segmenting character string and character |
JP2009152920A (en) * | 2007-12-21 | 2009-07-09 | Murata Mach Ltd | Image reader |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0533403U (en) * | 1991-10-08 | 1993-04-30 | トヨタ自動車株式会社 | Functional color variable vehicle lighting |
-
1983
- 1983-03-30 JP JP58052538A patent/JPS59178872A/en active Granted
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63131272A (en) * | 1986-11-21 | 1988-06-03 | Fuji Electric Co Ltd | Decision method for binarization threshold |
JPH0256688A (en) * | 1988-08-23 | 1990-02-26 | Toyota Central Res & Dev Lab Inc | Character segmenting device |
JPH02168365A (en) * | 1988-12-22 | 1990-06-28 | Sankyo Seiki Mfg Co Ltd | Method for segmenting character string and character |
JP2009152920A (en) * | 2007-12-21 | 2009-07-09 | Murata Mach Ltd | Image reader |
Also Published As
Publication number | Publication date |
---|---|
JPS6323710B2 (en) | 1988-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1301308C (en) | Thresholding technique for graphics images using histogram analysis | |
US7177483B2 (en) | System and method for enhancement of document images | |
US5157740A (en) | Method for background suppression in an image data processing system | |
EP1269394B1 (en) | Improved method for image binarization | |
CN113177915B (en) | Tibial plateau back dip angle measuring method and device and storage medium | |
JPS59178872A (en) | Binary-coding system of contrast picture | |
CN111242051B (en) | Vehicle identification optimization method, device and storage medium | |
JPS63205783A (en) | Picture tone discriminating device | |
CN114267035A (en) | Document image processing method and system, electronic device and readable medium | |
JPH10285399A (en) | Binarization method for image | |
JPH10269352A (en) | Image processor and method | |
CN115496778B (en) | Image binarization method and device for improving edge smoothness and storage medium | |
JPH05189610A (en) | Method for binarizing image | |
KR100442114B1 (en) | System for binary coding of image by searching the maximum point of histogram | |
KR100254736B1 (en) | Apparatus and method for 1-dimension local adaptive image binarization | |
JP2853140B2 (en) | Image area identification device | |
JPH01168164A (en) | Picture processing unit | |
JP2604049B2 (en) | Image area judgment method | |
JP2700352B2 (en) | Background noise removal binarization processing device | |
JPS58169294A (en) | Density control processing system | |
JPS59133774A (en) | Adaptive quantizing circuit | |
JP2943303B2 (en) | Image binarization method | |
JPS63157288A (en) | Binarization threshold determination system | |
JP3002191B1 (en) | How to extract patterns from crafts | |
JPS6091484A (en) | Picture processor |