JPH11136510A - Image processor - Google Patents

Image processor

Info

Publication number
JPH11136510A
JPH11136510A JP9298737A JP29873797A JPH11136510A JP H11136510 A JPH11136510 A JP H11136510A JP 9298737 A JP9298737 A JP 9298737A JP 29873797 A JP29873797 A JP 29873797A JP H11136510 A JPH11136510 A JP H11136510A
Authority
JP
Japan
Prior art keywords
value
random number
pixel
reference value
density
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.)
Withdrawn
Application number
JP9298737A
Other languages
Japanese (ja)
Inventor
Kenichi Sawada
健一 澤田
Junji Ishikawa
淳史 石川
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP9298737A priority Critical patent/JPH11136510A/en
Publication of JPH11136510A publication Critical patent/JPH11136510A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a processor which can reduce the generation of snake line texture without spoiling the resolution and gradations that an error diffusing method originally has by using a random number generated by a random number generating means for the operation of a diffusion density value. SOLUTION: A random number generation part 23 is further provided which adds a random number to a High reference value HB and a Low reference value LB. In this device, the values obtained by adding the random number to the High reference value HB and Low reference value LB are inputted to a selector 19, which selects and outputs one value as a reference value B'xy for binarized error Exy calculation to a subtracter 18. Thus, the reference value B'xy for calculating the binarized error E'xy is calculated by using the random number, so a unique stripe pattern called snake line texture which is apt to be generated when an image of uniform density level with small dispersion is binarized can be reduced.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、Mが3以上のM値
階調画像を誤差拡散法を利用して2値階調再現可能な画
像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus capable of reproducing an M-value gradation image having M of 3 or more into a binary gradation by using an error diffusion method.

【0002】[0002]

