JP3043040B2 - Image binarization method - Google Patents

Image binarization method

Info

Publication number
JP3043040B2
JP3043040B2 JP2218369A JP21836990A JP3043040B2 JP 3043040 B2 JP3043040 B2 JP 3043040B2 JP 2218369 A JP2218369 A JP 2218369A JP 21836990 A JP21836990 A JP 21836990A JP 3043040 B2 JP3043040 B2 JP 3043040B2
Authority
JP
Japan
Prior art keywords
density
value
output
pixel
image
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.)
Expired - Fee Related
Application number
JP2218369A
Other languages
Japanese (ja)
Other versions
JPH04100483A (en
Inventor
和弘 石川
節正 広垣
秀一 藤倉
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 JP2218369A priority Critical patent/JP3043040B2/en
Publication of JPH04100483A publication Critical patent/JPH04100483A/en
Application granted granted Critical
Publication of JP3043040B2 publication Critical patent/JP3043040B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ファクシミリ等の通信機器や、複写機、文
書画像データベース入力装置等において、文書画像等を
2値化して2値画像を得る画像2値化方法に関するもの
である。
Description: BACKGROUND OF THE INVENTION The present invention relates to an image for obtaining a binary image by binarizing a document image or the like in a communication device such as a facsimile, a copying machine, a document image database input device, or the like. It relates to a binarization method.

(従来の技術) 従来、このような分野の技術としては、例えば特開昭
61−103372号公報に記載されるものがあった。以下、そ
の構成を図を用いて説明する。
(Prior Art) Conventionally, technologies in such a field include, for example,
There was one described in JP-A-61-103372. Hereinafter, the configuration will be described with reference to the drawings.

第2図は、前記文献に記載された従来の画像2値化方
法を用いた画像2値化装置の一構成例を示すブロック図
である。
FIG. 2 is a block diagram showing an example of the configuration of an image binarization apparatus using the conventional image binarization method described in the above-mentioned document.

この画像2値化装置は写真等の中間調濃度の画素(網
点)を含む多値画像を最適2値化して2値画像を得るも
ので、クロックパルスCLKに同期して動作する前画素記
憶回路1、前々画素記憶回路2及び真上画素記憶回路3
を備えている。さらに、これらの記憶回路1,2,3の出力
側には、比較判定処理部10が接続されると共に、平滑化
回路20が接続され、その平滑化回路20の出力側が比較器
21に接続されている。比較器21の出力側は比較判定処理
部10に接続され、その比較判定処理部10の出力側が符号
化回路22に接続されている。比較判定処理部10は、決定
回路11,12,13とその出力側に接続された論理回路14と
で、構成されている。
This image binarization device obtains a binary image by optimally binarizing a multivalued image including halftone density pixels (dots) such as a photograph, and stores a previous pixel which operates in synchronization with a clock pulse CLK. Circuit 1, pre-pixel storage circuit 2, and pixel storage circuit 3 directly above
It has. Further, the output side of these storage circuits 1, 2, 3 is connected to a comparison / determination processing unit 10 and a smoothing circuit 20, and the output side of the smoothing circuit 20 is connected to a comparator.
Connected to 21. The output side of the comparator 21 is connected to the comparison determination processing unit 10, and the output side of the comparison determination processing unit 10 is connected to the encoding circuit 22. The comparison / determination processing unit 10 includes decision circuits 11, 12, and 13 and a logic circuit 14 connected to its output side.

この種の画像2値化装置を用いた画像2値化方法で
は、画素の濃度INが入力されると、前画素記憶回路1、
前々画素記憶回路2及び真上画素記憶回路3に記憶され
た注目する画素の濃度とその近傍の画素の濃度との差分
値に従い、比較判定処理部10内の決定回路11〜13によ
り、注目する画素を近傍の画素対応に白、黒、及び不明
に分類して論理回路14に入力する。
In the image binarization method using this type of image binarization device, when a pixel density IN is input, the previous pixel storage circuit 1
According to the difference value between the density of the pixel of interest stored in the pixel storage circuit 2 immediately before and the pixel storage circuit 3 immediately before and the density of the pixel in the vicinity thereof, the determination circuits 11 to 13 in the comparison determination processing unit 10 determine The corresponding pixels are classified into white, black, and unknown according to the neighboring pixels and input to the logic circuit 14.

一方、注目する画素の濃度とその近傍の画素の濃度と
を平滑化回路20で平滑した濃度は、閾値THを入力する比
較器21により、ディザ(dither)化して比較判定処理部
10内の論理回路14に入力される。
On the other hand, the density obtained by smoothing the density of the pixel of interest and the density of pixels in the vicinity thereof by the smoothing circuit 20 is converted to dither by the comparator 21 that inputs the threshold value TH, and is compared and processed by the comparison determination processing unit.
Input to the logic circuit 14 in 10.

論理回路14は、決定回路11〜13の出力に黒がある時
は、注目画素の2値化出力として黒を出力し、決定回路
11〜13の出力に黒が全くなく、白がある時は注目画素の
2値化出力として白を出力する。また、論理回路14は、
決定回路11〜13の出力が、全て不明の時は比較器21の出
力を、注目画素の2値化出力として出力する。この論理
回路14の出力は、符号化回路22で符号化されて出力(OU
T)される。
When there is black in the output of the decision circuits 11 to 13, the logic circuit 14 outputs black as the binarized output of the pixel of interest,
When there is no black in the outputs 11 to 13 and there is white, white is output as the binarized output of the target pixel. Also, the logic circuit 14
When the outputs of the decision circuits 11 to 13 are all unknown, the output of the comparator 21 is output as a binarized output of the target pixel. The output of the logic circuit 14 is encoded by an encoding circuit 22 and output (OU
T) is done.

第3図は、第2図における比較判定処理部10の動作を
説明するフローチャートである。
FIG. 3 is a flowchart for explaining the operation of the comparison / determination processing unit 10 in FIG.

決定回路11〜13及び論理回路14からなる比較判定処理
部10では、第3図に示すように、ステップS1で注目画素
M0と周辺画素M1〜M3の画素濃度値を入力する。ステップ
S2では、周辺画素M1〜M3の濃度値の中で最も高い濃度値
から注目画素M0の濃度値をひいた濃度差値をAwとし、ま
た注目画素M0の濃度値から周辺画素M1〜M3の濃度値の中
で最も低い濃度値をひいた濃度差値をAbとする。そし
て、ステップS3では、ステップS2で求めた濃度差値Abの
値が閾値αより大きければ、ステップS5で注目画素の2
値化出力として黒を出力する。
As shown in FIG. 3, the comparison and determination processing unit 10 including the decision circuits 11 to 13 and the logic circuit 14
The pixel density values of M0 and the peripheral pixels M1 to M3 are input. Steps
In S2, the density difference value obtained by subtracting the density value of the target pixel M0 from the highest density value among the density values of the peripheral pixels M1 to M3 is Aw, and the density value of the peripheral pixels M1 to M3 is calculated from the density value of the target pixel M0. Ab is the density difference value obtained by subtracting the lowest density value from the values. Then, in step S3, if the value of the density difference value Ab obtained in step S2 is larger than the threshold value α, in step S5, 2
Outputs black as a quantified output.

また、ステップS3において、ステップS2で求めた濃度
差値Abの値が閾値より小さい場合、ステップS4において
濃度差値Awと閾値βとの比較を行なう。ステップS2で求
めた濃度差値Awの値が閾値βより大きければ、ステップ
S6において注目画素の2値化出力として白を出力し、ま
たステップS2で求めた濃度差値Abの値が閾値αより小さ
く、濃度差値Awの値が閾値βより小さい時には、ステッ
プS7で比較器21の出力を注目画素の2値化出力として出
力する。
If the value of the density difference value Ab obtained in step S2 is smaller than the threshold value in step S3, the density difference value Aw is compared with the threshold value β in step S4. If the value of the density difference value Aw obtained in step S2 is larger than the threshold value β,
In step S6, white is output as the binarized output of the target pixel. When the value of the density difference value Ab obtained in step S2 is smaller than the threshold value α and the value of the density difference value Aw is smaller than the threshold value β, the comparison is performed in step S7. The output of the unit 21 is output as a binarized output of the pixel of interest.

(発明が解決しようとする課題) しかしながら、上記の画像2値化方法では、次のよう
な課題があった。
(Problems to be solved by the invention) However, the above-described image binarization method has the following problems.

第4図(a)〜(c)は、従来技術の問題点を説明す
る図であり、同図(a)は原画像、同図(b)は読取画
像、及び同図(c)は出力画像をそれぞれ示している。
4 (a) to 4 (c) are diagrams for explaining the problems of the prior art, wherein FIG. 4 (a) is an original image, FIG. 4 (b) is a read image, and FIG. 4 (c) is an output. Each image is shown.

従来の画像2値化方法では、例えば第4図(a)に示
す原画像に対して同図に示す読取走査画素DAに従い読み
取った場合、その各画素に対する濃度の関係が第4図
(b)に示すようになる。第4図(b)において、特に
文字パタン色(黒)PBと背景パタン色(白)PWとの境の
画素の濃度は第4図(b)中のL1〜L4に示すように、黒
Bと白Wの中間の値をとるような濃度値(中間濃度値)
となる。そして、その読取画像(濃度差A,B,C,Dはいず
れも閾値α,βよりも大きい)に対して従来の画像2値
化方法を用いて2値化を行なうと、L1〜L4のように中間
濃度値を持つ画素については、第4図(c)に示すよう
に、全て注目画素の2値化出力が黒といった出力画像が
得られ、原画像に比べ黒くつぶれた、原画像とは大きく
異なった出力画像になってしまい、必ずしも視覚的に了
解度(画品質)が向上するものとはいえず、それを解決
することが困難であった。
In the conventional image binarization method, for example, when the original image shown in FIG. 4A is read in accordance with the read scanning pixels DA shown in FIG. 4, the density relationship for each pixel is shown in FIG. It becomes as shown in. In FIG. 4 (b), in particular, the density of the pixel at the boundary between the character pattern color (black) PB and the background pattern color (white) PW is indicated by L1 to L4 in FIG. 4 (b). Density value (intermediate density value) that takes an intermediate value between white and white W
Becomes When the read image (the density differences A, B, C, and D are all larger than the threshold values α and β) is binarized using a conventional image binarization method, L1 to L4 As shown in FIG. 4 (c), for the pixels having the intermediate density values, an output image in which the binarized output of all the target pixels is black is obtained. Results in greatly different output images, and does not necessarily improve visual intelligibility (image quality), and it has been difficult to solve them.

本発明は、前記従来技術が持っていた課題を解決し、
例えば、網点と文字が混在した画像を2値化する際に、
従来のように網点の2値化だけでなく、文字の2値化を
も考慮した画像2値化方法を提供するものである。
The present invention solves the problems of the prior art,
For example, when binarizing an image in which halftone dots and characters are mixed,
An object of the present invention is to provide an image binarization method that takes into consideration not only binarization of halftone dots but also binarization of characters as in the related art.

(課題を解決するための手段) 本発明は前記課題を解決するために、中間調濃度の画
素を含む画像の濃度信号を入力し、注目画素の濃度及び
その周辺画素の濃度と、前記注目画素の濃度及びその周
辺画素の濃度を平滑化した後にディザ化したディザ化出
力とに基づき、比較判定処理を行なって前記注目画素の
白黒を決定し、その決定結果に応じた2値化出力を出力
する画像2値化方法において、前記比較判定処理で次の
ような処理を行なうようにしている。
(Means for Solving the Problems) In order to solve the above-mentioned problems, the present invention is to input a density signal of an image including a pixel of halftone density, and to obtain the density of a target pixel and the density of surrounding pixels. And a dithered output obtained by smoothing the density of the surrounding pixels and the dithered pixel, and performing a comparison determination process to determine the black and white of the target pixel, and outputs a binary output according to the determination result. In the image binarization method, the following processing is performed in the comparison determination processing.

即ち、前記比較判定処理では、前記注目画素の濃度値
から前記周辺画素の濃度値の中で最も低い値をひいた濃
度差値Abと、前記周辺画素の濃度値の中で最も高い値か
ら前記注目画素の濃度値をひいた濃度差値Awと、閾値Tz
とを比較し、Ab>Tz及びAw≦Tz、あるいはAb>Tz、Aw>
Tz及びAb>Awの場合、前記注目画素の2値化出力として
黒を出力し、Ab≦Tz及びAw>Tz、あるいはAb>Tz、Aw>
Tz及びAb≦Awの場合、前記注目画素の2値化出力として
白を出力し、Ab≦Tz及びAw≦Tzの場合、前記ディザ化出
力を前記注目画素の2値化出力として出力するようにし
ている。
That is, in the comparison determination processing, the density difference value Ab obtained by subtracting the lowest value among the density values of the peripheral pixels from the density value of the target pixel, and the density difference value Ab obtained from the highest density value of the peripheral pixels. The density difference value Aw obtained by subtracting the density value of the pixel of interest and the threshold Tz
Ab> Tz and Aw ≦ Tz, or Ab> Tz, Aw>
In the case of Tz and Ab> Aw, black is output as the binarized output of the target pixel, and Ab ≦ Tz and Aw> Tz, or Ab> Tz, Aw>
When Tz and Ab ≦ Aw, white is output as the binarized output of the target pixel, and when Ab ≦ Tz and Aw ≦ Tz, the dithered output is output as the binarized output of the target pixel. ing.

(作 用) 本発明によれば、以上のように画像2値化方法を構成
したので、注目画素の白黒を決定する比較判定処理で
は、注目画素の濃度値から周辺画素の濃度値の中で最も
低い値をひいた濃度差値Abが閾値Tzよりも大きく、かつ
周辺画素の濃度値の中で最も高い値から注目画素の濃度
値をひいた濃度差値Awが閾値Tzよりも小さければ、ある
いはAbの値が閾値Tzよりも大きく、Awの値が閾値Tzより
も大きく、かつAbの値がAwの値より大きければ注目画素
の2値化出力として黒を出力する。Abの値が閾値Tzより
小さく、かつAwの値が閾値Tzより大きければ、あるいは
Abの値が閾値Tzより大きく、Awの値が閾値Tzより大き
く、かつAbの値がAwの値より小さければ、注目画素の2
値化出力として白を出力する。また、Abの値が閾値Tzよ
り小さく、かつAwの値が閾値Tzより小さければ、ディザ
化出力を注目画素の2値化出力として出力する。
(Operation) According to the present invention, since the image binarization method is configured as described above, in the comparison / determination processing for determining the black and white of the pixel of interest, the density value of the pixel of interest is calculated based on the density value of the peripheral pixel. If the density difference value Ab obtained by subtracting the lowest value is larger than the threshold value Tz, and the density difference value Aw obtained by subtracting the density value of the target pixel from the highest value among the density values of the peripheral pixels is smaller than the threshold value Tz, Alternatively, if the value of Ab is larger than the threshold Tz, the value of Aw is larger than the threshold Tz, and the value of Ab is larger than the value of Aw, black is output as the binarized output of the target pixel. If the value of Ab is smaller than the threshold Tz and the value of Aw is larger than the threshold Tz, or
If the value of Ab is larger than the threshold Tz, the value of Aw is larger than the threshold Tz, and the value of Ab is smaller than the value of Aw, 2
Outputs white as a value output. If the value of Ab is smaller than the threshold value Tz and the value of Aw is smaller than the threshold value Tz, the dithered output is output as the binarized output of the target pixel.

つまり、従来の方法では、注目画素の白黒を決定する
比較判定処理において、例えば、網点の画像を最適化す
るために、中間濃度値を持つ画素については全て注目画
素の2値化出力を黒としていた。これに対して本発明で
は、例えば、網点に加えて文字をも最適2値化するため
に、中間濃度値を持つ画素について、さらにより黒に近
い画素なのか、あるいは白に近い画素なのかを判定し、
前者の場合は注目画素の2値化出力を黒とし、後者の場
合は注目画素の2値化出力を白とする。これにより、よ
り原画像に近い、視覚的に了解度が向上する出力画像が
得られる。従って、前記課題を解決できるのである。
In other words, in the conventional method, in the comparison determination processing for determining the black and white of the pixel of interest, for example, in order to optimize the image of the halftone dot, the binarized output of the pixel of interest is blacked out for all pixels having intermediate density values. And had On the other hand, in the present invention, for example, in order to optimally binarize a character in addition to a halftone dot, whether a pixel having an intermediate density value is a pixel closer to black or a pixel closer to white Judge,
In the former case, the binarized output of the target pixel is black, and in the latter case, the binarized output of the target pixel is white. As a result, an output image closer to the original image and having visually improved intelligibility can be obtained. Therefore, the above problem can be solved.

(実施例) 第1図は本発明の実施例を示す画像2値化方法におけ
る比較判定処理のフローチャート、及び第5図は本発明
の実施例を示す画像2値化方法を用いた画像2値化装置
の構成ブロック図である。
(Embodiment) FIG. 1 is a flowchart of a comparison / determination process in an image binarization method according to an embodiment of the present invention, and FIG. 5 is an image binary image using the image binarization method according to an embodiment of the present invention. It is a block diagram of a structure of a conversion apparatus.

先ず、第5図の画像2値化装置の構成を説明する。こ
の画像2値化装置は、写真等の中間調濃度の画素(網
点)を含む多値画像を最適2値化して2値画像を得るも
ので、クロックパルスCLKに同期して動作する前画素記
憶回路31、前々画素記憶回路32及び真上画素記憶回路33
を備えている。前画素記憶回路31は、画素の濃度INを入
力し、前画素の濃度を記憶する回路、前々画素記憶回路
32は前々画素の濃度を記憶する回路、及び真上画素記憶
回路33は現在注目している画素の真上に位置する画素の
濃度を記憶する回路である。これらの記憶回路31〜33の
出力側には、比較判定処理部40が接続されると共に平滑
化回路50が接続され、その平滑化回路50が比較器51を介
して比較判定処理部40へ入力されている。
First, the configuration of the image binarization device shown in FIG. 5 will be described. This image binarization device obtains a binary image by optimally binarizing a multivalued image including halftone density pixels (halftone dots) such as a photograph, and obtains a binary image in synchronization with a clock pulse CLK. Storage circuit 31, pre-pre-pixel storage circuit 32 and directly above pixel storage circuit 33
It has. The previous pixel storage circuit 31 is a circuit that receives the density IN of the pixel and stores the density of the previous pixel,
Reference numeral 32 denotes a circuit for storing the density of the pixel before the previous pixel, and a pixel storage circuit 33 directly above stores a density of a pixel located immediately above the pixel of interest. The output side of these storage circuits 31 to 33 is connected to a comparison / determination processing unit 40 and a smoothing circuit 50, and the smoothing circuit 50 is input to the comparison / determination processing unit 40 via a comparator 51. Have been.

比較判定処理部40は、濃度IN及び記憶回路31〜33の出
力に対する比較を行なう比較器41−1,41−2を備え、そ
の出力側には差分演算を行なう差分器42−1,42−2が接
続されている。さらに、差分器42−1,42−2の出力側に
は、閾値Tzを入力して比較処理等を行なう比較器43−1
〜43−3が接続され、さらにその比較器43−1〜43−3
の出力側に論理回路44が接続されている。
The comparison / determination processing unit 40 includes comparators 41-1 and 41-2 for comparing the density IN and the output of the storage circuits 31 to 33, and on the output side, differentiators 42-1 and 42- for performing a difference operation. 2 are connected. Further, the output side of the differentiators 42-1 and 42-2 receives the threshold value Tz and performs a comparison process or the like on the comparator 43-1.
To the comparators 43-1 to 43-3.
The logic circuit 44 is connected to the output side of the.

平滑化回路50は、濃度IN及び記憶回路31〜33の出力に
基づき画素濃度の平滑化を行なう回路であり、さらにそ
の出力側に接続された比較器51は、平滑化回路50の出力
を閾値THを用いてディザ化してそのディザ化した出力を
論理回路44へ与える回路である。
The smoothing circuit 50 is a circuit for smoothing the pixel density based on the density IN and the outputs of the storage circuits 31 to 33, and a comparator 51 connected to the output side of the smoothing circuit 50 sets the output of the smoothing circuit 50 to a threshold value. This circuit dithers using TH and supplies the dithered output to the logic circuit 44.

論理回路44の出力側には、その論理回路出力を符号化
して出力(OUT)する符号化回路52が接続されている。
The output side of the logic circuit 44 is connected to an encoding circuit 52 for encoding the logic circuit output and outputting (OUT).

このような画像2値化装置を用いた本実施例の画像2
値化方法について説明する。
Image 2 of the present embodiment using such an image binarization device
A method of converting the value will be described.

画素の濃度INが入力されると、前々画素記憶回路32及
び真上画素記憶回路33に記憶された周辺画素の濃度値に
対し、比較判定処理部40内の比較器41−1,41−2によ
り、周辺画素の濃度値の中から最も高い値と、最も低い
値を求めて差分器42−1,42−2にそれぞれ入力する。差
分器42−1,42−2は、比較器41−1,41−2の出力値と、
前画素記憶回路31に記憶された注目画素の濃度値との差
分をとり、その差分値を比較器43−1〜43−3に入力す
る。
When the density IN of the pixel is input, the comparators 41-1 and 41- in the comparison determination processing unit 40 compare the density values of the peripheral pixels stored in the pixel storage circuit 32 and the pixel storage circuit 33 immediately before. According to 2, the highest value and the lowest value are obtained from the density values of the peripheral pixels and input to the differentiators 42-1 and 42-2, respectively. The differentiators 42-1 and 42-2 output values of the comparators 41-1 and 41-2,
The difference from the density value of the target pixel stored in the previous pixel storage circuit 31 is obtained, and the difference value is input to the comparators 43-1 to 43-3.

比較器43−1〜43−3は、差分器42−1,42−2から出
力された各差分値と、入力された閾値Tzとを比較し、ま
た差分器42−1から出力された差分値と差分器42−2か
ら出力された差分値とを比較し、その結果得られた大小
の判定結果を論理回路44に入力する。
The comparators 43-1 to 43-3 compare the respective difference values output from the differentiators 42-1 and 42-2 with the input threshold Tz, and compare the difference values output from the differentiator 42-1. The value is compared with the difference value output from the differentiator 42-2, and the magnitude determination result obtained as a result is input to the logic circuit 44.

一方、注目画素の濃度とその近傍の周辺画素の濃度と
を平滑化回路50で平滑し、その平滑化した濃度を比較器
51へ与える。比較器51は、入力した閾値THを用いて平滑
化回路50の出力をディザ化して論理回路44に入力する。
On the other hand, the density of the target pixel and the density of peripheral pixels in the vicinity thereof are smoothed by a smoothing circuit 50, and the smoothed density is compared with a comparator.
Give to 51. The comparator 51 dithers the output of the smoothing circuit 50 using the input threshold value TH and inputs the dithered signal to the logic circuit 44.

論理回路44は、比較器43−1〜43−3から出力された
各判定結果と、比較器51の出力値とを参照し、注目画素
の2値化出力を白にするか、黒にするかを判定してその
判定結果を出力する。この論理回路44の出力は、符号化
回路52で符号化されて出力(OUT)される。
The logic circuit 44 refers to each determination result output from the comparators 43-1 to 43-3 and the output value of the comparator 51, and makes the binarized output of the target pixel white or black. And outputs the result of the determination. The output of the logic circuit 44 is encoded by the encoding circuit 52 and output (OUT).

次に、本実施例の特徴である比較判定処理部40におけ
る比較判定処理を、第1図を参照しつつ説明する。
Next, the comparison / determination processing in the comparison / determination processing unit 40, which is a feature of the present embodiment, will be described with reference to FIG.

比較判定処理部40における比較器41−1,41−2、差分
器42−1,42−2による処理では、先ずステップS11で注
目画素M0と周辺画素M1〜M3の画素濃度値を入力する。そ
してステップS12では、周辺画素M1〜M3の濃度値の中で
最も高い濃度値から注目画素M0の濃度値をひいた濃度差
値をAwとし、また注目画素M0の濃度値から周辺画素M1〜
M3の濃度値の中で最も低い濃度値をひいた濃度差値をAb
として比較器43−1〜43−3に入力する。
In the processing by the comparators 41-1 and 41-2 and the differentiators 42-1 and 42-2 in the comparison determination processing unit 40, first, in step S11, the pixel density value of the target pixel M0 and the peripheral pixels M1 to M3 is input. In step S12, the density difference value obtained by subtracting the density value of the target pixel M0 from the highest density value among the density values of the peripheral pixels M1 to M3 is set to Aw, and the density difference value of the target pixel M0 is set to Aw.
Ab is the density difference value obtained by subtracting the lowest density value among the M3 density values.
Is input to the comparators 43-1 to 43-3.

比較器43−1〜43−3による処理では、ステップS12
で求めた濃度差値Ab,Awの値と入力された閾値Tzとをス
テップS13〜S15でそれぞれ比較し、またステップS16で
濃度差値Abの値とAwの値を比較し、その結果得られた大
小の判定結果を論理回路44に入力する。
In the processing by the comparators 43-1 to 43-3, step S12
In steps S13 to S15, the values of the density difference values Ab and Aw and the input threshold value Tz obtained in step S13 to S15 are compared, and the value of the density difference value Ab and the value of Aw are compared in step S16. The result of the judgment is input to the logic circuit 44.

論理回路44による処理では、ステップS13において、
比較器43−1〜43−3の比較結果に基づき、ステップS1
2で求めた濃度差値Abの値が閾値Tzより大きければ、ス
テップS14へ移る。ステップS14では、ステップS12で求
めた濃度差値Abの値が閾値Tzより大きければ、ステップ
S16において濃度差値Abの値とAwの値とを比較する。濃
度差値Abの値の方が大きい時には、ステップS17におい
て注目画素の2値化出力として黒を出力する。これに対
して濃度差値Awの値の方が大きい時には、ステップS18
において注目画素の2値化出力として白を出力する。
In the process by the logic circuit 44, in step S13,
Based on the comparison results of the comparators 43-1 to 43-3, step S1
If the value of the density difference value Ab obtained in step 2 is larger than the threshold value Tz, the process proceeds to step S14. In step S14, if the value of the density difference value Ab obtained in step S12 is larger than the threshold Tz,
In S16, the value of the density difference value Ab is compared with the value of Aw. If the value of the density difference value Ab is larger, black is output as the binarized output of the target pixel in step S17. On the other hand, when the value of the density difference value Aw is larger, step S18
Outputs white as a binarized output of the pixel of interest.

また、比較器43−1〜43−3の比較結果に基づき、ス
テップS14において濃度差値Awの値が閾値Tzより小さけ
れば、ステップS19において注目画素の2値化出力とし
て黒を出力する。
If the value of the density difference value Aw is smaller than the threshold value Tz in step S14 based on the comparison result of the comparators 43-1 to 43-3, black is output as the binarized output of the target pixel in step S19.

比較器43−1〜43−3の比較結果に基づき、ステップ
S13で濃度差値Abの値が閾値Tzより小さければ、ステッ
プS15へ移る。ステップS15では、ステップS12で求めた
濃度差値Awの値が閾値Tzより大きければ、ステップS20
において注目画素の2値化出力として白を出力する。こ
れに対してステップS15で濃度差値Awの値が閾値Tzより
小さければ、ステップS21において比較器51の出力(デ
ィザ化出力)を注目画素の2値化出力として出力する。
On the basis of the comparison result of the comparators 43-1 to 43-3, step
If the value of the density difference value Ab is smaller than the threshold value Tz in S13, the process proceeds to step S15. In Step S15, if the value of the density difference value Aw obtained in Step S12 is larger than the threshold Tz, Step S20
Outputs white as a binarized output of the pixel of interest. On the other hand, if the value of the density difference value Aw is smaller than the threshold value Tz in step S15, the output (dithered output) of the comparator 51 is output as the binarized output of the target pixel in step S21.

本実施例では、次のような利点を有している。 This embodiment has the following advantages.

第6図(a)〜(c)は、本実施例の効果を説明する
図であり、同図(a)は原画像、同図(b)は読取画
像、及び同図(c)は出力画像を示す。
6 (a) to 6 (c) are diagrams for explaining the effect of the present embodiment. FIG. 6 (a) is an original image, FIG. 6 (b) is a read image, and FIG. An image is shown.

例えば、第6図(a)に示す原画像に対して同図に示
す読取走査画素DAに従い読み取った場合、その各画素に
対する濃度の関係が第6図(b)に示すようになる。第
6図(b)において、特に文字パタン色(黒)PBと背景
パタン色(白)PWとの境の画素の濃度は、l1〜l4に示す
ように、黒Bと白Wの中間の値をとるような濃度値(中
間濃度値)となり、その読取画像(濃度差a,b,c,d)は
いずれも閾値Tzよりも大きい)に対し、本実施例の方法
を用いて2値化を行なうと、第6図(C)に示すように
なる。第6図(c)に示すように、第6図(b)のl1〜
l4のように中間濃度値を持つ画素について、l1やl3のよ
うに、より黒に近い画素は注目画素の2値化出力として
黒を出力し、l2やl4のように、より白に近い画素は注目
画素の2値化出力として白を出力する。そのため、より
原画像に近い、視覚的に了解度(画品質)が向上する出
力画像を得ることができる。
For example, when the original image shown in FIG. 6A is read in accordance with the read scanning pixels DA shown in FIG. 6, the relationship of the density for each pixel is as shown in FIG. 6B. In FIG. 6B, in particular, the density of the pixel at the boundary between the character pattern color (black) PB and the background pattern color (white) PW is an intermediate value between black B and white W as indicated by l1 to l4. , And the read image (density differences a, b, c, and d are all larger than the threshold value Tz) is binarized using the method of this embodiment. Is performed as shown in FIG. 6 (C). As shown in FIG. 6 (c), as shown in FIG.
For pixels with intermediate density values such as l4, pixels that are closer to black, such as l1 and l3, output black as the binarized output of the pixel of interest, and pixels that are closer to white, such as l2 and l4. Outputs white as the binarized output of the pixel of interest. Therefore, it is possible to obtain an output image closer to the original image and having visually improved intelligibility (image quality).

