JPH03186063A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH03186063A
JPH03186063A JP1324051A JP32405189A JPH03186063A JP H03186063 A JPH03186063 A JP H03186063A JP 1324051 A JP1324051 A JP 1324051A JP 32405189 A JP32405189 A JP 32405189A JP H03186063 A JPH03186063 A JP H03186063A
Authority
JP
Japan
Prior art keywords
threshold value
signal
error
density
binarization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1324051A
Other languages
Japanese (ja)
Other versions
JP2859333B2 (en
Inventor
Joji Oki
丈二 大木
Takafumi Sawaki
沢木 宇文
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1324051A priority Critical patent/JP2859333B2/en
Publication of JPH03186063A publication Critical patent/JPH03186063A/en
Application granted granted Critical
Publication of JP2859333B2 publication Critical patent/JP2859333B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent a phenomenon, which is generated at the part of low picture density, to close and hit dots by varying a threshold value for error dispersion stop corresponding to the density of an input picture element. CONSTITUTION:Read picture data are successively converted to digital data by an A/D converter 2 and signals 100, which are corrected by shading correction, etc., are simultaneously outputted to a threshold value setting circuit 4 for error dispersion stop and a binarizing processing circuit 5. In the threshold value setting circuit 4, a threshold value for error dispersion stop is set by the corrected signal 100 and on the other hand, in the binarizing processing circuit 5, a binarizing processing is executed to the corrected signal 100. Then, an error dispersion processing at the time of binarizing is executed by a threshold value signal 200 outputted from the threshold value setting circuit 4. Namely, the variably set threshold value corresponding to input picture element data is compared with binarizing error and according to the compared result, error dispersion is executed. Thus, the phenomenon to close and hit the dots is prevented from being generated in the part of the low picture density.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、特に所定領域の平均濃度
値に基づいて注目画素の2値化を行い、発生する2値化
誤差を周辺画素に拡散し、画像の濃度を保存可能な画像
処理装置に関するものである。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to an image processing device, and in particular, binarizes a pixel of interest based on the average density value of a predetermined area, and converts the generated binarization error to surrounding pixels. The present invention relates to an image processing device that can diffuse images and store the density of images.

[従来の技術] 近年、デジタルプリンタやファクシミリ装置等の画像処
理装置において、中間調を再現するための2値化手法と
して、2値化処理で発生した誤差を周辺の画素に分散す
る誤差拡散法εいう手法が注目されている。
[Prior Art] In recent years, as a binarization method for reproducing halftones in image processing devices such as digital printers and facsimile machines, error diffusion methods have been used to disperse errors generated in the binarization process to surrounding pixels. A method called ε is attracting attention.

[発明が解決しようとしている課題] また、類似の手法として平均濃度保存法という手法が提
案されている。この平均濃度保存法は、注目画素周辺の
既に処理済領域中のドツトの配置から算出される平均濃
度を閾値として注目画素を2値化し、この際に発生する
2値化誤差を周辺の画素に分散する事により、濃度を保
存する手法である。但し、2値化誤差が所定の閾値より
大きい場合は、誤差拡散処理を中止(適応型誤差補正)
するように構成されている。
[Problems to be Solved by the Invention] A similar method called the average concentration preservation method has been proposed. This average density preservation method binarizes the pixel of interest using the average density calculated from the arrangement of dots in the already processed area around the pixel of interest as a threshold, and converts the binarization error that occurs at this time into surrounding pixels. This is a method of preserving concentration by dispersing it. However, if the binarization error is larger than a predetermined threshold, error diffusion processing is stopped (adaptive error correction).
is configured to do so.

しかしながら、上記平均濃度保存法では、誤差拡散処理
を行うか否かを所定の閾値によって判断しているため、
例えば原稿濃度が低い部分では、再生画像中にドツトが
近接して発生し、それが線状につながって画像の品位を
著しく低下させるという欠点があった。また、原稿濃度
が高い部分では、逆にドツトが打たれないために白いノ
イズが発生するという欠点もあった。
However, in the above average concentration preservation method, since it is determined whether or not to perform error diffusion processing based on a predetermined threshold value,
For example, in areas where the density of the original is low, dots are generated close to each other in the reproduced image, and these dots are connected in a linear manner, resulting in a significant deterioration of the quality of the image. In addition, there is also the drawback that white noise is generated in areas where the document density is high because no dots are printed.

本発明は、上記課題を解決するために成されたもので、
入力画素濃度に応じて誤差拡散中止用の閾値を可変にす
る事により、画像濃度の低い部分で生じていたドツトと
ドツトが近接して打たれる現象を防止する事ができると
共に、画像濃度の高い部分で、ドツトが打たれないため
に生じる白いノイズも防止できる画像処理装置を提供す
ることを目的とする。
The present invention was made to solve the above problems, and
By varying the threshold for stopping error diffusion according to the input pixel density, it is possible to prevent the phenomenon of dots being placed close to each other, which occurs in areas with low image density, and also to reduce the image density. It is an object of the present invention to provide an image processing device capable of preventing white noise caused due to no dots being struck in high areas.

[課題を解決するための手段] 上記目的を達成するために、本発明の画像処理装置は以
下の構成から・成る。すなわち、所定領域の平均濃度値
に基づいて注目画素の2値化を行い、発生する2値化誤
差を周辺画素に拡散し5画像の濃度を保存可能な画像処
理装置であって、入力画素データの濃度に応じて前記2
値化誤差の拡散を行うか否かを特定する閾値を可変に設
定する設定手段と、該設定手段で設定された閾値と前記
2値化誤差とを比較する比較手段と、該比較手段での結
果に従って誤差拡散を行い、2値化処理を行う2値化手
段とを有する。
[Means for Solving the Problems] In order to achieve the above object, an image processing device of the present invention has the following configuration. That is, the image processing device is capable of binarizing a pixel of interest based on the average density value of a predetermined area, diffusing the binarization error that occurs to surrounding pixels, and storing the density of five images. 2 according to the concentration of
a setting means for variably setting a threshold value for specifying whether or not to perform diffusion of the digitization error; a comparison means for comparing the threshold value set by the setting means with the binarization error; and a binarization means for performing error diffusion and binarization processing according to the result.

【作用] 以上の構成において、所定領域の平均濃度値に基づいて
注目画素の2値化を行い、発生する2値化誤差を周辺画
素に拡散する際に、入力画素データに応じて可変に設定
された閾値と2値化誤差とを比較し、その結果に従って
誤差拡散を行い、2値化処理を行うように動作する。
[Operation] In the above configuration, when binarizing the pixel of interest based on the average density value of a predetermined area and diffusing the generated binarization error to surrounding pixels, the settings are variably set according to the input pixel data. The threshold value and the binarization error are compared, error diffusion is performed according to the result, and the binarization process is performed.

