JPH08163360A - Method and device for picture binarization - Google Patents

Method and device for picture binarization

Info

Publication number
JPH08163360A
JPH08163360A JP6302409A JP30240994A JPH08163360A JP H08163360 A JPH08163360 A JP H08163360A JP 6302409 A JP6302409 A JP 6302409A JP 30240994 A JP30240994 A JP 30240994A JP H08163360 A JPH08163360 A JP H08163360A
Authority
JP
Japan
Prior art keywords
error
signal
pixel
scanning direction
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.)
Pending
Application number
JP6302409A
Other languages
Japanese (ja)
Inventor
Takeshi Kishida
健 岸田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6302409A priority Critical patent/JPH08163360A/en
Publication of JPH08163360A publication Critical patent/JPH08163360A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color, Gradation (AREA)

Abstract

PURPOSE: To provide the picture binarizing device which converts a multilevel picture to a binary picture of high quality where the occurrence of a fixed false image is reduced. CONSTITUTION: A binarizing means 1 of this device binarizes a correction picture signal Sc and obtains the error at this time to output it as an error signal Se . This error signal Se is stored in an error storage means 2. A correction means 3 reads out the error signal Se of picture elements around a noticed picture element from the error storage means 2 and adds this signal to a multilevel picture signal S0 of the noticed picture element to generate the correction picture signal Sc . The correction means 3 periodically charges the picture element, whose error signal Se should be read out, in accordance with the position of the noticed picture element to add this signal. This operation is successively repeated for the other picture elements to obtain a binary picture. Since the position of the picture element whose error signal Se should be taken out is periodically changed, a fixed pattern hardly occurs in the binary picture.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、多値画像を誤差拡散法
により2値化する文書画像ファイリング装置,電子複写
機,ファクシミリ装置等に好適な画像2値化方法及び画
像2値化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image binarization method and an image binarization apparatus suitable for a document image filing apparatus, an electronic copying machine, a facsimile apparatus, etc., which binarizes a multivalued image by an error diffusion method. .

【0002】[0002]

【従来の技術】階調性を有する多値画像の記録には、従
来より、記録が簡単で、安定性に優れている2値記録が
採用されている。
2. Description of the Related Art Binary recording, which is easy to record and excellent in stability, has been conventionally used for recording multivalued images having gradation.

【0003】この2値記録は、原稿を走査して得られた
多値画像を、その画素値に応じて白か黒の2値に変換し
て記録するものである。この2値記録では、中間の階調
に属する画像部分が、記録した際に灰色に見えるよう
に、擬似中間調表現法として公知の誤差拡散法,ディザ
法,濃度パターン法等が用いられている。これらの擬似
中間調表現法のうち誤差拡散法は、他の擬似中間調表現
法に比して階調がなめらかに表現でき、解像度が良好で
あることから、一般に用いられている。
In this binary recording, a multi-valued image obtained by scanning an original is converted into a binary value of white or black according to the pixel value and recorded. In this binary recording, an error diffusion method, a dither method, a density pattern method or the like which is known as a pseudo halftone expression method is used so that an image part belonging to an intermediate gradation looks gray when recorded. . Among these pseudo-halftone expression methods, the error diffusion method is generally used because it can express gradation more smoothly and has better resolution than other pseudo-halftone expression methods.

【0004】この誤差拡散法を画素値が0〜255(黒
=0,白=255とする。)の256階調を持つ場合を
例にして説明する。例えば、「239」の画素値を持つ
多値画像信号を「128」の閾値で2値化すると、
「1」になるが、「1」に対する白の真の画素値「25
5」に対して239−255=−16の誤差が生じる。
誤差拡散法は、この誤差を以降2値化する画素の多値画
像信号に対して分配して加算することにより、広い範囲
で見た場合に、2値画像の平均階調を多値画像の階調に
近づけようとするものである。
This error diffusion method will be described by taking as an example the case where the pixel value has 256 gradations of 0 to 255 (black = 0, white = 255). For example, if a multi-valued image signal having a pixel value of "239" is binarized with a threshold value of "128",
It becomes "1", but the true pixel value of white for "1" is "25".
The error of 239−255 = −16 occurs for “5”.
In the error diffusion method, this error is distributed and added to the multi-valued image signals of pixels to be binarized thereafter, so that the average gradation of the binary image can be compared with that of the multi-valued image in a wide range. It is intended to approach the gradation.

【0005】誤差の分配方法には、多種多様なものがあ
るが、例えば、図3に示すように、ある画素D0 を2値
化するときに、主走査方向A,副走査方向Bの各方向で
前の画素D1 ,D2 の誤差を1/2ずつ加算する方法が
多く用いられている。
There are various kinds of error distribution methods. For example, as shown in FIG. 3, when a certain pixel D 0 is binarized, each of the main scanning direction A and the sub-scanning direction B is determined. A method is often used in which the errors of the previous pixels D 1 and D 2 in the direction are added by ½.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前述し
た従来の誤差の分配方法では、常に同じ位置関係の画素
(図3の例では左の画素D1 と上の画素D2 )の誤差を
加算しているので、2値画像中に一定のパターンが生じ
易く、見た目の画質があまり良くないという問題があっ
た。
However, in the above-described conventional error distribution method, the errors of the pixels having the same positional relationship (the left pixel D 1 and the upper pixel D 2 in the example of FIG. 3) are always added. Therefore, there is a problem that a certain pattern is likely to occur in the binary image, and the image quality of appearance is not so good.