さらに、第1図のステップS16では、ステップS12で求
めた濃度差値Aw,Abを用いてこのAw,Abの大小を比較して
いる。そのため、他の比較要素を求める必要がないの
で、その分、演算処理を簡潔にしたり、演算速度を向上
させたりすることが可能になる。
Further, in step S16 of FIG. 1, the magnitudes of Aw and Ab are compared using the density difference values Aw and Ab obtained in step S12. Therefore, since it is not necessary to obtain another comparison element, it is possible to simplify the operation processing and improve the operation speed accordingly.

なお、本発明は上記実施例に限定されず、種々の変形
が可能である。その変形例としては、例えば次のような
ものがある。
Note that the present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications.

(i) 第5図において、比較器43−1と43−3に入力
する閾値Tzの値を、比較器43−1に入力する閾値をTz
1、比較器43−3に入力する閾値をTz2と、別々に入力す
るようにしても、上記実施例と同様の効果が得られる。
(I) In FIG. 5, the threshold value Tz input to the comparators 43-1 and 43-3 is represented by Tz, and the threshold value input to the comparator 43-1 is represented by Tz.
1. Even if the threshold value input to the comparator 43-3 is input separately from Tz2, the same effect as in the above embodiment can be obtained.

(ii) 第1図の比較判定処理を実現する回路構成は、
第5図の回路に限定されず、その回路を他の構成に変形
したり、あるいはその回路の各ブロックを個別回路で構
成する以外に、マイクロコンピュータ等のプログラム制
御等によって実行する構成にしても良い。
(Ii) The circuit configuration for realizing the comparison / determination processing in FIG.
The circuit is not limited to the circuit shown in FIG. 5, but may be modified to another configuration, or may be configured to be executed by program control of a microcomputer or the like in addition to configuring each block of the circuit as an individual circuit. good.