[実施例] 以下、添付図面を参照して本発明に係る好適な一実施例
を詳細に説明する。
[Embodiment] Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、本実施例での画像処理装置の構成を示す概略
ブロック図である。
FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus in this embodiment.

まず、CCD等の充電変換素子及びそれを走査する駆動
系を含む入力装置1で読み取られた画像データは、逐次
A/D変換器2へ送られる。この変換器2では、各画素
のアナログデータな例えば8ビツトのデジタルデータに
変換し、これにより256レベルの階調を持つデータに
量子化する。
First, image data read by an input device 1 including a charging conversion element such as a CCD and a drive system for scanning it is sequentially sent to an A/D converter 2. The converter 2 converts the analog data of each pixel into, for example, 8-bit digital data, which is then quantized into data having 256 levels of gradation.

次に、補正回路3において、CCDセンサの感度ムラや
照明光源による照度ムラを補正するためにシェーディン
グ補正等の補正をデジタル演算処理で行う。そして、補
正された信号(補正済信号)100が誤差拡散中止用の
閾値設定回路4と2値化処理回路5へ同時に出力される
。この閾値設定回路4では、補正回路3からの補正済信
号100により誤差拡散中止用の閾値を設定し、閾値信
号200を出力する。
Next, in the correction circuit 3, corrections such as shading correction are performed by digital calculation processing in order to correct unevenness in sensitivity of the CCD sensor and unevenness in illuminance due to the illumination light source. Then, the corrected signal (corrected signal) 100 is simultaneously output to the threshold value setting circuit 4 for stopping error diffusion and the binarization processing circuit 5. This threshold setting circuit 4 sets a threshold for stopping error diffusion using the corrected signal 100 from the correction circuit 3, and outputs a threshold signal 200.