【0007】そこで、本発明は、上記事情に鑑みてなさ
れたものであり、多値画像を一定の偽像の発生の少ない
高品質な2値画像に変換し得る画像2値化方法及び画像
2値化装置を提供することを目的とする。
Therefore, the present invention has been made in view of the above circumstances, and an image binarization method and an image 2 capable of converting a multi-valued image into a high-quality binary image with less occurrence of constant false images. It is an object to provide a quantizer.

【0008】[0008]

【課題を解決するための手段】請求項1記載の画像2値
化方法は、多値画像のうち次に2値化する注目画素の画
素値に、前記注目画素近傍の画素について2値化したと
きの誤差を所定の比率で加算し、その加算後の画素値を
2値化する誤差拡散法により2値画像を得る画像2値化
方法において、前記誤差加算対象の画素を注目画素の位
置に応じて周期的に変更して前記加算を行うことを特徴
とするものである。
An image binarization method according to claim 1, wherein a pixel value of a pixel of interest next to be binarized in a multi-valued image is binarized for a pixel near the pixel of interest. In the image binarization method for obtaining a binary image by an error diffusion method in which the error at the time is added at a predetermined ratio and the pixel value after the addition is binarized, the pixel of the error addition target is set to the position of the target pixel. It is characterized in that the addition is carried out by periodically changing it accordingly.

【0009】請求項2記載の画像2値化装置は、入力さ
れた多値画像信号を基に補正画像信号を生成し、その補
正画像信号を2値化する誤差拡散法により2値画像を得
る画像2値化装置において、前記補正画像信号を所定の
閾値で2値化するとともに、その2値化したときの誤差
を求め誤差信号として出力する2値化手段と、前記誤差
信号を記憶する誤差記憶手段と、次に2値化する注目画
素の多値画像信号に、前記注目画素近傍の画素について
2値化したときの誤差信号を前記誤差記憶手段から読み
出し所定の比率で加算して補正画像信号を生成する手段
であって、誤差信号を読み出す画素を注目画素の位置に
応じて周期的に変更して前記加算を行う補正手段とを有
することを特徴とするものである。
An image binarization apparatus according to a second aspect of the present invention generates a corrected image signal based on the input multi-valued image signal and obtains a binary image by the error diffusion method of binarizing the corrected image signal. In the image binarization device, the correction image signal is binarized by a predetermined threshold value, a binarization unit that obtains an error when binarizing the corrected image signal and outputs the error signal, and an error that stores the error signal. A correction image is obtained by reading the error signal when binarizing the pixels in the vicinity of the target pixel from the storage unit and the multi-valued image signal of the target pixel to be binarized next, and adding the error signal at a predetermined ratio. A means for generating a signal, comprising a correction means for periodically changing the pixel from which the error signal is read according to the position of the pixel of interest to perform the addition.

【0010】請求項3記載の画像2値化装置は、前記補
正手段は、所定本数の主走査線の2値化が完了する毎に
周期的に変化する主走査方向周期信号を出力する主走査
方向計数手段と、前記誤差記憶手段から前記主走査方向
周期信号に対応する誤差信号を選択する主走査方向誤差
選択手段と、副走査方向における所定数の画素の2値化
が完了する毎に周期的に変化する副走査方向周期信号を
出力する副走査方向計数手段と、前記誤差記憶手段から
前記副走査方向周期信号に対応する誤差信号を選択する
副走査方向誤差選択手段と、前記両選択手段が選択した
誤差を次に2値化する注目画素の多値画像信号に所定の
比率で加算して前記補正画像信号を生成する加算手段と
を具備することを特徴とするものである。
According to another aspect of the image binarizing apparatus of the present invention, the correcting means outputs a main scanning direction periodic signal which periodically changes every time binarization of a predetermined number of main scanning lines is completed. A direction counting means, a main scanning direction error selecting means for selecting an error signal corresponding to the main scanning direction cycle signal from the error storing means, and a cycle every time binarization of a predetermined number of pixels in the sub-scanning direction is completed. Sub-scanning direction counting means for outputting a sub-scanning direction periodical signal that changes with time, a sub-scanning direction error selecting means for selecting an error signal corresponding to the sub-scanning direction periodical signal from the error storage means, and both selection means. And an addition unit that adds the selected error to the multi-valued image signal of the pixel of interest to be binarized at a predetermined ratio to generate the corrected image signal.

【0011】[0011]

【作用】請求項1記載の画像2値化方法によれば、誤差
加算対象の画素が周期的に変化するので、2値画像に一
定のパターンが生じ難くなる。
According to the image binarization method of the first aspect, since the pixels to be subjected to error addition periodically change, it is difficult for a constant pattern to occur in the binary image.