(発明の効果) 以上詳細に説明したように、本発明によれば、比較判
定処理において次のような処理を行なっている。注目画
素の濃度値から周辺画素の濃度値の中で最も低い値をひ
いた濃度差値Abが閾値Tzよりも大きく、かつ周辺画素の
濃度値の中で最も高い値から注目画素の濃度値をひいた
濃度差値Awが閾値Tzよりも小さければ、あるいはAbの値
が閾値Tzよりも大きく、Awの値が閾値Tzよりも大きく、
かつAbの値がAwの値より大きければ、注目画素の2値化
出力として黒を出力する。Abの値が閾値Tzより小さく、
かつAwの値が閾値Tzより大きければ、あるいはAbの値が
閾値Tzより大きく、Awの値が閾値Tzより大きく、かつAb
の値がAwの値より小さければ、注目画素の2値化出力と
して白を出力する。また、Abの値が閾値Tzより小さく、
かつAwの値が閾値Tzより小さければ、ディザ化出力を注
目画素の2値化出力として出力するようにした。
(Effects of the Invention) As described in detail above, according to the present invention, the following processing is performed in the comparison determination processing. The density difference value Ab obtained by subtracting the lowest value of the density values of the peripheral pixels from the density value of the target pixel is larger than the threshold value Tz, and the density value of the target pixel is calculated from the highest value of the density values of the peripheral pixels. If the subtracted density difference value Aw is smaller than the threshold Tz, or the value of Ab is larger than the threshold Tz, the value of Aw is larger than the threshold Tz,
If the value of Ab is larger than the value of Aw, black is output as the binarized output of the target pixel. Ab is less than the threshold Tz,
And if the value of Aw is greater than the threshold Tz, or the value of Ab is greater than the threshold Tz, the value of Aw is greater than the threshold Tz, and Ab
Is smaller than the value of Aw, white is output as the binarized output of the target pixel. Further, the value of Ab is smaller than the threshold Tz,
If the value of Aw is smaller than the threshold value Tz, the dithered output is output as the binarized output of the target pixel.