一方、2値化回路5では、補正回路3から出力された補
正済信号(8ビツト多値の画像データ)100を1ビツ
ト2値の2値信号300に2値化処理(量子化処理)し
、閾値設定回路4から出力された閾値信号200により
2値化時の誤差拡散処理を行う、そして、レーザビーム
プリンタ又はインクジェットプリンタ等により構成され
る出力装置6では、2値化回路5からの2値信号300
をドツトのオン・オフにより画像形成を行う。
On the other hand, the binarization circuit 5 binarizes (quantizes) the corrected signal (8-bit multivalued image data) 100 output from the correction circuit 3 into a 1-bit binary signal 300. , an error diffusion process during binarization is performed using the threshold signal 200 output from the threshold setting circuit 4, and an output device 6 configured with a laser beam printer, an inkjet printer, etc. value signal 300
Image formation is performed by turning on and off the dots.

第2図は、上述の誤差拡散中止用閾値設定回路4の詳細
を示すブロック図である。
FIG. 2 is a block diagram showing details of the above-mentioned threshold value setting circuit 4 for stopping error diffusion.

図において、補正回路3から出力された補正済信号10
0はROM7に入力され、対応する値が閾値信号200
として出力される0表1は入力と出力との関係を示す一
例である。
In the figure, a corrected signal 10 output from the correction circuit 3
0 is input to the ROM 7, and the corresponding value is the threshold signal 200.
Table 1 is an example showing the relationship between input and output.

以下余白 表1 ここでは、上記のようにROM7により4通りの閾値を
用いたが、更に多段階の閾値を用いても良い。そのとき
、画像濃度が低い部分では閾値を低くしていったほうが
良い。
Margin Table 1 Below, four threshold values are used in the ROM 7 as described above, but more threshold values may be used. At that time, it is better to lower the threshold value in areas where the image density is low.

第3図は、上述した2値化回路5の構成を示すブロック
図である。
FIG. 3 is a block diagram showing the configuration of the binarization circuit 5 described above.

図において、補正回路3から入力された補正済信号10
0(注目画像濃度)は、エラーバッファメモリ9に保存
されている2値化誤差EIJ(注目画素に配分された誤
差の総和)と加算器8で加算され、その結果として、誤
差補正済信号210が出力される。
In the figure, a corrected signal 10 input from the correction circuit 3
0 (image density of interest) is added by the adder 8 to the binarization error EIJ (sum of errors allocated to the pixel of interest) stored in the error buffer memory 9, and as a result, the error corrected signal 210 is output.

そして、誤差補正済信号210は比較器10に入力され
、平均濃度演算器12で算出された平均濃度信号220
と比較される。ここで、誤差補正済信号210が平均濃
度信号220よりも大きければ1”、小さければ“O”
が2値信号300として出力される。また、この2値信
号300は出力装ff16に入力されると共に、2値メ
モリ11内の所定の画素位置に入力される。
The error-corrected signal 210 is then input to the comparator 10, and the average concentration signal 220 calculated by the average concentration calculator 12
compared to Here, if the error corrected signal 210 is larger than the average density signal 220, it is 1", and if it is smaller, it is "O".
is output as a binary signal 300. Further, this binary signal 300 is input to the output device ff16 and also to a predetermined pixel position in the binary memory 11.