【0012】請求項2記載の画像2値化装置によれば、
2値化手段は、補正画像信号を2値化し、そのときの誤
差を求め誤差信号として出力する。その誤差信号は、誤
差記憶手段に記憶される。補正手段は、注目画素の多値
画像信号に、その近傍の画素の誤差信号を誤差記憶手段
から読み出して加算して補正画像信号を生成する。誤差
信号を読み出す画素を注目画素の位置に応じて周期的に
変更して前記加算を行う。この動作を他の画素に対して
も順次繰り返し行うことにより、2値画像が得られる。
誤差信号を取り出す画素の位置が周期的に変化するの
で、2値画像に一定のパターンが生じ難くなる。
According to the image binarizing apparatus of the second aspect,
The binarizing means binarizes the corrected image signal, calculates the error at that time, and outputs it as an error signal. The error signal is stored in the error storage means. The correction unit reads the error signal of the pixel in the vicinity of the multi-valued image signal of the pixel of interest from the error storage unit and adds the error signal to generate a corrected image signal. The addition is performed by periodically changing the pixel from which the error signal is read according to the position of the pixel of interest. By repeating this operation for other pixels in sequence, a binary image can be obtained.
Since the position of the pixel from which the error signal is taken out periodically changes, it is difficult for a fixed pattern to occur in the binary image.

【0013】請求項3記載の画像2値化装置によれば、
2値化手段は、補正画像信号を2値化し、そのときの誤
差を求め誤差信号として出力する。その誤差信号は、誤
差記憶手段に記憶される。主走査方向計数手段及び副走
査方向計数手段は、各々周期的に変化する主走査方向周
期信号及び副走査方向周期信号を出力する。主走査方向
誤差選択手段及び副走査方向誤差選択手段は、各誤差記
憶手段から主走査方向周期信号及び副走査方向周期信号
に対応する誤差信号を選択する。加算手段は、選択され
た各誤差信号を注目画素の多値画像信号に加算して補正
画像信号を生成する。この動作を他の画素に対しても順
次繰り返し行うことにより、2値画像が得られる。誤差
信号を取り出す画素の位置が周期的に変化するので、2
値画像に一定のパターンが生じ難くなる。
According to the image binarization apparatus of the third aspect,
The binarizing means binarizes the corrected image signal, calculates the error at that time, and outputs it as an error signal. The error signal is stored in the error storage means. The main scanning direction counting means and the sub scanning direction counting means respectively output a main scanning direction periodic signal and a sub scanning direction periodic signal which change periodically. The main scanning direction error selecting means and the sub scanning direction error selecting means select an error signal corresponding to the main scanning direction periodic signal and the sub scanning direction periodic signal from each error storage means. The adding means adds each selected error signal to the multi-valued image signal of the pixel of interest to generate a corrected image signal. By repeating this operation for other pixels in sequence, a binary image can be obtained. Since the position of the pixel from which the error signal is extracted changes periodically,
A fixed pattern is less likely to occur in the value image.

【0014】[0014]

【実施例】以下、本発明の実施例を図面を参照して詳述
する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0015】図1は本発明の画像2値化装置の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image binarizing apparatus of the present invention.

【0016】この画像2値化装置は、入力された多値画
像信号S0 を基に補正画像信号Scを生成し、その補正
画像信号Sc を2値化する誤差拡散法により2値画像を
得るものであり、補正画像信号Sc を所定の閾値で2値
化するとともに、その2値化したときの誤差を求め誤差
信号Se として出力する2値化手段1と、誤差信号Se
を記憶する誤差記憶手段2と、次に2値化する画素(以
下「注目画素」という。)の多値画像信号S0 に、注目
画素近傍の画素について2値化したときの誤差信号Se
を誤差記憶手段2から読み出し所定の比率で加算して補
正画像信号Scを生成する補正手段3とを有して構成さ
れている。
This image binarization apparatus generates a corrected image signal S c based on the input multi-valued image signal S 0 and binarizes the corrected image signal S c by the error diffusion method. is intended to obtain, with binarizes the corrected image signal S c with a predetermined threshold, the binarizing means 1 for outputting an error when the binarization thereof calculated as an error signal S e, the error signal S e
Error storage means 2 for storing the error signal and a multi-valued image signal S 0 of a pixel to be binarized next (hereinafter referred to as “target pixel”), and an error signal S e when the pixel near the target pixel is binarized.
Is read from the error storage means 2 and added at a predetermined ratio to generate a corrected image signal S c .

【0017】次に、上記各部の詳細を説明する。Next, the details of each of the above parts will be described.

【0018】前記2値化手段1は、補正手段3からの補
正画像信号Sc が例えば256階調を有するとした場合
に、その補正画像信号Sc の階調値Nが所定の閾値例え
ば「128」より大きい場合は「1」を、小さい場合は
「0」を2値化信号S1 として外部に出力するものであ
る。また、2値化手段1は、前記閾値処理により得られ
た2値化信号S1 が「1」の場合はその「1」に対応す
る白の真の画素値「255」と補正画像信号Sc の階調
値Nとの誤差(N−255)を、2値化信号S1
「0」の場合はその「0」に対応する黒の真の画素値
「0」と補正画像信号Sc の階調値Nとの誤差(N−
0)を誤差信号Se として誤差記憶手段2に出力するも
のである。
When the correction image signal S c from the correction unit 3 has 256 gradations, the gradation value N of the correction image signal S c has a predetermined threshold value, for example, " If it is larger than 128 "," 1 "is output to the outside, and if it is smaller," 0 "is output to the outside as the binarized signal S 1 . Further, the binarizing means 1 is configured such that, when the binarized signal S 1 obtained by the threshold value processing is “1”, the true pixel value “255” of white corresponding to the “1” and the corrected image signal S When the binarized signal S 1 is “0”, the error (N-255) from the gradation value N of c is corrected to the true pixel value “0” of black corresponding to the “0” and the corrected image signal S. The error from the tone value N of c (N-
0) is output to the error storage means 2 as the error signal S e .