そのため、中間濃度値を持つ画素については、より黒
に近い画素なのか、あるいは白に近い画素なのかが判定
され、前者の場合は注目画素の2値化出力として黒が、
後者の場合には注目画素の2値化出力として白が出力さ
れる。
Therefore, it is determined whether the pixel having the intermediate density value is a pixel closer to black or a pixel closer to white. In the former case, black is output as a binarized output of the target pixel.
In the latter case, white is output as the binarized output of the target pixel.

このように、本発明では、濃度差値Awと閾値Tzとを比
較すると共に、濃度差値AbとAwとを比較するようにして
いるので、例えば、網点と文字が混在した画像を2値化
した場合に、黒くつぶれることはなくなり、より原画像
に近い、視覚的に了解度(画品質)が向上する出力画像
が簡単かつ的確に得られる。
As described above, according to the present invention, the density difference value Aw is compared with the threshold value Tz, and the density difference values Ab and Aw are compared. In this case, the image is not blackened, and an output image closer to the original image and having visually improved intelligibility (image quality) can be obtained easily and accurately.

さらに、本発明では、一度求めた濃度差値Aw,Abを用
いてAb>Awの大小比較を行なっている。そのため、他の
比較要素を求める必要がないので、その分、演算処理を
簡潔にしたり、演算速度を向上させたりすることが可能
になる。
Further, in the present invention, the magnitude difference Ab> Aw is compared using the density difference values Aw and Ab once obtained. Therefore, since it is not necessary to obtain another comparison element, it is possible to simplify the operation processing and improve the operation speed accordingly.

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