【従来の技術】この種の画像処理装置として従来から知
られているものに、入力された多値階調画像を誤差拡散
法を利用して2値階調再現可能な画像処理装置がある。
この種の従来の画像処理装置で利用される誤差拡散法
は、読取り画像の注目画素の濃度と表示濃度との差(2
値化誤差)を所定の誤差拡散マトリクスを用いて所定の
周辺画素に拡散していく方法であり、換言すれば、注目
画素の濃度に所定の周辺画素の2値化誤差を所定割合ず
つ拡散させて重み付けを行なった後、表示濃度を算出す
る方法である。以下にその概要について説明する。
2. Description of the Related Art As an image processing apparatus of this type, there is an image processing apparatus capable of reproducing an input multi-value gradation image into a binary gradation by using an error diffusion method.
The error diffusion method used in this type of conventional image processing apparatus is based on the difference between the density of the pixel of interest in the read image and the display density (2
This is a method of diffusing the binarization error of a predetermined peripheral pixel into a density of a target pixel by a predetermined ratio at a predetermined rate. This is a method of calculating the display density after weighting is performed. The outline is described below.

【0003】図11は、従来の誤差拡散法を示すブロッ
ク図である。多値階調入力画像を構成する各画素の濃度
データを Ixy(0≦Ixy≦1) Ixyに対応して出力される2値化画像を構成する各画
素の濃度データを Bxy(Bxy=0or1) とすれば、後述する重み付き平均誤差Eavexyによ
る補正を考慮しない場合には、2値化誤差Exyは、次
の(1)式で算出される。
FIG. 11 is a block diagram showing a conventional error diffusion method. The density data of each pixel constituting the multi-value gradation input image is represented by Ixy (0 ≦ Ixy ≦ 1). The density data of each pixel constituting the binarized image output in accordance with Ixy is represented by Bxy (Bxy = 0 or 1). In this case, when the correction by the weighted average error Eavexy described later is not considered, the binarization error Exy is calculated by the following equation (1).

【0004】 Exy=Ixy−Bxy・・・・・・・・・・・・・・・・・・・・・(1) 誤差拡散法は、2値化誤差を周辺画素に拡散することで
その2値化誤差を平均して小さくする手法であり、図1
1には、周辺画素の2値化誤差を処理対象画素に誤差拡
散する際に用いられる誤差重み付けフィルタ15が示さ
れている。*は、処理対象の画素(この画素を特に注目
画素という)であり、この注目画素の画素データIxy
に対して、誤差重み付けフィルタ15の点線枠内に属す
る位置の他の処理済の周辺画素の2値化誤差Exyが、
それぞれ図示する重み付け係数(1/16、2/16、
3/16)分だけ誤差拡散され、注目画素Ixyの濃度
データが補正される。したがって、実際には、注目画素
データIxyの補正後のデータI′xyに基づいて先の
(1)式に示した2値化誤差Exyが算出されるのであ
り、図11に示すように誤差拡散のための誤差フィード
バックループが形成されている。注目画素データIxy
のデータ補正値をEavexyとすると、補正後のデー
タI′xyは、次の(2)式により、算出される。
[0004] Exy = Ixy-Bxy (1) The error diffusion method is to diffuse a binarization error to peripheral pixels. This is a method of averaging and reducing the binarization error.
1, reference numeral 1 denotes an error weighting filter 15 used for error diffusion of a binarization error of a peripheral pixel to a pixel to be processed. * Is a pixel to be processed (this pixel is particularly referred to as a target pixel), and pixel data Ixy of the target pixel
In contrast, the binarization error Exy of another processed peripheral pixel at a position belonging to the dotted frame of the error weighting filter 15 is
The weighting factors (1/16, 2/16,
3/16), and the density data of the target pixel Ixy is corrected. Therefore, actually, the binarization error Exy shown in the above equation (1) is calculated based on the corrected data I'xy of the target pixel data Ixy, and the error diffusion is performed as shown in FIG. , An error feedback loop is formed. Attention pixel data Ixy
Is the data correction value of Eavexy, the corrected data I'xy is calculated by the following equation (2).

【0005】 I′xy=Ixy+Eavexy・・・・・・・・・・・・・・・・(2) ここで、補正値Eavexyは、入力された注目画素デ
ータIxyに対する重み付き平均誤差であり、誤差重み
付けフィルタ15の重み付け係数をKi ,j(iは主走査
方向のマトリクスサイズであり、たとえば、i=5、j
は副走査方向のマトリクスサイズであり、たとえば、j
=3、)とすると、次の(3)式で算出される。
I′xy = Ixy + Eavexy (2) Here, the correction value Eavexy is a weighted average error with respect to the input target pixel data Ixy, The weighting coefficient of the error weighting filter 15 is K i, j (i is a matrix size in the main scanning direction, for example, i = 5, j
Is the matrix size in the sub-scanning direction, for example, j
= 3,), it is calculated by the following equation (3).

【0006】 Eavexy=Σ(Ki ,j×Ei ,j)・・・・・・・・・・・・・・・(3) 図11において、9は注目画素の濃度データとその周辺
誤差の重み付き平均誤差Eavexyとの加算を行なう
加算器であり、上記式(2)による補正後のデータI′
xyを2値化のための比較器10および2値化誤差算出
のための減算器11に出力する。
Eavexy = Σ (K i, j × E i, j ) (3) In FIG. 11, reference numeral 9 denotes density data of a target pixel and its peripheral error. Is an adder for adding the weighted average error Eavexy to the data I ′ after the correction by the equation (2).
xy is output to a comparator 10 for binarization and a subtractor 11 for calculating a binarization error.

【0007】比較器10では、上記(2)式で得られた
補正後のデータI′xyと所定のしきい値Thとの比較
が行なわれて、その結果が出力され、その結果に応じて
2値化が行なわれる。これにより、次の(4)式に示す
ように2値化画像を構成する画素の濃度データBxyが
定められる。
[0007] The comparator 10 compares the corrected data I'xy obtained by the above equation (2) with a predetermined threshold value Th, and outputs the result. Binarization is performed. Thereby, the density data Bxy of the pixels constituting the binarized image is determined as shown in the following equation (4).

【0008】 Bxy=1(I′xy≧Th)or0(I′xy<Th)・・・・・・(4) また、比較器10の比較結果はセレクタ12へも入力さ
れる。セレクタ12では、比較器10からの入力結果に
応じて次の(5)式に示すように2値化誤差Exyを算
出する際の基準値B′xyが選択されて、減算器11に
その値が出力される。
Bxy = 1 (I′xy ≧ Th) or 0 (I′xy <Th) (4) The comparison result of the comparator 10 is also input to the selector 12. The selector 12 selects a reference value B′xy for calculating the binarization error Exy as shown in the following equation (5) according to the input result from the comparator 10, and sends the selected value to the subtractor 11. Is output.

【0009】 B′xy=HB(Bxy=1)orLB(Bxy=0)・・・・・・・(5) 上記(5)式において、HB(High基準値)および
LB(Low基準値)は、それぞれ、出力される画素濃
度のダイナミックレンジの上限値と下限値で与えられる
値であり、たとえば、HB=1、LB=0となる。
B′xy = HB (Bxy = 1) or LB (Bxy = 0) (5) In the above equation (5), HB (High reference value) and LB (Low reference value) Are the upper and lower limits of the output pixel density dynamic range, for example, HB = 1 and LB = 0.

【0010】次に、減算器11では、2値化誤差Exy
が、先の(1)式に対して、次の(6)式で算出される
ことになる。
Next, in the subtracter 11, the binarization error Exy
Is calculated by the following equation (6) with respect to the above equation (1).

【0011】 Exy=I′xy−B′xy・・・・・・・・・・・・・・・・・・・(6) 減算器11の算出結果は誤差格納部14に格納され、加
算器9に次のIxyが入力されるごとに積和演算器13
にその格納データが出力される。積和演算器13は、入
力データIxyに応じて誤差格納部14に格納されてい
る2値化誤差E i ,jを順次読出して重み付け係数Ki ,j
と2値化誤差Ei ,jとを乗じ、重み付き平均誤差Eav
exyを算出する。そして、その結果を加算器9へ出力
する。
Exy = I′xy−B′xy (6) The calculation result of the subtractor 11 is stored in the error storage unit 14 and added.
Each time the next Ixy is input to the arithmetic unit 9, the product-sum operation unit 13
The stored data is output to. The product-sum operation unit 13
Stored in the error storage unit 14 according to the force data Ixy.
Binarization error E i, jAre sequentially read and the weighting coefficient Ki, j
And the binarization error Ei, jAnd the weighted average error Eav
xy is calculated. Then, the result is output to the adder 9.
I do.

【0012】以上、概説した誤差拡散法は、優れた解像
度と階調性が得られる点にその特徴を有する。しかしな
がら、一様な濃度レベルの画像では、ある一定のパター
ンで誤差拡散が行なわれてしまうことに起因して、特に
分散の少ない一様な濃度レベル画像を処理する際、Sn
ake−Line(もしくはWorm−Line)テク
スチャと呼ばれる独特の縞模様が発生するという欠点の
あることが知られている。
The error diffusion method outlined above is characterized in that excellent resolution and gradation can be obtained. However, in the case of an image having a uniform density level, error diffusion is performed in a certain pattern.
It is known that there is a disadvantage that a unique stripe pattern called an ake-line (or worm-line) texture is generated.

【0013】図12に、従来のこの種の誤差拡散法によ
りSnake−Lineテクスチャが顕著に現れた画像
処理結果例を示す。この画像処理結果を得ることとなっ
た処理対象の多値階調入力画像は、そもそも、文字”
5”を除いて一様に画素濃度が分布する4つの領域から
構成されているのであるが、2値化処理の結果、Sna
ke−Lineテクスチャとよばれる独特の縞模様が現
れてしまい、画像の再現性が極めて悪いことがわかる。
FIG. 12 shows an example of an image processing result in which a Snake-Line texture appears remarkably by the conventional error diffusion method of this kind. The multi-level gradation input image to be processed, which has obtained the image processing result, is originally a character "
Except for 5 ″, it is composed of four regions where the pixel density is uniformly distributed, but as a result of the binarization process, Sna
A unique stripe pattern called a ke-Line texture appears, indicating that the reproducibility of the image is extremely poor.

【0014】かかる問題の解消を図るべく、たとえば、
特開平3−243063号公報には、読取り画像の注目
画素濃度を2値化する際の2値化処理および誤差を拡散
配分する際の誤差配分処理の主走査方向の向きを、所定
周期またはランダムに反転させることにより、Snak
e−Lineテクスチャの発生を低減させることが開示
されている。
To solve such a problem, for example,
Japanese Patent Application Laid-Open No. Hei 3-243063 discloses that a direction of a main scanning direction in a binarization process for binarizing a target pixel density of a read image and an error distribution process for diffusing and distributing an error is determined at a predetermined cycle or at random. By reversing to
It is disclosed to reduce the occurrence of e-Line texture.

【0015】その他、特開平5−37781号公報に
は、拡散配分される誤差データを格納するメモリの読出
方向を乱数発生回路の出力に従い、ランダムに切り替え
ることにより、ドットの繋がりの周期性を断ち切り、こ
れによりSnake−Lineテクスチャの発生を低減
させることが開示されている。
In addition, Japanese Patent Laid-Open No. Hei 5-37781 discloses that the periodicity of dot connection is cut off by randomly switching the reading direction of a memory for storing error data to be distributed and distributed in accordance with the output of a random number generation circuit. It is disclosed that this reduces the occurrence of Snake-Line texture.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、Sna
ke−Lineテクスチャの発生を低減させるための従
来のいずれの技術も、誤差拡散のフィードバック要素
(2値化しきい値、周辺誤差重み付けフィルタの係数、
ラスタスキャンの方向など)のいずれかを乱数などによ
って制御するものであるために、Snake−Line
テクスチャの発生の低減には効果があるものの、注目画
素に先行して算出された2値化誤差値、誤差拡散方向を
大きく変化させてしまうことになる。このため、誤差拡
散法本来のもつ、解像度と階調性を損ねてしまい、ま
た、フィードバックループ内の処理系をより一層複雑な
ものにしてしまうという問題が生じていた。
However, Sna
Any of the conventional techniques for reducing the occurrence of the ke-Line texture includes a feedback element for error diffusion (a binarization threshold, a coefficient of a marginal error weighting filter,
Raster-scan direction) is controlled by a random number or the like.
Although effective in reducing the occurrence of texture, the binarization error value and the error diffusion direction calculated prior to the pixel of interest are greatly changed. For this reason, the resolution and the gradation inherent in the error diffusion method are impaired, and the processing system in the feedback loop is further complicated.

【0017】本発明は係る実情に鑑み考え出されたもの
であり、その目的は、誤差拡散法本来のもつ、解像度と
階調性を極力損ねることなく、Snake−Lineテ
クスチャの発生を低減可能な画像処理装置を提供するこ
とである。
The present invention has been conceived in view of the above circumstances, and has as its object to reduce the generation of Snake-Line texture without impairing the resolution and gradation inherent in the error diffusion method as much as possible. An object of the present invention is to provide an image processing device.

【0018】[0018]

【課題を解決するための手段】請求項1に記載の発明
は、Mが3以上のM値階調画像を誤差拡散法を利用して
2値階調再現可能な画像処理装置であって、前記M値階
調画像を構成する画素のうち2値階調再現対象である注
目画素の周辺画素に拡散すべき拡散濃度値を演算する拡
散濃度値演算手段と、乱数を発生する乱数発生手段とを
含み、前記拡散濃度値演算手段は、2値階調再現前の前
記注目画素の濃度値と、2値階調再現後の前記注目画素
の階調を条件にして定められる基準値と、前記乱数発生
手段で発生する乱数とを使用して前記拡散濃度値を演算
可能であることを特徴とする。
According to the first aspect of the present invention, there is provided an image processing apparatus capable of reproducing an M-value gradation image in which M is 3 or more into a binary gradation by using an error diffusion method. Diffusion density value calculation means for calculating a diffusion density value to be diffused to a peripheral pixel of a target pixel which is a binary tone reproduction target among the pixels constituting the M-value tone image; random number generation means for generating a random number; Wherein the diffusion density value calculating means includes: a density value of the target pixel before binary tone reproduction; a reference value determined on the basis of a tone of the target pixel after binary tone reproduction; The diffusion density value can be calculated using a random number generated by a random number generation means.

【0019】請求項1に記載の発明によると、前記拡散
濃度値の演算に前記乱数発生手段で発生する乱数が使用
されるために、分散の少ない一様な濃度レベルの画像を
処理する場合において、ある一定のパターンで誤差拡散
が行なわれてしまうことを防止でき、Snake−Li
neテクスチャの発生を低減できる。
According to the first aspect of the present invention, since a random number generated by the random number generating means is used in the calculation of the diffusion density value, an image of a uniform density level with small variance is processed. In addition, it is possible to prevent the error diffusion from being performed in a certain pattern, and the Snake-Li
Ne texture can be reduced.

【0020】請求項2に記載の発明は、請求項1に記載
の発明の構成に加えて、前記拡散濃度値演算手段は、前
記基準値に前記乱数を加算可能な乱数加算手段を含み、
2値階調再現前の前記注目画素の濃度値と、前記乱数加
算手段の加算結果との差を求めることにより前記拡散濃
度値を演算することを特徴とする。
According to a second aspect of the present invention, in addition to the configuration of the first aspect, the diffusion density value calculating means includes a random number adding means capable of adding the random number to the reference value,
The diffusion density value is calculated by calculating a difference between a density value of the pixel of interest before binary tone reproduction and an addition result of the random number adding means.

【0021】請求項2に記載の発明によると、2値階調
再現前の前記注目画素の濃度値と、前記乱数加算手段の
加算結果との差を求めることにより前記拡散濃度値が演
算される。
According to the second aspect of the present invention, the diffusion density value is calculated by calculating the difference between the density value of the target pixel before binary tone reproduction and the addition result of the random number addition means. .

【0022】請求項3に記載の発明は、請求項1に記載
の発明の構成に加えて、前記M値階調画像を構成する画
素領域のうち前記注目画素を含む所定の画素領域の画素
濃度に基づいて、前記基準値の大きさを設定する基準値
設定手段を含むことを特徴とする。
According to a third aspect of the present invention, in addition to the configuration of the first aspect, a pixel density of a predetermined pixel area including the target pixel in a pixel area constituting the M-value gradation image is provided. A reference value setting means for setting the magnitude of the reference value based on the reference value.

【0023】請求項3に記載の発明によると、前記M値
階調画像を構成する画素領域のうち前記注目画素を含む
所定の画素領域の画素濃度に基づいて、前記基準値の大
きさが設定されるために、さらに2値化対象領域に応じ
たガンマ特性をも得ることができる。
According to the third aspect of the present invention, the magnitude of the reference value is set based on the pixel density of a predetermined pixel area including the target pixel among the pixel areas constituting the M-value gradation image. Therefore, a gamma characteristic according to the binarization target area can be further obtained.

【0024】請求項4に記載の発明は、請求項1に記載
の発明の構成に加えて、前記M値階調画像を構成する画
素領域のうち前記注目画素を含む所定の画素領域の画素
濃度に基づいて、前記乱数を使用して前記拡散濃度値を
演算すべきか否かを判別する判別手段とを含み、前記拡
散濃度値演算手段は、前記乱数を用いて前記拡散濃度値
を演算すべき旨の判別が前記判別手段でなされたことを
条件に、前記乱数を使用して前記拡散濃度値を演算する
ことを特徴とする。
According to a fourth aspect of the present invention, in addition to the configuration of the first aspect, a pixel density of a predetermined pixel area including the target pixel in the pixel area forming the M-value gradation image is provided. Based on the random number, determining whether or not to calculate the diffusion density value using the random number.The diffusion density value calculation means should calculate the diffusion density value using the random number. The diffusion density value is calculated using the random number, on condition that the determination of the effect is made by the determination means.

【0025】請求項4に記載の発明によると、前記乱数
を用いて前記拡散濃度値を演算すべき旨の判別が前記判
別手段でなされたことを条件に、前記乱数を使用して前
記拡散濃度値が演算されるために、必要性のある領域に
のみ、前記乱数を使用した前記拡散濃度値の演算が行な
われる。
According to the fourth aspect of the present invention, on the condition that the determination unit determines that the diffusion density value should be calculated using the random number, the diffusion density value can be calculated using the random number. Since the value is calculated, the calculation of the diffusion density value using the random number is performed only in a necessary area.

【0026】請求項5に記載の発明は、請求項4に記載
の発明の構成に加えて、前記判別手段は、前記画素領域
内の画素濃度の最大値と最小値を基に前記判別を行なう
ことを特徴とする。
According to a fifth aspect of the present invention, in addition to the configuration of the fourth aspect of the present invention, the determining means performs the determination based on a maximum value and a minimum value of the pixel density in the pixel area. It is characterized by the following.

【0027】請求項5に記載の発明によると、前記画素
領域内の画素濃度の最大値と最小値を基に前記判別が行
なわれるために、判別処理が容易となる。
According to the fifth aspect of the present invention, since the determination is performed based on the maximum and minimum values of the pixel density in the pixel area, the determination process is facilitated.

【0028】[0028]

【発明の実施の形態】以下、図面を参照しつつ、本発明
における実施の形態の1つである画像処理装置について
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus according to one embodiment of the present invention will be described below with reference to the drawings.

【0029】図1は、画像処理装置1の構成および処理
概要を説明するためのブロック図である。画像処理装置
1は、MPU2、CCDなどの光電変換素子およびこれ
を走査する駆動系からなる画像入力装置3、A/D変換
装置4、Log変換装置5、先鋭度補正装置(MTF補
正装置)6、ガンマ補正装置7、画像2値化装置8、画
像記録装置9を含む。
FIG. 1 is a block diagram for explaining the configuration of the image processing apparatus 1 and the outline of processing. The image processing apparatus 1 includes an MPU 2, an image input device 3 including a photoelectric conversion element such as a CCD and a drive system for scanning the same, an A / D conversion device 4, a Log conversion device 5, a sharpness correction device (MTF correction device) 6 , A gamma correction device 7, an image binarization device 8, and an image recording device 9.

【0030】画像入力装置3は、たとえば連続階調画
像、線画などからなる混在原稿を読取って標本化アナロ
グ信号を生成する。A/D変換装置4は、画像入力装置
3で生成された標本化アナログ信号を1画素がたとえば
8ビット(256階調)の値を持つ連続階調反射率デー
タとして量子化する。Log変換装置5は、量子化され
た連続階調反射率データを対数変換して8ビット連続階
調濃度データを算出する。先鋭度補正装置(MTF補正
装置)6は、たとえばラプラシアンフィルタなどのデジ
タルフィルタを用いて、8ビット連続階調濃度データ画
像の先鋭度補正を行なう。ガンマ補正装置7は、画像入
力装置3と画像記録装置9の階調カーブの差異を補正し
て画像処理装置1全体として望ましいガンマ特性を実現
するために、ガンマ補正を行なう。このガンマ補正は、
たとえば256ワード8ビット程度のLUT(ルックア
ップテーブル)として機能するRAMを用いて、MPU
2により非線形ガンマ補正データが設定されることによ
り行なわれる。画像2値化装置8は、後述する誤差拡散
2値化法を用いて、ガンマ補正された8ビット連続階調
濃度データを明暗に応じた1ビット2値データに変換す
る。変換された1ビット2値データは、電子写真プリン
タあるいはインクジェットプリンタなどからなる画像記
録装置9により所定の記録媒体に印字される。
The image input device 3 reads a mixed document composed of, for example, a continuous tone image, a line drawing, and the like, and generates a sampled analog signal. The A / D conversion device 4 quantizes the sampled analog signal generated by the image input device 3 as continuous tone reflectance data in which one pixel has a value of, for example, 8 bits (256 tones). The Log converter 5 performs logarithmic conversion of the quantized continuous tone reflectance data to calculate 8-bit continuous tone density data. The sharpness correction device (MTF correction device) 6 performs sharpness correction of an 8-bit continuous tone density data image using a digital filter such as a Laplacian filter, for example. The gamma correction device 7 performs gamma correction in order to correct a difference in a gradation curve between the image input device 3 and the image recording device 9 and realize a desired gamma characteristic of the image processing device 1 as a whole. This gamma correction is
For example, using a RAM that functions as an LUT (look-up table) of about 256 words and 8 bits,
This is performed by setting non-linear gamma correction data according to 2. The image binarization device 8 converts the gamma-corrected 8-bit continuous tone density data into 1-bit binary data corresponding to light and dark by using an error diffusion binarization method described later. The converted 1-bit binary data is printed on a predetermined recording medium by an image recording device 9 such as an electrophotographic printer or an ink jet printer.

【0031】図2は、画像処理装置1で行なわれる誤差
拡散2値化処理の第1実施形態を示すブロック線図であ
る。また、図3は、図2の誤差拡散2値化処理の処理手
順を示すフローチャートである。図2および図3を参照
しながら、第1実施形態に係わる誤差拡散2値化処理の
処理内容を以下に詳細に説明する。
FIG. 2 is a block diagram showing a first embodiment of the error diffusion binarization process performed by the image processing apparatus 1. FIG. 3 is a flowchart showing a processing procedure of the error diffusion binarization processing of FIG. The processing contents of the error diffusion binarization processing according to the first embodiment will be described below in detail with reference to FIGS.

【0032】図2を参照して、従来技術として説明した
図11のブロック線図と比較して、この第1実施形態が
異なる点は、High基準値HBおよびLow基準値L
Bに対して乱数を加算する乱数発生器23がさらに設け
られている点にある。セレクタ19へは、High基準
値HBおよびLow基準値LBに対して乱数が加算され
た値が入力され、いずれか一方の値が2値化誤差Exy
算出のための基準値B′xyとして選択されて減算器1
8に出力されることになる。
Referring to FIG. 2, the first embodiment differs from the block diagram of FIG. 11 described as the prior art in that a high reference value HB and a low reference value L
The point is that a random number generator 23 for adding a random number to B is further provided. A value obtained by adding a random number to the High reference value HB and the Low reference value LB is input to the selector 19, and one of the values is converted to a binarization error Exy.
The subtractor 1 is selected as a reference value B'xy for calculation.
8 will be output.

【0033】図3のフローチャートに基づいて処理内容
を説明すると、まず、注目画素データIxyが加算器1
6に入力されたか否かが判断される(S1)。注目画素
データIxyは、前述のガンマ補正された8ビット連続
階調濃度データを構成する画素の1つであって、2値化
対象となる画素の濃度データである。
The processing will be described with reference to the flowchart of FIG. 3. First, the target pixel data Ixy is added to the adder 1.
6 is determined (S1). The target pixel data Ixy is one of the pixels constituting the above-described gamma-corrected 8-bit continuous tone density data, and is density data of a pixel to be binarized.

【0034】注目画素の入力がない場合には処理が終了
したか否か、すなわち、多値階調入力画像のすべての画
素について2値化処理が終了したか否かが判断される
(S13)。
If there is no input of the pixel of interest, it is determined whether or not the processing has been completed, that is, whether or not the binarization processing has been completed for all the pixels of the multi-value gradation input image (S13). .

【0035】そして、すべての画素について2値化処理
が終了していない限り処理が再びS1に戻る。
Then, as long as the binarization processing has not been completed for all the pixels, the processing returns to S1 again.

【0036】注目画素が入力されれば、この注目画素の
濃度データに加算すべき重み付き平均誤差Eavexy
が算出され(S2)、この重み付き平均誤差Eavex
yがIxyに加算されてI′xyとされる(S3)。E
avexyは、図2に示すように、誤差重み付けフィル
タ22を使用した処理により算出される値であり、入力
値をフィードバックして算出される。
When the target pixel is input, the weighted average error Eavexy to be added to the density data of the target pixel
Is calculated (S2), and this weighted average error Eavex is calculated.
y is added to Ixy to obtain I'xy (S3). E
The avexy is a value calculated by a process using the error weighting filter 22, as shown in FIG. 2, and is calculated by feeding back the input value.

【0037】次に、比較器17において、このI′xy
が2値化処理のしきい値Thよりも大きいか否かが判断
される(S4)。I′xyがThよりも大きい場合には
2値化後の出力画素濃度データBxyが1に設定される
(S5)。一方、しきい値Th以下である場合には出力
画素濃度データBxyが0に設定される(S6)。ま
た、設定されたBxyは、セレクタ19へも出力され
る。
Next, in the comparator 17, this I'xy
Is greater than or equal to the threshold value Th of the binarization process (S4). If I'xy is greater than Th, the binarized output pixel density data Bxy is set to 1 (S5). On the other hand, if it is equal to or smaller than the threshold Th, the output pixel density data Bxy is set to 0 (S6). The set Bxy is also output to the selector 19.

【0038】次に、乱数発生器23より乱数ZRand
(randmax)が抽出される(S7)。乱数ZRa
nd(以下、乱数Zと略す)が採り得る値の範囲は、誤
差拡散法により得られる画像の画質を損ねることのない
範囲で適宜定めることができるが、たとえば、画素のダ
イナミックレンジの10%〜20%程度とすることが考
えられる。今、ダイナミックレンジを0〜1とすると、
乱数Zの値は0.1〜0.2となる。
Next, the random number generator 23 outputs a random number ZRand
(Randmax) is extracted (S7). Random number ZRa
The range of possible values of nd (hereinafter abbreviated as random number Z) can be appropriately determined within a range that does not impair the image quality of an image obtained by the error diffusion method. It may be about 20%. Now, assuming that the dynamic range is 0 to 1,
The value of the random number Z ranges from 0.1 to 0.2.

【0039】次に、S5またはS6で設定されたBxy
が1であるか否かが判断される(S8)。Bxyが1の
場合には、High基準値HBに乱数Zの加算された値
がセレクタ19で選択され、基準値B′xyとして減算
器18に出力される(S9)。一方、Bxyが1でない
場合には、すなわちBxy=0であり、Low基準値L
Bに乱数Zの加算された値がセレクタ19で選択され、
基準値B′xyとして減算器18に出力される(S1
0)。
Next, Bxy set in S5 or S6
Is determined to be 1 (S8). When Bxy is 1, the value obtained by adding the random number Z to the High reference value HB is selected by the selector 19, and is output to the subtractor 18 as the reference value B'xy (S9). On the other hand, when Bxy is not 1, that is, Bxy = 0, and the low reference value L
The value obtained by adding the random number Z to B is selected by the selector 19,
The reference value B'xy is output to the subtractor 18 (S1
0).