【0019】前記誤差記憶手段2は、少なくとも2値化
対象の主走査線の1つ上の主走査線1本分及び注目画素
の左の1画素分の誤差信号Se を記憶するようになって
いる。
The error storage means 2 is adapted to store at least one main scanning line above one main scanning line to be binarized and one pixel to the left of the target pixel, the error signal S e. ing.

【0020】前記補正手段3は、注目画素近傍の画素に
ついて2値化したときの誤差信号Se を誤差記憶手段2
から読み出し所定の比率で加算して補正画像信号Sc
生成するものであり、誤差信号Se を読み出す画素を注
目画素の位置に応じて周期的に変更して加算を行うもの
である。具体的構成例として、この補正手段3は、主走
査方向周期信号Sm を出力する主走査方向計数手段30
と、誤差記憶手段2から主走査方向周期信号Sm に対応
する誤差信号Se を選択する主走査方向誤差選択手段3
1と、副走査方向周期信号Sn を出力する副走査方向計
数手段32と、誤差記憶手段2から副走査方向周期信号
n に対応する誤差信号Se を選択する副走査方向誤差
選択手段33と、選択された各誤差信号Se を注目画素
の多値画像信号S0 に所定の比率で加算して補正画像信
号Sc を生成する加算手段34とを備えたものである。
The correction means 3 stores the error signal S e obtained by binarizing the pixels in the vicinity of the target pixel as the error storage means 2.
The corrected image signal S c is generated by adding the read signal from the pixel at a predetermined ratio, and the pixel from which the error signal S e is read is periodically changed according to the position of the pixel of interest to perform the addition. As a specific configuration example, the correction unit 3 includes a main scanning direction counting unit 30 that outputs a main scanning direction periodic signal S m.
And the main scanning direction error selecting means 3 for selecting the error signal S e corresponding to the main scanning direction periodic signal S m from the error storing means 2.
1, the sub-scanning direction periodic signal S n and the sub-scanning direction counting means 32 for outputting the sub-scanning direction error selection means 33 for selecting the error signal S e from the error memory unit 2 corresponds to the sub scanning direction period signal S n And an adding means 34 for adding each selected error signal S e to the multi-valued image signal S 0 of the target pixel at a predetermined ratio to generate a corrected image signal S c .

【0021】主走査方向計数手段30は、所定本数例え
ば1本の主走査線の2値化が完了する毎に周期的に変化
する主走査方向周期信号Sm を主走査方向誤差選択手段
31に出力するものである。この主走査方向計数手段3
0は、主走査方向周期信号Sm として例えば、2値化対
象の主走査線が上から計数して偶数本目の場合は「0」
を、奇数本目の場合は「1」を出力するようになってい
る。なお、連続する2本以上の本数の主走査線の2値化
が完了する毎に周期的に変化する主走査方向周期信号S
m を出力するようにしてもよい。
The main-scanning-direction counting means 30 supplies to the main-scanning-direction error selecting means 31 a main-scanning-direction periodic signal S m which changes periodically each time the binarization of a predetermined number of, for example, one main-scanning line is completed. It is what is output. This main scanning direction counting means 3
0 is the main scanning direction periodic signal S m , for example, “0” when the main scanning line to be binarized is counted from above and is an even number.
In the case of an odd number, "1" is output. The main scanning direction periodic signal S that periodically changes each time the binarization of two or more continuous main scanning lines is completed.
You may make it output m .

【0022】主走査方向誤差選択手段31は、主走査方
向計数手段30からの主走査方向周期信号Sm が「0」
の場合は、注目画素の左上の画素(誤差加算対象の画
素)を2値化したときの誤差信号Se を、主走査方向周
期信号Sm が「1」の場合は、注目画素の左の画素(誤
差加算対象の画素)を2値化したときの誤差信号Se
選択し、主走査方向誤差として加算手段34に出力する
ものである。
In the main scanning direction error selecting means 31, the main scanning direction periodic signal S m from the main scanning direction counting means 30 is "0".
In the case of, the error signal S e obtained by binarizing the pixel on the upper left of the pixel of interest (the pixel for error addition) is the error signal S e on the left of the pixel of interest when the main scanning direction periodic signal S m is “1”. The error signal S e obtained by binarizing a pixel (pixel for error addition) is selected and output to the adding means 34 as an error in the main scanning direction.