第1図は本発明の実施例を示す画像2値化方法における
比較判定処理のフローチャート、第2図は従来の画像2
値化方法を用いた画像2値化装置の構成ブロック図、第
3図は第2図の比較判定処理のフローチャート、第4図
(a)〜(c)は従来技術の問題点を説明する図、第5
図は本発明の実施例を示す画像2値化方法を用いた画像
2値化装置の構成ブロック図、第6図(a)〜(c)は
本発明の実施例の効果を説明する図である。 31……前画素記憶回路、32……前々画素記憶回路、33…
…真上画素記憶回路、40……比較判定処理部、41−1,41
−2,43−1〜43−3……比較器、42−1,42−2……差分
器、44……論理回路、50……平滑化回路、51……比較
器、52……符号化回路。
FIG. 1 is a flowchart of a comparison / determination process in an image binarization method according to an embodiment of the present invention, and FIG.
FIG. 3 is a block diagram of a configuration of an image binarizing apparatus using a binarizing method, FIG. 3 is a flowchart of a comparison / determination process in FIG. 2, and FIGS. 4 (a) to 4 (c) are diagrams for explaining problems of the prior art. , Fifth
FIG. 6 is a block diagram showing a configuration of an image binarizing apparatus using an image binarizing method according to an embodiment of the present invention. FIGS. 6A to 6C are diagrams for explaining effects of the embodiment of the present invention. is there. 31 ... Previous pixel storage circuit, 32 ... Prior pixel storage circuit, 33 ...
... Directly above pixel storage circuit, 40... Comparison judgment processing section, 41-1, 41
-2,43-1 to 43-3 ... Comparator, 42-1,42-2 ... Differentiator, 44 ... Logic circuit, 50 ... Smoothing circuit, 51 ... Comparator, 52 ... Code Circuit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】中間調濃度の画素を含む画像の濃度信号を
入力し、注目画素の濃度及びその周辺画素の濃度と、前
記注目画素の濃度及びその周辺画素の濃度を平滑化した
後にディザ化したディザ化出力とに基づき、比較判定処
理を行なって前記注目画素の白黒を決定し、その決定結
果に応じた2値化出力を出力する画像2値化方法におい
て、 前記比較判定処理では、 前記注目画素の濃度値から前記周辺画素の濃度値の中で
最も低い値をひいた濃度差値Abと、前記周辺画素の濃度
値の中で最も高い値から前記注目画素の濃度値をひいた
濃度差値Awと、閾値Tzとを比較し、 Ab>Tz及びAw≦Tz、あるいはAb>Tz、Aw>Tz及びAb>Aw
の場合、前記注目画素の2値化出力として黒を出力し、 Ab≦Tz及びAw>Tz、あるいはAb>Tz、Aw>Tz及びAb≦Aw
の場合、前記注目画素の2値化出力として白を出力し、 Ab≦Tz及びAw≦Tzの場合、前記ディザ化出力を前記注目
画素の2値化出力として出力することを特徴とする画像
2値化方法。
1. A density signal of an image including a pixel having a halftone density is inputted, and the density of a target pixel and the density of peripheral pixels thereof are smoothed, and the density of the target pixel and the density of peripheral pixels are smoothed. The image binarization method of performing black-and-white determination of the target pixel by performing a comparison determination process based on the obtained dithered output and outputting a binary output according to the determination result. A density difference value Ab obtained by subtracting the lowest value among the density values of the peripheral pixels from the density value of the target pixel, and a density obtained by subtracting the density value of the target pixel from the highest density value of the peripheral pixels. The difference value Aw is compared with the threshold value Tz, and Ab> Tz and Aw ≦ Tz, or Ab> Tz, Aw> Tz and Ab> Aw
In the case of, black is output as a binarized output of the target pixel, and Ab ≦ Tz and Aw> Tz, or Ab> Tz, Aw> Tz and Ab ≦ Aw
, White is output as a binarized output of the pixel of interest, and if Ab ≦ Tz and Aw ≦ Tz, the dithered output is output as a binarized output of the pixel of interest. Value method.
JP2218369A 1990-08-20 1990-08-20 Image binarization method Expired - Fee Related JP3043040B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2218369A JP3043040B2 (en) 1990-08-20 1990-08-20 Image binarization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2218369A JP3043040B2 (en) 1990-08-20 1990-08-20 Image binarization method