次に、平均濃度演算器12では、2値メモリ11に対し
て重み付け(αXL)を行い、平均濃度信号220を算
出する。この平均濃度とは、2値データに重み係数を掛
けた総和である。第4図に重み係数(αKL)の−例を
示す。但し、「*」は注目画素位置(I、J)に対応し
ている。
Next, the average density calculator 12 weights (αXL) the binary memory 11 to calculate an average density signal 220. This average density is the sum of binary data multiplied by a weighting coefficient. FIG. 4 shows an example of the weighting coefficient (αKL). However, "*" corresponds to the pixel position of interest (I, J).

この平均濃度信号220は、上述の比較器10に入力さ
れると共に、演算器13に入力される。
This average density signal 220 is input to the above-mentioned comparator 10 as well as to the arithmetic unit 13.

また、演算器13には、上述した誤差補正済信号210
が入力されている。ここで、これら2つの信号の差分が
計算され、信号230(ΔE1)として出力される0次
に、この信号230は比較器14に入力され、上述の閾
値設定回路4から出力された閾値信号200と比較され
る。その結果、信号230が信号200より大きければ
、“O”(誤差拡散中止)が、等しいか小さければ、そ
のままの値が信号240として出力される。そしてこの
信号240は重み付は回路15に入力され、ここで、重
み付け(β□)がなされた後、エラーバッファメモリ9
内の所定の画素位置の誤差に加算される。第5図に重み
係数(β□)の−例を示す、なお、「*」は注目画素位
置(I、J)に対応している。
The arithmetic unit 13 also includes the above-mentioned error corrected signal 210.
is entered. Here, the difference between these two signals is calculated and outputted as a signal 230 (ΔE1). This signal 230 is then input to the comparator 14 and the threshold signal 200 outputted from the threshold setting circuit 4 described above. compared to As a result, if the signal 230 is larger than the signal 200, "O" (stop error diffusion) is output, and if the signal 230 is equal to or smaller than the signal 200, the same value is output as the signal 240. This signal 240 is input to the weighting circuit 15, where it is weighted (β□) and then the error buffer memory 9
It is added to the error at a predetermined pixel position within. FIG. 5 shows an example of the weighting coefficient (β□), where “*” corresponds to the pixel position of interest (I, J).

以上の操作を繰り返す事により、平均濃度保存法による
2値化処理が行われる。
By repeating the above operations, binarization processing using the average density preservation method is performed.

このようにして、ドツトのつながりを防ぐことができる
理由としては、以下のように考えることができる。
The reason why the dots can be prevented from connecting in this way can be considered as follows.

例えば極端な例として、誤差拡散中止用の閾値が“O”
の場合を考える。すると、誤差拡散は行われないので、
画像濃度の低い画素に対しては、注目画素周辺の重み係
数に掛かる2値化済データを調べ、その中にドツトをオ
ンする信号があれば注目画素は必ず“0”となる、これ
は、2値化に対する重み係数の果たす役割の比率が高く
なった事を意味する。つまり、このような構成にすると
濃度の低い部分において、ドツトの打たれた周囲にはド
ツトが打たれない事になる。
For example, in an extreme case, the threshold for stopping error diffusion is “O”.
Consider the case of Then, error diffusion does not occur, so
For pixels with low image density, we check the binarized data applied to the weighting coefficients around the pixel of interest, and if there is a signal that turns on the dot, the pixel of interest will always be "0". This means that the weighting coefficient plays a higher role in binarization. In other words, with such a configuration, no dots will be placed around the area where the dots were placed in areas with low density.