【0040】次に、補正済の画素データI′xyと、2
値化結果から得られた基準値B′xyとから2値化誤差
Exyが算出され、誤差格納部21に格納される(S1
1)。
Next, the corrected pixel data I'xy and 2 '
A binarization error Exy is calculated from the reference value B'xy obtained from the binarization result and stored in the error storage unit 21 (S1).
1).

【0041】次に、注目画素位置が更新され(S1
2)、すべての画素について2値化処理が終了していな
い場合には再度処理が前記S1に戻り(S13)、上記
処理が繰返し行なわれる。
Next, the target pixel position is updated (S1).
2) If the binarization process has not been completed for all the pixels, the process returns to S1 again (S13), and the above process is repeated.

【0042】以上説明したようにこの第1実施形態で
は、2値化誤差Exyを算出するための基準値B′xy
が、乱数Zを使用して演算されているため、特に分散の
少ない一様な濃度レベルの画像を2値化処理する際に発
生しがちなスネークラインテクスチャと呼ばれる独特の
縞模様の低減を図ることができる。また、2値化処理す
る際のしきい値Thを変化させることなく、2値化誤差
Exyのみを乱数を用いてランダムに変化させるように
処理がなされるため、誤差拡散のフィードバック要素の
いずれかを乱数によって制御する場合と比較して、誤差
拡散法の特徴である、優れた階調表現能力が低下してし
まうことを極力防止できる。
As described above, in the first embodiment, the reference value B'xy for calculating the binarization error Exy is used.
Is calculated using the random number Z, so that a unique stripe pattern called a snake line texture, which is likely to occur particularly when binarizing an image having a uniform density level with small variance, is achieved. be able to. Further, since the processing is performed such that only the binarization error Exy is changed at random using a random number without changing the threshold value Th in the binarization processing, any one of the error diffusion feedback elements is used. As compared with the case where is controlled by random numbers, it is possible to prevent as much as possible the deterioration of the excellent gradation expression ability, which is a feature of the error diffusion method.