【0023】副走査方向計数手段32は、副走査方向に
おける所定数例えば1つの画素の2値化が完了する毎に
周期的に変化する副走査方向周期信号Sn を副走査方向
誤差選択手段33に出力するものである。例えば、注目
画素の副走査線が左から計数して偶数本目の場合は
「0」を、奇数本目の場合は「1」を副走査線選択信号
n として出力するものである。なお、副走査方向にお
ける連続する2つ以上の画素の2値化が完了する毎に周
期的に変化する副走査方向周期信号Sn を出力するよう
にしてもよい。
The sub-scanning direction counting means 32 outputs a sub-scanning direction periodic signal S n which changes periodically every time the binarization of a predetermined number in the sub-scanning direction, for example, one pixel, is completed. Is output to. For example, when the sub-scanning line of the pixel of interest is counted from the left, “0” is output as the sub-scanning line selection signal S n when the pixel is an even-numbered pixel and “1” when it is an odd-numbered pixel. The sub-scanning direction periodic signal S n that periodically changes may be output every time the binarization of two or more consecutive pixels in the sub-scanning direction is completed.

【0024】副走査方向誤差選択手段33は、副走査方
向計数手段32からの副走査方向周期信号Sn が「0」
の場合は、注目画素の上の画素(誤差加算対象の画素)
を2値化したときの誤差信号Se を、副走査方向周期信
号Sn が「1」の場合は、注目画素の右上の画素(誤差
加算対象の画素)を2値化したときの誤差信号Se を選
択し、副走査方向誤差として出力するものである。
In the sub-scanning direction error selecting means 33, the sub-scanning direction periodic signal S n from the sub-scanning direction counting means 32 is "0".
In case of, the pixel above the pixel of interest (pixel for error addition)
Is binarized, the error signal S e when the sub-scanning direction periodic signal S n is “1” is the binarized error signal when the pixel at the upper right of the pixel of interest (pixel for error addition) is binarized. S e is selected and output as an error in the sub-scanning direction.

【0025】加算手段34は、入力される注目画素の多
値画像信号S0 に主走査方向誤差選択手段31が選択し
た主走査方向誤差(誤差信号Se )及び副走査方向誤差
選択手段33が選択した副走査方向誤差(誤差信号
e )を各々所定の比率例えば1/2ずつ加算し、補正
画像信号Sc (=S0 +(Se +Se )/2)として2
値化手段1に出力するものである。
The adding means 34 includes a main scanning direction error (error signal S e ) selected by the main scanning direction error selecting means 31 and a sub scanning direction error selecting means 33 for the input multi-valued image signal S 0 of the target pixel. The selected sub-scanning direction error (error signal S e ) is added by a predetermined ratio, for example, 1/2, and the corrected image signal S c (= S 0 + (S e + S e ) / 2) is set to 2
It is output to the digitizing means 1.

【0026】次に、本実施例の動作を図2をも参照して
説明する。図2は加算手段34による加算を説明するた
めの図である。なお、同図中、Aは主走査方向、Bは副
走査方向を示す。
Next, the operation of this embodiment will be described with reference to FIG. FIG. 2 is a diagram for explaining the addition by the adding means 34. In the figure, A indicates the main scanning direction and B indicates the sub scanning direction.

【0027】加算手段34には、多値画像の最上段の主
走査線上の各画素の多値画像信号S0 が、左から右へと
順次入力され、その主走査線上の信号入力が終わると、
順次その下の主走査線上の信号入力が行われる。ここ
で、次に2値化する注目画素(n,m)の左の画素(n
−1,m)まで2値化が終わり、誤差記憶手段2には、
2値化処理済の画素、すなわち注目画素(n,m)の主
走査線の1つ上の主走査線の画素及び注目画素(n,
m)の左側の画素(n−1,m)の誤差が記憶されてい
るとする。
The multi-valued image signal S 0 of each pixel on the uppermost main scanning line of the multi-valued image is sequentially input to the adding means 34 from left to right, and when the signal input on the main scanning line is finished. ,
Signals are sequentially input on the main scanning line therebelow. Here, the pixel (n) to the left of the pixel of interest (n, m) to be binarized next is
The binarization is completed up to -1, m), and the error storage means 2 stores
The binarized pixel, that is, the pixel on the main scanning line one above the main scanning line of the pixel of interest (n, m) and the pixel of interest (n,
It is assumed that the error of the pixel (n-1, m) on the left side of (m) is stored.

【0028】次に、注目画素(n,m)として例えば主
走査線が12本目で副走査線が12本目の画素(12,
12)の多値画像信号S0 が加算手段34に入力される
と、この多値画像信号S0 の入力の際に、主走査方向計
数手段30は、注目画素(n,m)の主走査線が偶数本
目か奇数本目かに応じた主走査方向周期信号Sm を主走
査方向誤差選択手段31に出力する。本実施例の場合
は、注目画素(12,12)の主走査線が偶数本目であ
るので、主走査方向周期信号Sm として「0」を出力す
る。また、副走査方向計数手段32は、注目画素(n,
m)の副走査線が偶数本目か奇数本目かに応じた副走査
方向周期信号Sn を副走査方向誤差選択手段33に出力
する。本実施例の場合は、注目画素(12,12)の副
走査線が偶数本目であるので、副走査方向周期信号Sn
として「0」を出力する。
Next, as a target pixel (n, m), for example, a pixel (12, 12) having a main scanning line and a twelfth sub-scanning line
When the multi-valued image signal S 0 of 12) is input to the adding means 34, the main scanning direction counting means 30 causes the main scanning direction of the target pixel (n, m) at the time of inputting the multi-valued image signal S 0. A main scanning direction periodic signal S m corresponding to whether the line is an even numbered line or an odd numbered line is output to the main scanning direction error selection means 31. In the case of the present embodiment, since the main scanning line of the target pixel (12, 12) is an even number, “0” is output as the main scanning direction periodic signal S m . Further, the sub-scanning direction counting means 32 uses the target pixel (n,
The sub-scanning direction periodic signal S n according to whether the sub-scanning line m) is an even-numbered line or an odd-numbered line is output to the sub-scanning direction error selecting means 33. In the case of the present embodiment, since the sub-scanning line of the target pixel (12, 12) is an even-numbered sub-scanning line, the sub-scanning direction periodic signal S n
"0" is output as.

【0029】続いて主走査方向誤差選択手段31は、主
走査方向計数手段30からの主走査方向選択信号Sm
基づいて誤差記憶手段2から対応する誤差信号Se を主
走査方向誤差として選択して加算手段34に出力する。
本実施例の場合は、主走査方向選択信号Sm が「0」で
あるので、注目画素(12,12)の左上の画素(1
1,11)を2値化したときの誤差信号Se を選択す
る。また、副走査方向選択手段33は、副走査方向計数
手段32からの副走査方向周期信号Sn に基づいて誤差
記憶手段2から対する誤差信号Se を副走査方向誤差と
して選択して加算手段34に出力する。本実施例の場合
は、副走査方向周期信号Sn が「0」であるので、注目
画素(12,12)の上の画素(12,11)を2値化
したときの誤差信号Se を選択する。
Then, the main scanning direction error selecting means 31 selects the corresponding error signal S e from the error storing means 2 as the main scanning direction error based on the main scanning direction selecting signal S m from the main scanning direction counting means 30. And outputs it to the adding means 34.
In the case of this embodiment, since the main scanning direction selection signal S m is “0”, the pixel (1) at the upper left of the pixel of interest (12, 12) is selected.
The error signal S e when binarizing (1, 11) is selected. Further, the sub-scanning direction selecting means 33 selects the error signal S e from the error storing means 2 as the sub-scanning direction error based on the sub-scanning direction periodic signal S n from the sub-scanning direction counting means 32 and adds it to the adding means 34. Output to. In the case of this embodiment, since the sub-scanning direction periodic signal S n is “0”, the error signal S e obtained when the pixel (12, 11) above the target pixel (12, 12) is binarized is select.

【0030】次に、加算手段34は、入力された注目画
素(12,12)の多値画像信号S0 に各選択手段3
1,33からの主走査方向誤差としての誤差信号Se
副走査方向誤差としての誤差信号Se とを1/2ずつ加
算して補正画像信号Sc を生成して2値化手段1に出力
する。
Next, the adding means 34 selects each of the selecting means 3 for the input multi-valued image signal S 0 of the target pixel (12, 12).
And an error signal S e of the error signal S e and the sub-scanning direction error as the main scanning direction error from 1,33 to incremented by 1/2 to generate a corrected image signal S c and the binarizing means 1 Output.

【0031】2値化手段1は、加算手段34からの補正
画像信号Se を所定の閾値で2値化して「0」又は
「1」の2値画像信号S1 として出力するとともに、誤
差信号Se を生成して誤差記憶手段2に出力する。誤差
信号Se は、誤差記憶手段2に記憶される。上記動作を
他の画素(13,12),(14,12),(15,1
2),…に対しても順次繰り返し行うことにより、2値
画像が得られる。
The binarizing means 1 binarizes the corrected image signal S e from the adding means 34 with a predetermined threshold value and outputs it as a binary image signal S 1 of "0" or "1", and also an error signal. S e is generated and output to the error storage means 2. The error signal S e is stored in the error storage means 2. The above operation is performed for other pixels (13, 12), (14, 12), (15, 1).
A binary image is obtained by sequentially repeating the steps 2), ....

【0032】このように、注目画素(12,12)につ
いては左上の画素(11,11)及び上の画素(12,
11)の各誤差信号Se が選択され、注目画素(13,
12)については上の画素(13,11)及び左の画素
(12,12)の各誤差信号Se が選択される。また、
注目画素(12,13)については左上の画素(11,
12)及び右上の画素(13,12)の各誤差信号Se
が選択される。また、注目画素(13,13)について
は左の画素(12,13)及び右上の画素(14,1
2)の各誤差信号Se が選択される。すなわち、注目画
素(12,12),(13,12),(12,13),
(13,13)の如く、2×2のサイズ内において誤差
信号Se を取り出す画素の位置が互いに異なり、2×2
のサイズ毎に誤差信号Se を取り出す画素の位置が周期
的に変化する。
Thus, for the pixel of interest (12, 12), the upper left pixel (11, 11) and the upper pixel (12, 12)
11) each error signal S e is selected, and the target pixel (13,
For 12), the error signals S e of the upper pixel (13, 11) and the left pixel (12, 12) are selected. Also,
Regarding the pixel of interest (12, 13), the upper left pixel (11,
12) and each error signal S e of the upper right pixel (13, 12)
Is selected. Regarding the pixel of interest (13, 13), the left pixel (12, 13) and the upper right pixel (14, 1)
Each error signal S e in 2) is selected. That is, the target pixel (12, 12), (13, 12), (12, 13),
As shown in (13, 13), the positions of the pixels from which the error signal S e is extracted are different from each other within the size of 2 × 2, which is 2 × 2.
The position of the pixel from which the error signal S e is taken out periodically changes for each size of.

【0033】なお、本発明は上記実施例に限定されず、
その要旨を変更しない範囲内で変形実施できる。例え
ば、本実施例では、2×2のサイズ毎に誤差信号Se
取り出す画素の位置が周期的に変化したが、このサイズ
の大きさは限定されず3×3以上でもよい。また、誤差
信号Se を取り出す画素の組合せも限定されずに自由に
組み合わせることも可能である。例えば、注目画素(1
2,12)については左上の画素(11,11)及び上
の画素(12,11)、注目画素(13,12)につい
ては上の画素(13,11)及び左の画素(12,1
2)から誤差信号Se を取り出すようにしたが、互いに
逆にして注目画素(12,12)については上の画素
(13,11)及び左の画素(12,12)、注目画素
(13,12)については左上の画素(11,11)及
び上の画素(12,11)の如く誤差信号Se を取り出
す画素の位置を変更してもよい。
The present invention is not limited to the above embodiment,
Modifications can be made without changing the gist of the invention. For example, in the present embodiment, the position of the pixel from which the error signal S e is taken changes periodically for each 2 × 2 size, but the size is not limited and may be 3 × 3 or more. Further, the combination of pixels from which the error signal S e is taken out is not limited and can be freely combined. For example, the pixel of interest (1
2, 12) the upper left pixel (11, 11) and the upper pixel (12, 11), and the target pixel (13, 12) the upper pixel (13, 11) and the left pixel (12, 1).
Although the error signal S e is taken out from 2), the upper pixel (13, 11) and the left pixel (12, 12) and the target pixel (13, 12) are reversed with respect to the target pixel (12, 12). For 12), the positions of the pixels from which the error signal S e is taken out may be changed like the upper left pixel (11, 11) and the upper pixel (12, 11).

【0034】[0034]

【発明の効果】以上詳述した本発明によれば、以下の効
果を奏する。
According to the present invention described in detail above, the following effects can be obtained.

【0035】請求項1記載の発明によれば、誤差加算対
象の画素が周期的に変化するので、多値画像を一定の偽
像の発生の少ない高品質な2値画像に変換し得る画像2
値化方法を提供することができる。
According to the first aspect of the present invention, since the pixels to be error-added periodically change, the multi-valued image can be converted into a high-quality binary image with few false images.
A valuation method can be provided.

【0036】請求項2記載の発明によれば、誤差信号を
取り出す画素の位置が周期的に変化するので、多値画像
を一定の偽像の発生の少ない高品質な2値画像に変換し
得る画像2値化装置を提供することができる。
According to the second aspect of the present invention, since the position of the pixel from which the error signal is taken out is periodically changed, the multi-valued image can be converted into a high-quality binary image with less generation of constant false images. An image binarization device can be provided.

【0037】請求項3記載の発明によれば、周期的に変
化する主走査方向周期信号及び副走査方向周期信号に基
づいて誤差信号を取り出す画素の位置が周期的に変化す
るので、多値画像を一定の偽像の発生の少ない高品質な
2値画像に変換し得る画像2値化装置を提供することが
できる。
According to the third aspect of the present invention, the position of the pixel from which the error signal is extracted is periodically changed based on the periodically changing main scanning direction periodic signal and sub-scanning direction periodic signal. It is possible to provide an image binarization device capable of converting a high-quality binary image in which a certain false image is less likely to occur.

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

【図1】本発明の実施例を示すブロック図FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本実施例の動作を説明するための図FIG. 2 is a diagram for explaining the operation of this embodiment.

【図3】従来の画像2値化方法を説明するための図FIG. 3 is a diagram for explaining a conventional image binarization method.

【符号の説明】[Explanation of symbols]

1 2値化手段 2 誤差記憶手段 3 補正手段 30 主走査方向計数手段 31 主走査方向誤差選択手段 32 副走査方向計数手段 33 副走査方向誤差選択手段 34 加算手段 1 Binarizing Means 2 Error Storage Means 3 Correcting Means 30 Main Scanning Direction Counting Means 31 Main Scanning Direction Error Selecting Means 32 Sub-scanning Direction Counting Means 33 Sub-scanning Direction Error Selecting Means 34 Adding Means

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/68 320 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 15/68 320 A

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 多値画像のうち次に2値化する注目画素
の画素値に、前記注目画素近傍の画素について2値化し
たときの誤差を所定の比率で加算し、その加算後の画素
値を2値化する誤差拡散法により2値画像を得る画像2
値化方法において、前記誤差加算対象の画素を注目画素
の位置に応じて周期的に変更して前記加算を行うことを
特徴とする画像2値化方法。
1. A multi-valued image, in which a pixel value of a pixel of interest to be binarized next is added with a predetermined ratio of an error when binarizing a pixel near the pixel of interest, and the pixel after the addition is added. Image 2 that obtains a binary image by the error diffusion method that binarizes the values
In the binarization method, the image binarization method is characterized in that the pixel for error addition is periodically changed according to the position of the pixel of interest to perform the addition.
【請求項2】 入力された多値画像信号を基に補正画像
信号を生成し、その補正画像信号を2値化する誤差拡散
法により2値画像を得る画像2値化装置において、前記
補正画像信号を所定の閾値で2値化するとともに、その
2値化したときの誤差を求め誤差信号として出力する2
値化手段と、前記誤差信号を記憶する誤差記憶手段と、
次に2値化する注目画素の多値画像信号に、前記注目画
素近傍の画素について2値化したときの誤差信号を前記
誤差記憶手段から読み出し所定の比率で加算して補正画
像信号を生成する手段であって、誤差信号を読み出す画
素を注目画素の位置に応じて周期的に変更して前記加算
を行う補正手段とを有することを特徴とする画像2値化
装置。
2. An image binarization apparatus for obtaining a binary image by an error diffusion method of generating a corrected image signal based on an input multi-valued image signal and binarizing the corrected image signal, The signal is binarized with a predetermined threshold value, and the error when binarized is calculated and output as an error signal 2
Value conversion means, error storage means for storing the error signal,
Next, the multi-valued image signal of the pixel of interest to be binarized is read from the error storage means with an error signal when binarizing the pixels in the vicinity of the pixel of interest and added at a predetermined ratio to generate a corrected image signal. An image binarization device, further comprising: a correction unit that periodically changes a pixel from which an error signal is read according to a position of a pixel of interest to perform the addition.
【請求項3】 前記補正手段は、所定本数の主走査線の
2値化が完了する毎に周期的に変化する主走査方向周期
信号を出力する主走査方向計数手段と、前記誤差記憶手
段から前記主走査方向周期信号に対応する誤差信号を選
択する主走査方向誤差選択手段と、副走査方向における
所定数の画素の2値化が完了する毎に周期的に変化する
副走査方向周期信号を出力する副走査方向計数手段と、
前記誤差記憶手段から前記副走査方向周期信号に対応す
る誤差信号を選択する副走査方向誤差選択手段と、前記
両選択手段が選択した誤差を次に2値化する注目画素の
多値画像信号に所定の比率で加算して前記補正画像信号
を生成する加算手段とを具備することを特徴とする請求
項2記載の画像2値化装置。
3. The correction means includes a main scanning direction counting means for outputting a main scanning direction periodic signal which periodically changes each time binarization of a predetermined number of main scanning lines is completed, and the error storage means. A main-scanning-direction error selecting unit that selects an error signal corresponding to the main-scanning-direction periodic signal, and a sub-scanning-direction periodic signal that periodically changes each time binarization of a predetermined number of pixels in the sub-scanning direction is completed. A sub-scanning direction counting means for outputting,
A sub-scanning direction error selecting means for selecting an error signal corresponding to the sub-scanning direction periodic signal from the error storing means, and a multi-valued image signal of the pixel of interest for binarizing the error selected by the both selecting means next. The image binarization apparatus according to claim 2, further comprising: an addition unit configured to add at a predetermined ratio to generate the corrected image signal.
JP6302409A 1994-12-06 1994-12-06 Method and device for picture binarization Pending JPH08163360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6302409A JPH08163360A (en) 1994-12-06 1994-12-06 Method and device for picture binarization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6302409A JPH08163360A (en) 1994-12-06 1994-12-06 Method and device for picture binarization

Publications (1)

Publication Number Publication Date
JPH08163360A true JPH08163360A (en) 1996-06-21

Family

ID=17908575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6302409A Pending JPH08163360A (en) 1994-12-06 1994-12-06 Method and device for picture binarization

Country Status (1)

Country Link
JP (1) JPH08163360A (en)

Similar Documents

Publication Publication Date Title
US5729663A (en) Method and apparatus for gray screening
JPS59156070A (en) Picture processing device
US5124811A (en) Image encoding apparatus
JPH0683365B2 (en) Image processing device
JPH0354506B2 (en)
US6775027B1 (en) Image processing apparatus
JPH08163360A (en) Method and device for picture binarization
US7321452B2 (en) Image processing apparatus
JP3679522B2 (en) Image processing method and apparatus
JP2900907B2 (en) Image processing device
JPH0437256A (en) Picture processing unit
JP3708191B2 (en) Image processing device
JP2701310B2 (en) Halftone image generation method and apparatus
JP3384875B2 (en) Image processing device
JP2584826B2 (en) Image data processing device
JPH09307759A (en) Error storage control method for image processing unit and error storage controller
JPH0575864A (en) Reading system in facsimile
JPH07177347A (en) Image processor
JPH04217166A (en) Image data processor
JPH0746396A (en) Facsimile equipment
JP2004094974A (en) Image processing method
JPH04269076A (en) Picture processing method
JPH09107465A (en) Picture processor and picture processing method
JPH04299668A (en) Pseudo half-tone picture processing device
JPH0468771A (en) Picture data compression device