以上のような理由から誤差拡散中止用の閾値を下げる事
により、画像濃度の低い部分で、ドツトが近接して打た
れる現象を防止する事ができる。
For the above reasons, by lowering the threshold for stopping error diffusion, it is possible to prevent dots from being placed close together in areas of low image density.

また、画像濃度の高い部分でドツトが打たれないために
生じる白いノイズも防止できる。
It is also possible to prevent white noise that occurs when dots are not placed in areas with high image density.

[他の実施例J 次に、本発明に係る他の実施例について図面を参照して
以下に説明する。
[Other Embodiments J Next, other embodiments according to the present invention will be described below with reference to the drawings.

なお、この実施例では、上述した閾値設定回路4の一部
を変更した場合について述べる。
In this embodiment, a case will be described in which a part of the threshold value setting circuit 4 described above is changed.

補正回路3から出力された信号100はROM7に入力
される。このROM7では、次式により閾値信号200
が出力される。
A signal 100 output from the correction circuit 3 is input to the ROM 7. In this ROM7, the threshold signal 200 is calculated by the following formula.
is output.

(信号200)= (信号100)/ (Ll +L2) ・・・((信号100)≦128の場合)(信号200
)= (255−(信号100)) /(L1+L2) ・・・((信号100)>128の場合)ここでは、L
1=2.L2=40である。
(Signal 200) = (Signal 100) / (Ll + L2) ... (If (Signal 100)≦128) (Signal 200
) = (255 - (signal 100)) / (L1 + L2) ... (if (signal 100) > 128) Here, L
1=2. L2=40.

第6図に信号100と信号200の関係を示すが、これ
は−例であり、信号100が“O”又は′255”に近
づくにつれ、信号200が小さくなるという関係を満た
せばこれに限らない。
Although the relationship between the signal 100 and the signal 200 is shown in FIG. 6, this is just an example, and the relationship is not limited to this as long as the relationship that the signal 200 becomes smaller as the signal 100 approaches "O" or '255' is satisfied. .

以上のような構成にする事により、前述の実施例の場合
と同様に、誤差拡散中止用の閾値を設定する事ができる
With the above configuration, it is possible to set a threshold for stopping error diffusion, as in the case of the above-described embodiment.

[発明の効果] 以上説明した如く、本発明によれば、入力画素濃度に応
じて誤差拡散中止用の閾値を設定する事により1画像源
度の低い部分で生じていたドツトとドツトが近接して打
たれる現象を防止する事ができる。
[Effects of the Invention] As explained above, according to the present invention, by setting the threshold for stopping error diffusion according to the input pixel density, dots that occur in areas with low image source intensity can be brought closer to each other. This can prevent the phenomenon of being hit.

また、画像濃度の高い部分で、ドツトが打たれないため
に生じる白いノイズも防止できる。
In addition, it is possible to prevent white noise that occurs when dots are not printed in areas with high image density.

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

第1図は本実施例における画像処理装置の構成を示すブ
ロック図、 第2図は閾値設定回路4の構成を示すブロック図、 第3図は2値化回路5の詳細な構成を示すブロック図、 第4図は平均濃度演算の重み係数を示す図、第5図は誤
差拡散演算の重み係数を示す図、第6図は他の実施例に
おける信号100と信号200との関係を示す図である
。 図中、1・・・入力装置、2・・・A/D変換器、3・
・・補正回路、4・・・閾値設定回路、5・・・2値化
回路、6・・・出力装置である。 特 許 出 願 人 キャノン株式会社 第4 図 第5図 要因に
FIG. 1 is a block diagram showing the configuration of the image processing device in this embodiment, FIG. 2 is a block diagram showing the configuration of the threshold setting circuit 4, and FIG. 3 is a block diagram showing the detailed configuration of the binarization circuit 5. , FIG. 4 is a diagram showing weighting coefficients for average density calculation, FIG. 5 is a diagram showing weighting coefficients for error diffusion calculation, and FIG. 6 is a diagram showing the relationship between signal 100 and signal 200 in another embodiment. be. In the figure, 1... input device, 2... A/D converter, 3...
. . . Correction circuit, 4 . . . Threshold value setting circuit, 5 . . . Binarization circuit, 6 . . . Output device. Patent applicant Canon Co., Ltd. Figure 4 Figure 5 Factors

Claims (1)

【特許請求の範囲】 所定領域の平均濃度値に基づいて注目画素の2値化を行
い、発生する2値化誤差を周辺画素に拡散し、画像の濃
度を保存可能な画像処理装置であって、 入力画素データの濃度に応じて前記2値化誤差の拡散を
行うか否かを特定する閾値を可変に設定する設定手段と
、 該設定手段で設定された閾値と前記2値化誤差とを比較
する比較手段と、 該比較手段での結果に従って誤差拡散を行い、2値化処
理を行う2値化手段とを有する事を特徴とする画像処理
装置。
[Claims] An image processing device capable of binarizing a pixel of interest based on the average density value of a predetermined area, diffusing the generated binarization error to surrounding pixels, and preserving the density of the image. , a setting means for variably setting a threshold value for specifying whether or not to perform diffusion of the binarization error according to the density of input pixel data; An image processing device comprising a comparison means for making a comparison, and a binarization means for performing error diffusion and binarization processing according to the result of the comparison means.
JP1324051A 1989-12-15 1989-12-15 Image processing device Expired - Fee Related JP2859333B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1324051A JP2859333B2 (en) 1989-12-15 1989-12-15 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1324051A JP2859333B2 (en) 1989-12-15 1989-12-15 Image processing device

Publications (2)

Publication Number Publication Date
JPH03186063A true JPH03186063A (en) 1991-08-14
JP2859333B2 JP2859333B2 (en) 1999-02-17

Family

ID=18161604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1324051A Expired - Fee Related JP2859333B2 (en) 1989-12-15 1989-12-15 Image processing device

Country Status (1)

Country Link
JP (1) JP2859333B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638030A (en) * 1992-07-13 1994-02-10 Mita Ind Co Ltd Image processor
US6999201B1 (en) 1999-05-18 2006-02-14 International Business Machines Corp. Diffusion method using adaptation of diffusion ratio and an apparatus therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638030A (en) * 1992-07-13 1994-02-10 Mita Ind Co Ltd Image processor
US6999201B1 (en) 1999-05-18 2006-02-14 International Business Machines Corp. Diffusion method using adaptation of diffusion ratio and an apparatus therefor

Also Published As

Publication number Publication date
JP2859333B2 (en) 1999-02-17

Similar Documents

Publication Publication Date Title
US5157741A (en) Image processing method and apparatus for out-putting dot-processed data with suppression of false contours and other noise
US6369912B1 (en) Image processing apparatus capable of applying line component to image
EP0382581B1 (en) Image processing apparatus
JP2801195B2 (en) Image processing device
JPH03186063A (en) Picture processor
JP2662401B2 (en) Image processing device
JP2683085B2 (en) Image processing device
JP2859334B2 (en) Image processing device
JP2683084B2 (en) Image processing device
JP2675792B2 (en) Image processing device
JP2662402B2 (en) Image processing device
JP2810396B2 (en) Image processing device
JP3051144B2 (en) Halftone image processing device
JP3475425B2 (en) Image processing apparatus, image processing method thereof, and recording medium recording image processing program
JP3157870B2 (en) Image processing method
JPH0197066A (en) Image processing method
JP2682985B2 (en) Image processing method
JP2670477B2 (en) Image processing device
JPS63288755A (en) Image processing method
JP3346111B2 (en) Image processing device
JPH0197650A (en) Image processing method
JPH03109871A (en) Image processing device
JPH02210961A (en) Image processing device
JPH02210959A (en) Picture processor
JPS63285076A (en) Image processing device

Legal Events

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