【0043】図4は、本実施形態に示す誤差拡散2値化
法により処理され、出力された画像例を示す図である。
処理対象の多値階調入力画像は、図12に示した処理結
果が得られた多値階調入力画像と同一である。図示で明
らかなとおり、同一の多値階調入力画像を処理した結
果、図4では、従来の誤差拡散2値化法により処理され
出力された画像(図12)に比較してスネークラインテ
クスチャが低減し、一様な画素分布がより忠実に再現さ
れていることがわかる。一方、文字”5”については、
乱数を用いて誤差分散を行なったにも係わらず、図12
と比較して画像の再現性に遜色なく線画が明瞭に再現さ
れていることがわかる。
FIG. 4 is a diagram showing an example of an image processed and output by the error diffusion binarization method shown in this embodiment.
The multi-value gradation input image to be processed is the same as the multi-value gradation input image from which the processing result shown in FIG. 12 is obtained. As is apparent from the drawing, as a result of processing the same multi-valued gradation input image, in FIG. 4, the snake line texture is compared with the image processed and output by the conventional error diffusion binarization method (FIG. 12). It can be seen that the uniform pixel distribution is more faithfully reproduced. On the other hand, for the character "5",
Although error dispersion was performed using random numbers, FIG.
It can be seen that the line drawing is clearly reproduced without inferior to the reproducibility of the image as compared with FIG.

【0044】図5は、画像処理装置1で行なわれる誤差
拡散2値化処理の第2実施形態を示すブロック線図であ
る。第1実施形態として説明した図2のブロック線図と
比較してこの第2実施形態が異なる点は、注目画素デー
タIxyが入力される領域判別部24がさらに設けられ
ている点である。
FIG. 5 is a block diagram showing a second embodiment of the error diffusion binarization process performed by the image processing apparatus 1. The second embodiment differs from the block diagram of FIG. 2 described as the first embodiment in that an area determining unit 24 to which target pixel data Ixy is input is further provided.

【0045】図6には、領域判別部24の構成が示され
ている。領域判別部24は、ラインメモリ27、最大値
/最小値検出フィルタ28、LUT(ルックアップテー
ブル)29,30を有する。入力される注目画素データ
Ixyは、ラインメモリ27により順次記憶される。こ
のラインメモリ27は、4ライン分記憶可能なように、
4つ設けられている。そして、新たに注目画素データI
xyが入力されるごとにその注目画素*を中心に含む5
×5局所領域のa〜xまでの25画素が抽出されて、最
大値/最小値検出フィルタ28により、25画素の画素
濃度の「最大値」、「最小値」、「最大値−最小値」が
それぞれ検出される。25画素の「最大値」および「最
大値−最小値」は、LUT29へ、「最小値」および
「最大値−最小値」は、LUT30へ、それぞれ出力さ
れる。LUT29は、最大値/最小値検出フィルタ28
から入力される値に応じたHigh基準値HBを内部に
記憶されているテーブルデータから選択して加算器25
へ出力する。また、LUT30は、最大値/最小値検出
フィルタ28から入力される値に応じたLow基準値L
Bを内部に記憶されているテーブルデータから選択して
加算器26へ出力する。
FIG. 6 shows the structure of the area determining section 24. The area determination unit 24 includes a line memory 27, a maximum / minimum value detection filter 28, and LUTs (look-up tables) 29 and 30. The input target pixel data Ixy is sequentially stored by the line memory 27. The line memory 27 can store four lines.
Four are provided. Then, the new target pixel data I
Each time xy is input, 5 including the target pixel * at the center
25 pixels from a to x in the x5 local area are extracted, and the maximum / minimum value detection filter 28 determines the “maximum value”, “minimum value”, and “maximum value−minimum value” of the pixel density of 25 pixels. Are respectively detected. The “maximum value” and “maximum value−minimum value” of the 25 pixels are output to the LUT 29, and the “minimum value” and “maximum value−minimum value” are output to the LUT 30. The LUT 29 is a maximum / minimum value detection filter 28
The high reference value HB corresponding to the value input from the table is selected from the table data stored therein, and an adder 25 is selected.
Output to The LUT 30 has a low reference value L corresponding to a value input from the maximum value / minimum value detection filter 28.
B is selected from the internally stored table data and output to the adder 26.

【0046】図7には、LUT29に入力される「最大
値−最小値」と、LUT29で選択されるHigh基準
値HBとの関係を例示する図が示されている。また、図
8には、LUT30に入力される「最大値−最小値」
と、LUT30で選択されるLow基準値LBとの関係
を例示する図が示されている。これらの図では、縦軸が
High基準値HB(Max)またはLow基準値LB
(Min)を示し、横軸が「最大値−最小値」(Max
−Min)を示す。また、入力される多値階調画像の階
調を8ビット(0〜255)としている。
FIG. 7 is a diagram illustrating a relationship between the “maximum value−minimum value” input to the LUT 29 and the High reference value HB selected by the LUT 29. FIG. 8 shows “maximum value−minimum value” input to the LUT 30.
And a diagram illustrating a relationship between the low reference value LB selected by the LUT 30 and the low reference value LB. In these figures, the vertical axis represents the High reference value HB (Max) or the Low reference value LB.
(Min), and the horizontal axis indicates “maximum value−minimum value” (Max
−Min). In addition, the gradation of the input multi-valued gradation image is set to 8 bits (0 to 255).

【0047】「最大値−最小値」の値がより大きくなる
程、その局所領域はたとえば文字領域などとしての特性
が強く現れるように2値化処理する必要があり、「最大
値−最小値」の値がより小さくなる程、その局所領域は
たとえば写真領域などとしての特性が強く現れるように
2値化処理する必要がある。図7、図8に示す関係に従
ってHigh基準値HBおよびLow基準値LBが変化
して選択されるようにLUT29,30のテーブルを設
定すれば、文字領域または文字領域に適したガンマ特性
を得ることができる。
As the value of “maximum value−minimum value” becomes larger, the local area needs to be binarized so that the characteristics as a character area, for example, appear more strongly. Is smaller, the local area needs to be binarized so that the characteristics as a photographic area, for example, appear more strongly. If the tables of the LUTs 29 and 30 are set so that the High reference value HB and the Low reference value LB are changed and selected according to the relationships shown in FIGS. 7 and 8, a gamma characteristic suitable for a character area or a character area can be obtained. Can be.

【0048】再び、図5を参照して、領域判別部24で
設定されたHigh基準値HB、Low基準値LBは、
それぞれ加算器25、加算器26に入力される。これ以
降、第1実施形態と同様に乱数発生器23で発生した乱
数がHigh基準値HB、Low基準値LBに加算され
てセレクタ19に入力される。以下の処理は第1実施形
態と同様であるために、ここではこれ以降のブロック線
図の詳細な説明を省略する。
Referring to FIG. 5 again, the High reference value HB and the Low reference value LB set by the area determination unit 24 are
These are input to the adders 25 and 26, respectively. Thereafter, the random number generated by the random number generator 23 is added to the High reference value HB and the Low reference value LB and input to the selector 19 as in the first embodiment. Since the following processing is the same as that of the first embodiment, the detailed description of the subsequent block diagram is omitted here.

【0049】以上説明したように、この第2実施形態に
よれば、たとえば、文字領域あるいは写真領域に適した
ガンマ特性を得ることができ、かつ、High基準値H
B、Low基準値LBへの乱数加算により、第1実施形
態と同様にSnake−Lineテクスチャを低減させ
ることができる。したがって、たとえば、図4の出力画
像が得られた元の多値階調画像をこの第2実施形態で処
理した場合、この第2実施形態の方が第1実施形態に比
較して、より文字領域”5”の再現性が高くなることが
期待される。
As described above, according to the second embodiment, for example, a gamma characteristic suitable for a character area or a photograph area can be obtained, and the high reference value H
B, the Snake-Line texture can be reduced by adding a random number to the Low reference value LB as in the first embodiment. Therefore, for example, when the original multi-valued gradation image from which the output image of FIG. 4 is obtained is processed in the second embodiment, the second embodiment is more character-readable than the first embodiment. It is expected that the reproducibility of the area “5” will be high.

【0050】図9は、画像処理装置1で行なわれる誤差
拡散2値化処理の第3実施形態を示すブロック線図であ
る。なお、この図9では、第2実施形態の図5と構成が
同一である部分については図示を省略している。具体的
には、図5に示した乱数発生器23、領域判別部24、
加算器25、加算器26から成る構成部分をこの図9の
構成に置き換えた構成が第3実施形態に係わる全体ブロ
ック線図となる。
FIG. 9 is a block diagram showing a third embodiment of the error diffusion binarization process performed by the image processing apparatus 1. Note that, in FIG. 9, a portion having the same configuration as that of FIG. 5 of the second embodiment is not illustrated. Specifically, the random number generator 23 shown in FIG.
A configuration in which the components including the adder 25 and the adder 26 are replaced with the configuration of FIG. 9 is an overall block diagram according to the third embodiment.

【0051】第2実施形態として説明した図5のブロッ
ク線図と比較して、この第3実施形態が作用的に異なる
点は、注目画素*を中心に含む5×5局所領域の画素の
画素濃度の「最大値−最小値」に応じて、セレクタ19
(図5参照)に出力するHigh基準値HBおよびLo
w基準値LBに乱数を加算するか否かが判断される点に
ある。つまり、常にHigh基準値HBおよびLow基
準値LBに乱数を加算する第2実施形態または第1実施
形態と異なり、この第3実施形態では、5×5局所領域
の状態に応じて乱数加算の必要性の有無(Snake−
Lineテクスチャの発生の可能性の有無)が判断され
るのである。
Compared to the block diagram of FIG. 5 described as the second embodiment, the third embodiment is operatively different from the block diagram of the pixel of the 5 × 5 local area including the target pixel * at the center. In accordance with the “maximum value−minimum value” of the density, the selector 19
(See FIG. 5) High reference values HB and Lo output to
The point is that it is determined whether to add a random number to the w reference value LB. That is, unlike the second embodiment or the first embodiment in which a random number is always added to the High reference value HB and the Low reference value LB, in the third embodiment, it is necessary to add a random number in accordance with the state of the 5 × 5 local area. Sex (Snake-
The presence or absence of the occurrence of Line texture) is determined.

【0052】図9および図10さらには図5を参照しな
がら、第3実施形態に係わる誤差拡散2値化処理の処理
を説明すると、まず、注目画素データIxyが加算器1
6に入力されたか否かが判断され(S21)、注目画素
データが入力されれば、重み付き平均誤差Eavexy
の算出(S22)、I′xyの算出(S23)が行なわ
れる。次に、I′xyと2値化処理のしきい値Th1と
が比較されて(S4)、出力画素濃度データBxyが算
出される(S25、S26)。
The error diffusion binarization processing according to the third embodiment will be described with reference to FIGS. 9 and 10 and FIG. 5. First, the pixel data of interest Ixy is added to the adder 1.
6 is determined (S21). If the pixel data of interest is input, the weighted average error Eavexy is determined.
(S22) and I′xy (S23). Next, I'xy is compared with the threshold value Th1 of the binarization processing (S4), and output pixel density data Bxy is calculated (S25, S26).

【0053】次に、領域判別部24において、注目画素
*を中心に含む5×5局所領域の画素の画素濃度の「最
大値−最小値」(Max−Min)が演算される(S2
7)。領域判別部24は、第2実施形態と同様の最大値
/最小値検出フィルタ28とラインメモリ27を有して
いる。最大値/最小値検出フィルタ28は、このS27
で5×5局所領域の画素の「最大値−最小値」を検出す
る。なお、第2実施形態と異なり、領域判別部24には
LUT29,30は構成されていない。
Next, the area discriminating section 24 calculates the "maximum value-minimum value" (Max-Min) of the pixel density of the pixels of the 5 * 5 local area including the target pixel * at the center (S2).
7). The area determining unit 24 has a maximum / minimum value detection filter 28 and a line memory 27 similar to those of the second embodiment. The maximum / minimum value detection filter 28 determines the value of S27
Detects the “maximum value−minimum value” of the pixels in the 5 × 5 local area. Note that, unlike the second embodiment, the area determination unit 24 does not include the LUTs 29 and 30.

【0054】次に、「最大値−最小値」(Max−Mi
n)が、しきい値Th2より小さいか否かが比較器31
で判断される。このTh2は、5×5局所領域が特に分
散の少ない一様な濃度分布特性を有する領域であるか否
か、換言すれば、乱数Zを使用することなく2値化処理
した場合にSnake−Lineテクスチャの発生し得
る領域であるか否かを判別するためのしきい値である。
「最大値−最小値」が、しきい値Th2より小さい場合
には、5×5局所領域が特に分散の少ない一様な濃度分
布特性を有する領域であると考えられるため、比較器3
1からその旨を示す信号がセレクタ32,33に出力さ
れる。
Next, "maximum value-minimum value" (Max-Mi
n) is smaller than the threshold value Th2.
Is determined. This Th2 is whether or not the 5 × 5 local area is an area having a uniform density distribution characteristic with a particularly small variance, in other words, when the binarization processing is performed without using the random number Z, the Snake-Line This is a threshold value for determining whether or not the area is where a texture can occur.
If the “maximum value−minimum value” is smaller than the threshold value Th2, the 5 × 5 local region is considered to be a region having a uniform density distribution characteristic with a particularly small variance.
From 1, a signal indicating this is output to the selectors 32 and 33.

【0055】セレクタ32は、比較器31から入力され
る信号に応じて、High基準値HBに乱数発生器23
から入力される乱数Zを加算するか否かを選択し、セレ
クタ19(図5参照)にHigh基準値HBを出力す
る。一方、セレクタ33は、比較器31から入力される
信号に応じて、Low基準値LBに乱数発生器23から
入力される乱数Zを加算するか否かを選択し、セレクタ
19(図5参照)にLow基準値LBを出力する。
The selector 32 changes the High reference value HB to the random number generator 23 according to the signal input from the comparator 31.
Is selected, and a High reference value HB is output to the selector 19 (see FIG. 5). On the other hand, the selector 33 selects whether or not to add the random number Z input from the random number generator 23 to the Low reference value LB according to the signal input from the comparator 31 and selects the selector 19 (see FIG. 5). Output the Low reference value LB.

【0056】したがって、S28でYESの判断がなさ
れれば、セレクタ32,33でHigh基準値HBおよ
びLow基準値LBに乱数Zが加算され(S29)、加
算結果がHigh基準値HBおよびLow基準値LBと
してセレクタ19に出力される(S30)。一方、S2
8でNOの判断がなされれば、乱数Zが加算されること
なく、セレクタ32,33からHigh基準値HBおよ
びLow基準値LBがそのままセレクタ19に出力され
る(S30)。
Therefore, if YES is determined in S28, the random numbers Z are added to the High reference value HB and the Low reference value LB by the selectors 32 and 33 (S29), and the addition result is the High reference value HB and the Low reference value. The data is output to the selector 19 as LB (S30). On the other hand, S2
If NO is determined in Step 8, the High reference value HB and the Low reference value LB are output from the selectors 32 and 33 to the selector 19 without any addition of the random number Z (S30).

【0057】なお、乱数Zの値の範囲は、第1実施形態
と同様に、たとえば、画素のダイナミックレンジの10
%〜20%程度とすることが考えられる。
The range of the value of the random number Z is, for example, 10 pixels of the dynamic range of the pixel as in the first embodiment.
% To about 20%.

【0058】次に、出力画素濃度データBxyの値に応
じて、2値化誤差を算出する際の基準値B′xyがHi
gh基準値HBまたはLow基準値LBに設定され(S
31、S32、S33)、2値化誤差Exyが算出され
る(S34)。その後、注目画素位置が更新され(S3
5)、すべての画素について2値化処理が終了するまで
(S36)、前記処理が繰返し行なわれる。
Next, according to the value of the output pixel density data Bxy, the reference value B'xy for calculating the binarization error is set to Hi.
gh reference value HB or Low reference value LB (S
31, S32, S33), a binarization error Exy is calculated (S34). Thereafter, the target pixel position is updated (S3
5) The above processing is repeated until the binarization processing is completed for all the pixels (S36).

【0059】以上説明したように、この第3実施形態に
よれば、5×5局所領域の状態に応じて乱数加算の必要
性の有無(Snake−Lineテクスチャの発生の可
能性の有無)が判断され、5×5局所領域が、たとえば
文字領域のような場合には乱数は加算されない。したが
って、Snake−Lineテクスチャの発生の可能性
の低い領域まで徒に乱数加算処理が行なわれて却って画
質の低下を招いてしまう不都合を防止できる。また、乱
数加算処理が無駄に行なわれて2値化処理の速度を低下
させてしまうことをも防止できる。このことは、特に処
理速度に難の多い誤差拡散法において、効果的な作用を
もたらす。
As described above, according to the third embodiment, the necessity of random number addition (the possibility of generation of a Snake-Line texture) is determined according to the state of the 5 × 5 local area. When the 5 × 5 local area is, for example, a character area, no random number is added. Therefore, it is possible to prevent the inconvenience that the random number addition processing is performed to the area where the possibility of the occurrence of the Snake-Line texture is low and the image quality is rather deteriorated. Further, it is possible to prevent the random number addition processing from being performed wastefully and lowering the speed of the binarization processing. This has an effective effect particularly in the error diffusion method having a difficult processing speed.

【0060】次に、以上説明した各実施形態の変形例を
列挙する。 (1) 乱数Zは、High基準値HBおよびLow基
準値LBに加算されているが、High基準値HBおよ
びLow基準値LBから減算するように構成してもよ
い。
Next, modifications of the above-described embodiments will be listed. (1) The random number Z is added to the High reference value HB and the Low reference value LB, but may be configured to be subtracted from the High reference value HB and the Low reference value LB.

【0061】(2) 2値化誤差算出の手順として、乱
数ZがHigh基準値HBまたはLow基準値LBに加
算された後、この値が I′xyから減算されるように
構成しているが、I′xyから乱数Zを減算した後に、
High基準値HBまたはLow基準値LBを減算して
もよい。この場合、たとえば図2において、加算器16
と減算器18との間に減算器を設け、乱数発生器26は
乱数Zをその減算器に出力してやるように構成すればよ
い。
(2) As a procedure for calculating the binarization error, the random number Z is added to the High reference value HB or the Low reference value LB, and then this value is subtracted from I'xy. , I′xy after subtracting the random number Z,
The High reference value HB or the Low reference value LB may be subtracted. In this case, for example, in FIG.
A subtractor may be provided between the subtractor 18 and the random number generator 26 to output the random number Z to the subtractor.

【0062】(3) 乱数発生器23は、High基準
値HBとLow基準値LBとでそれぞれ異なる乱数を発
生するように構成してもよい。この場合、乱数の範囲を
同一として乱数の発生周期などを変化させるようにして
もよく、あるいは、乱数の範囲が異なるようにしてもよ
い。
(3) The random number generator 23 may be configured to generate different random numbers for the High reference value HB and the Low reference value LB. In this case, the range of random numbers may be changed with the same range of random numbers, or the ranges of random numbers may be different.

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

【図1】画像処理装置1の概略構成を示すブロック図で
ある。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus 1.

【図2】画像処理装置1の制御処理を説明するためのブ
ロック線図である(第1実施形態)。
FIG. 2 is a block diagram for explaining control processing of the image processing apparatus 1 (first embodiment).

【図3】画像処理装置1の制御処理を説明するためのフ
ローチャートである(第1実施形態)。
FIG. 3 is a flowchart illustrating a control process of the image processing apparatus 1 (first embodiment).

【図4】画像処理装置1による2値化処理によりSna
ke−Lineテクスチャの低減が図られた出力画像例
を示す図である。
FIG. 4 is a diagram illustrating an example in which Sna is performed by binarization processing performed by the image processing apparatus 1.
FIG. 8 is a diagram illustrating an example of an output image in which ke-Line texture is reduced.

【図5】画像処理装置1の制御処理を説明するためのブ
ロック線図である(第2実施形態)。
FIG. 5 is a block diagram for explaining control processing of the image processing apparatus 1 (second embodiment).

【図6】画像処理装置1の制御処理を説明するためのブ
ロック線図である(第2実施形態)。
FIG. 6 is a block diagram for explaining control processing of the image processing apparatus 1 (second embodiment).

【図7】画像処理装置1で選択されるHigh基準値H
B(Max)と、5×5局所領域の画素の「最大値−最
小値」との関係を例示する図である。
FIG. 7 shows a High reference value H selected by the image processing apparatus 1.
It is a figure which illustrates the relationship between B (Max) and "maximum value-minimum value" of the pixel of a 5x5 local area.

【図8】画像処理装置1で選択されるLow基準値LB
(Min)と、5×5局所領域の画素の「最大値−最小
値」との関係を例示する図である。
FIG. 8 is a low reference value LB selected by the image processing apparatus 1.
It is a figure which illustrates the relationship between (Min) and "maximum value-minimum value" of the pixel of a 5x5 local area.

【図9】画像処理装置1の制御処理を説明するためのブ
ロック線図である(第3実施形態)。
FIG. 9 is a block diagram for explaining control processing of the image processing apparatus 1 (third embodiment).

【図10】画像処理装置1の制御処理を説明するための
フローチャートである(第3実施形態)。
FIG. 10 is a flowchart illustrating a control process of the image processing apparatus 1 (third embodiment).

【図11】従来の画像処理装置の制御処理を説明するた
めのブロック線図である。
FIG. 11 is a block diagram for explaining control processing of a conventional image processing apparatus.

【図12】従来の画像処理装置による2値化処理により
顕著に現れるSnake−Lineテクスチャを示す図
である。
FIG. 12 is a diagram showing a Snake-Line texture that appears conspicuously by the binarization processing by the conventional image processing apparatus.

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

1 画像処理装置 8 画像2値化装置 17 比較器 19 セレクタ 21 誤差格納部 22 誤差重み付けフィルタ 23 乱数発生器 24 領域判別部 27 ラインメモリ 28 最大値/最小値検出フィルタ 29、30 LUT(ルックアップテーブル) 31 比較器 32、33 セレクタ Reference Signs List 1 image processing device 8 image binarization device 17 comparator 19 selector 21 error storage unit 22 error weighting filter 23 random number generator 24 area discriminating unit 27 line memory 28 maximum / minimum value detection filter 29, 30 LUT (lookup table) ) 31 Comparator 32, 33 Selector

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 Mが3以上のM値階調画像を誤差拡散法
を利用して2値階調再現可能な画像処理装置であって、 前記M値階調画像を構成する画素のうち2値階調再現対
象である注目画素の周辺画素に拡散すべき拡散濃度値を
演算する拡散濃度値演算手段と、 乱数を発生する乱数発生手段とを含み、 前記拡散濃度値演算手段は、2値階調再現前の前記注目
画素の濃度値と、2値階調再現後の前記注目画素の階調
を条件にして定められる基準値と、前記乱数発生手段で
発生する乱数とを使用して前記拡散濃度値を演算可能で
あることを特徴とする、画像処理装置。
1. An image processing apparatus capable of reproducing an M-value gradation image having an M of 3 or more into a binary gradation by using an error diffusion method, wherein two of pixels constituting the M-value gradation image are included. A diffusion density value calculating means for calculating a diffusion density value to be diffused to a peripheral pixel of the pixel of interest to be reproduced, and a random number generating means for generating a random number; Using a density value of the pixel of interest before tone reproduction, a reference value determined on the condition of the tone of the pixel of interest after binary tone reproduction, and a random number generated by the random number generating means, An image processing apparatus capable of calculating a diffusion density value.
【請求項2】 前記拡散濃度値演算手段は、前記基準値
に前記乱数を加算可能な乱数加算手段を含み、 2値階調再現前の前記注目画素の濃度値と、前記乱数加
算手段の加算結果との差を求めることにより前記拡散濃
度値を演算することを特徴とする、請求項1に記載の画
像処理装置。
2. The method according to claim 2, wherein the diffusion density value calculation means includes a random number addition means capable of adding the random number to the reference value, and adds a density value of the target pixel before binary tone reproduction and the random number addition means. The image processing apparatus according to claim 1, wherein the diffusion density value is calculated by calculating a difference from the result.
【請求項3】 前記M値階調画像を構成する画素領域の
うち前記注目画素を含む所定の画素領域の画素濃度に基
づいて、前記基準値の大きさを設定する基準値設定手段
を含むことを特徴とする、請求項1に記載の画像処理装
置。
3. A reference value setting means for setting a magnitude of the reference value based on a pixel density of a predetermined pixel region including the target pixel in a pixel region constituting the M-value gradation image. The image processing apparatus according to claim 1, wherein:
【請求項4】 前記M値階調画像を構成する画素領域の
うち前記注目画素を含む所定の画素領域の画素濃度に基
づいて、前記乱数を使用して前記拡散濃度値を演算すべ
きか否かを判別する判別手段とを含み、 前記拡散濃度値演算手段は、前記乱数を用いて前記拡散
濃度値を演算すべき旨の判別が前記判別手段でなされた
ことを条件に、前記乱数を使用して前記拡散濃度値を演
算することを特徴とする、請求項1に記載の画像処理装
置。
4. A method for calculating whether or not to calculate the diffusion density value using the random number, based on a pixel density of a predetermined pixel area including the target pixel in a pixel area forming the M-value gradation image. Determining means for calculating the diffusion density value using the random number, provided that the determination means has determined that the diffusion density value should be calculated using the random number. The image processing apparatus according to claim 1, wherein the diffusion density value is calculated by the calculation.
【請求項5】 前記判別手段は、前記画素領域内の画素
濃度の最大値と最小値を基に前記判別を行なうことを特
徴とする、請求項4に記載の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the determination unit performs the determination based on a maximum value and a minimum value of a pixel density in the pixel area.
JP9298737A 1997-10-30 1997-10-30 Image processor Withdrawn JPH11136510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9298737A JPH11136510A (en) 1997-10-30 1997-10-30 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9298737A JPH11136510A (en) 1997-10-30 1997-10-30 Image processor

Publications (1)

Publication Number Publication Date
JPH11136510A true JPH11136510A (en) 1999-05-21

Family

ID=17863613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9298737A Withdrawn JPH11136510A (en) 1997-10-30 1997-10-30 Image processor

Country Status (1)

Country Link
JP (1) JPH11136510A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6917446B2 (en) 2000-09-21 2005-07-12 Kyocera Mita Corporation Image processing apparatus and image processing method
US8184917B2 (en) 2009-08-05 2012-05-22 Brother Kogyo Kabushiki Kaisha Image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6917446B2 (en) 2000-09-21 2005-07-12 Kyocera Mita Corporation Image processing apparatus and image processing method
US8184917B2 (en) 2009-08-05 2012-05-22 Brother Kogyo Kabushiki Kaisha Image processor

Similar Documents

Publication Publication Date Title
US5870503A (en) Image processing apparatus using error diffusion technique
JP2500837B2 (en) Pixel value quantization method
US6118547A (en) Image processing method and apparatus
JPH08107500A (en) Error diffusion halfton processing system and method of using homogeneous response of high/low brightness picture area
JP3700357B2 (en) Image processing device
JPH0354679A (en) Picture processor
JP3752805B2 (en) Image processing device
US5825940A (en) Image processing method and apparatus for binary-coding multivalue image data
JPH11136510A (en) Image processor
US5926570A (en) Optical scanner using dithering with adaptive threshold
JP2002064706A (en) Image processing unit and image processing method
JP2662401B2 (en) Image processing device
JP2755307B2 (en) Image processing device
JP3263201B2 (en) Image processing device
JP3379300B2 (en) Image processing device
JP3346111B2 (en) Image processing device
JP3157870B2 (en) Image processing method
JPH02210960A (en) Picture processor
JPH0644800B2 (en) Image processing device
JP3549475B2 (en) Image processing method
JP3432064B2 (en) Image processing apparatus and method
JP2857906B2 (en) Halftone binarization processor
JP4185720B2 (en) Image processing apparatus and image processing method
JP2880561B2 (en) Image processing device
JP2002335402A (en) Image processing unit, image forming device, image processing method, program and recording medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050104