Publications (2)

Publication Number Publication Date
JPH04100483A JPH04100483A (en) 1992-04-02
JP3043040B2 true JP3043040B2 (en) 2000-05-22

Family

ID=16718818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2218369A Expired - Fee Related JP3043040B2 (en) 1990-08-20 1990-08-20 Image binarization method

Country Status (1)

Country Link
JP (1) JP3043040B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3077135B2 (en) * 1996-01-31 2000-08-14 花王株式会社 Discharge container

Also Published As

Publication number Publication date
JPH04100483A (en) 1992-04-02

Similar Documents

Publication Publication Date Title
US4817174A (en) Image processing apparatus
JPH06276392A (en) Picture processing unit
JPH10271326A (en) Image processor
JP3043040B2 (en) Image binarization method
JP3043039B2 (en) Image binarization method
JPH10283470A (en) Image processor, image processing method and recording medium
JP2621865B2 (en) Image processing device
JPH0832820A (en) Coder for error spread binary image
US7342688B2 (en) Apparatus for eliminating moire in scanned image and method for the same
JPH0370433B2 (en)
US8259358B2 (en) Apparatus for eliminating moire in scanned image and method for the same
JP2637612B2 (en) Image binarization method
JPS6359272A (en) Picture processor
JP4172399B2 (en) Image processing apparatus and program
JPS60136478A (en) Picture processor
JP3230849B2 (en) Image processing device
JP3043041B2 (en) Image binarization method
JP2716968B2 (en) Color image processing equipment
JPS63288566A (en) Image processor
JP2521744B2 (en) Image processing device
JP3157870B2 (en) Image processing method
JP3043036B2 (en) Image binarization device
JP2853140B2 (en) Image area identification device
JPH09247450A (en) Image processing unit
JP3015050B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees