JP2001136389A - Picture processor - Google Patents

Picture processor

Info

Publication number
JP2001136389A
JP2001136389A JP2000286587A JP2000286587A JP2001136389A JP 2001136389 A JP2001136389 A JP 2001136389A JP 2000286587 A JP2000286587 A JP 2000286587A JP 2000286587 A JP2000286587 A JP 2000286587A JP 2001136389 A JP2001136389 A JP 2001136389A
Authority
JP
Japan
Prior art keywords
error
image processing
data
pixel
threshold value
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
JP2000286587A
Other languages
Japanese (ja)
Inventor
Takashi Ogamichi
隆司 小河路
Hideyuki Miyazawa
秀幸 宮沢
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000286587A priority Critical patent/JP2001136389A/en
Publication of JP2001136389A publication Critical patent/JP2001136389A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a picture processor for improving the contrast of a halftone picture by storing a threshold for dither processing and a threshold for error diffusion processing in a common data table. SOLUTION: In this picture processor 21 where a dither picture processing means and an error diffusion picture processing means can be selected and used, plural thresholds set as matrix data by the dither picture processing means and a threshold set by the error diffusion picture processing means are stored in a common threshold value register 23 and when picture processing is executed by the error diffusion picture processing means, the threshold is periodically varied for each processing pixel.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、特
に、誤差拡散方式により中間調画像を処理する画像処理
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus for processing a halftone image by an error diffusion method.

【0002】[0002]

【従来の技術】近時、情報化社会にあって、画像データ
を取り扱う装置が多くなっている。このような画像デー
タを取り扱う装置においては、スキャナ等で読み取った
画素データを2値画信号に変換する画像処理装置を必要
としている。また、近時、画像処理装置の取り扱う画像
としては、文字等の白黒の2値画像だけでなく、写真等
の中間調の画像をも取り扱うようになっている。そこ
で、従来、中間調画像の処理方法としては、多値画素デ
ータの画素毎のレベルを所定の複数のスレッシュ値が設
定されたマトリクスデータと比較し、該比較結果に基づ
いて2値化処理し、出力2値画素データを出力して中間
調画像を表現するディザ方式と、多値画素データの画素
毎に量子化処理した出力画素データと入力画素データと
の2値化誤差を周辺画素データに拡散した結果を所定の
設定されたスレッシュ値に基づいて2値化処理し、出力
2値画素データを出力して中間調画像を表現する誤差拡
散方式があるが、ディザ方式に比べて階調性と解像度の
両立を図った誤差拡散方式が注目されている。例えば、
特開昭64−32765号公報には、ディザ法の2値化
を行うためのディザマトリクスと、誤差拡散法の2値化
を行うための単純2値化用のしきい値とを記憶するディ
ザマトリクスメモリを備え、誤差拡散処理時のしきい値
が固定されているものが記載されている。
2. Description of the Related Art Recently, in an information-oriented society, devices handling image data are increasing. In an apparatus that handles such image data, an image processing apparatus that converts pixel data read by a scanner or the like into a binary image signal is required. Recently, the image processing apparatus handles not only monochrome binary images such as characters but also halftone images such as photographs. Therefore, conventionally, as a processing method of a halftone image, a level of each pixel of multi-valued pixel data is compared with matrix data in which a plurality of predetermined threshold values are set, and binarization processing is performed based on the comparison result. A dither method for outputting binary pixel data to represent a halftone image, and converting a binary error between output pixel data and input pixel data quantized for each pixel of multi-value pixel data into peripheral pixel data. There is an error diffusion method in which a result of the diffusion is binarized based on a predetermined set threshold value, and output binary pixel data is output to express a halftone image. Attention has been focused on an error diffusion method that achieves a balance between resolution and resolution. For example,
Japanese Patent Application Laid-Open No. 64-32765 discloses a dither matrix for performing binarization of the dither method and a threshold value for simple binarization for performing binarization of the error diffusion method. It discloses a matrix memory having a fixed threshold value at the time of error diffusion processing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の誤差拡散方式にあっては、入力画素データが
全黒レベルあるいは全白レベルのとき、2値化誤差は発
生しないにもかかわらず、それまでの画素データの累積
誤差が保存されて、2値化のスレッシュ値を常に一定と
した場合、誤差拡散特有のテクスチャ(誤差拡散が充分
でないときに発生する画像の尾引き現象)が発生し、こ
れを取り除くため、2値化のスレッシュ値を周期的に変
化させる方法があるが、黒地付近で白点を発生させ、白
地付近で黒点を発生させ易く、出力画像がボケた画像に
なり易いという問題があった。
However, in such a conventional error diffusion system, when the input pixel data is at all black levels or all white levels, no binarization error occurs, If the accumulated error of the pixel data up to that time is stored and the threshold value for binarization is always constant, a texture peculiar to error diffusion (an image tailing phenomenon that occurs when error diffusion is not sufficient) occurs. To eliminate this, there is a method of periodically changing the threshold value of binarization. However, a white point is generated near a black background, a black point is easily generated near a white background, and an output image is easily blurred. There was a problem.

【0004】また、従来の例えば、特開平1−2841
72号公報に記載された画像処理装置により実行される
誤差拡散処理においては、2値化誤差を重み付け演算に
より求めるときに発生する誤差の余り分(小数点以下)
を相関する次の画素データに加算して補正し、補正した
画素データを一定のスレッシュ値により2値化処理して
入力画像濃度と出力画像濃度を保存して画像を再現する
処理が行われているが、この装置の場合も上記のような
誤差拡散特有のテクスチャを取り除くことはできない。
[0004] In addition, for example, Japanese Patent Laid-Open Publication No.
In the error diffusion process executed by the image processing apparatus described in Japanese Patent Application Publication No. 72-72, the remainder (after the decimal point) of an error generated when a binarization error is obtained by a weighting operation.
Is added to the next pixel data to be correlated, corrected, the corrected pixel data is binarized by a certain threshold value, and the process of storing the input image density and the output image density and reproducing the image is performed. However, this apparatus cannot remove the above-mentioned texture peculiar to error diffusion.

【0005】そこで本発明は、ディザ処理用のスレッシ
ュ値と誤差拡散処理用のスレッシュ値を共通のデータテ
ーブルに格納して、中間調画像のコントラストを向上さ
せる画像処理装置を提供することを目的とする。
Accordingly, an object of the present invention is to provide an image processing apparatus which stores a threshold value for dither processing and a threshold value for error diffusion processing in a common data table to improve the contrast of a halftone image. I do.

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明は、
ライン毎に入力される多値画素データの画素毎のレベル
を所定の複数のスレッシュ値が設定されたマトリクスデ
ータと比較し、該比較結果に基づいて2値化処理して出
力2値画素データを出力して中間調画像を表現するディ
ザ画像処理手段と、ライン毎に入力される多値画素デー
タの画素毎に量子化処理した出力画素データと入力画素
データとの誤差を周辺画素データに拡散した結果を所定
の設定されたスレッシュ値に基づいて2値化処理して出
力2値画素データを出力して中間調画像を表現する誤差
拡散画像処理手段と、を備え、ディザ画像処理手段と誤
差拡散画像処理手段を選択して使用可能な画像処理装置
において、前記ディザ画像処理手段でマトリクスデータ
として設定された複数のスレッシュ値と前記誤差拡散画
像処理手段で設定されたスレッシュ値を共通のデータテ
ーブルに格納するとともに、該誤差拡散画像処理部で画
像処理を行うときは、スレッシュ値を処理画素毎に周期
的に変化させることを特徴としている。
According to the first aspect of the present invention,
The level of each pixel of the multi-valued pixel data input for each line is compared with matrix data in which a plurality of predetermined threshold values are set, and binarization processing is performed based on the comparison result to output binary pixel data. A dither image processing means for outputting and expressing a halftone image, and an error between output pixel data quantized for each pixel of multi-valued pixel data input for each line and input pixel data diffused to peripheral pixel data Error diffusion image processing means for binarizing the result based on a predetermined threshold value and outputting output binary pixel data to express a halftone image; and dither image processing means and error diffusion In an image processing apparatus which can be used by selecting an image processing means, a plurality of threshold values set as matrix data by the dither image processing means and setting by the error diffusion image processing means Stores the the thresh value to a common data table, when performing image processing in said error diffusion image processing unit, is characterized by periodically changing the thresh value for each processed pixel.

【0007】[0007]

【作用】請求項1記載の発明では、ディザ画像処理手段
と誤差拡散画像処理手段を選択して使用可能な画像処理
装置において、ディザ画像処理手段でマトリクスデータ
として設定された複数のスレッシュ値と誤差拡散画像処
理手段で設定されたスレッシュ値を共通のデータテーブ
ルに格納するとともに、該誤差拡散画像処理部で画像処
理を行うときは、スレッシュ値を処理画素毎に周期的に
変化させる。
According to the first aspect of the present invention, in an image processing apparatus which can select and use a dither image processing means and an error diffusion image processing means, a plurality of threshold values and error values set as matrix data by the dither image processing means are provided. The threshold value set by the diffusion image processing means is stored in a common data table, and when the error diffusion image processing unit performs image processing, the threshold value is periodically changed for each processing pixel.

【0008】したがって、ディザ画像処理手段と誤差拡
散画像処理手段を備える画像処理装置のハード構成を削
減することができるとともに、誤差拡散特有のテクスチ
ャの発生を除くことができ、中間調画像の画質を向上さ
せることができる。
Accordingly, it is possible to reduce the hardware configuration of the image processing apparatus including the dither image processing means and the error diffusion image processing means, to eliminate the occurrence of texture peculiar to error diffusion, and to reduce the image quality of the halftone image. Can be improved.

【0009】[0009]

【実施例】以下、本発明を実施例に基づいて具体的に説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below based on embodiments.

【0010】図1〜図4は、請求項1記載の発明の画像
処理装置を適用したファクシミリ装置の一実施例を示す
図である。
FIGS. 1 to 4 show an embodiment of a facsimile apparatus to which the image processing apparatus according to the first aspect of the present invention is applied.

【0011】図1は、ファクシミリ装置1のブロック図
であり、ファクシミリ装置1は、イメージセンサ2、A
/D変換器3、タイミングコントローラ4、RAM5及
びデジタル画像処理部6等から構成されている。
FIG. 1 is a block diagram of a facsimile apparatus 1. The facsimile apparatus 1 includes an image sensor 2, A
It comprises a / D converter 3, a timing controller 4, a RAM 5, a digital image processing unit 6, and the like.

【0012】イメージセンサ2は、原稿からの反射光を
電気信号に変換して所定のアナログ信号をA/D変換器
3に出力し、A/D変換器3は、イメージセンサ2から
入力されるアナログ信号を所定のデジタル信号に変換し
てデジタル画像処理部4に出力する。
The image sensor 2 converts the reflected light from the original into an electric signal and outputs a predetermined analog signal to the A / D converter 3. The A / D converter 3 is input from the image sensor 2. The analog signal is converted into a predetermined digital signal and output to the digital image processing unit 4.

【0013】タイミングコントローラ4は、各部の動作
タイミングを制御する制御信号を各部に出力し、RAM
(Random Access Memory)5は、各種参照用データを保
持、更新し、後述する誤差拡散処理に必要な誤差データ
を保持、更新する。
The timing controller 4 outputs a control signal for controlling the operation timing of each section to each section,
(Random Access Memory) 5 holds and updates various kinds of reference data, and holds and updates error data necessary for error diffusion processing described later.

【0014】デジタル画像処理部6は、図2に示すよう
に、誤差演算部7、濃度補正部8、2値化部9、2値化
誤差生成部10及びラッチ部11から構成されており、
全体として誤差拡散処理部を構成する。
As shown in FIG. 2, the digital image processing section 6 comprises an error calculation section 7, a density correction section 8, a binarization section 9, a binarization error generation section 10, and a latch section 11.
The error diffusion processing unit is configured as a whole.

【0015】誤差演算部7は、RAM5に保持された前
回の2値化誤差データにより現画素に対する誤差量を演
算し、その演算結果を濃度補正部8に出力する。
The error calculator 7 calculates an error amount for the current pixel based on the previous binarized error data stored in the RAM 5 and outputs the calculation result to the density corrector 8.

【0016】濃度補正部8は、誤差演算部7から入力さ
れる誤差量演算結果をA/D変換器3から入力される読
取データ(デジタル信号)に加算し、その濃度補正デー
タを2値化部9と2値化誤差演算部10に出力する。
The density correction section 8 adds the error amount calculation result input from the error calculation section 7 to the read data (digital signal) input from the A / D converter 3 and binarizes the density correction data. And outputs the result to the binarization error calculating unit 10.

【0017】2値化部9は、濃度補正部8から入力され
る濃度補正データを入力される所定のスレッシュ値によ
り2値化して2値化データを2値化誤差生成部10と図
外に出力する。
The binarization section 9 binarizes the density correction data input from the density correction section 8 with a predetermined threshold value input thereto, and converts the binarized data to a binarization error generating section 10 outside the figure. Output.

【0018】2値化誤差演算部10は、濃度差補正部8
から入力される濃度補正データにより2値化部9から入
力される2値化データに応じて該画素における2値化誤
差を演算してラッチ部11に出力する。
The binarization error calculator 10 includes a density difference corrector 8
The binarization error in the pixel is calculated according to the binarization data input from the binarization unit 9 based on the density correction data input from the CPU 11 and output to the latch unit 11.

【0019】ラッチ部11は、2値化誤差生成部10か
ら入力された2値化誤差データの出力タイミングを調整
してRAM5と誤差演算部7に出力する。
The latch section 11 adjusts the output timing of the binarized error data input from the binarized error generating section 10 and outputs the adjusted data to the RAM 5 and the error calculating section 7.

【0020】次に、作用を説明する。Next, the operation will be described.

【0021】イメージセンサ2で読み取られた原稿画像
の1ライン分のアナログ信号は、A/D変換器3でデジ
タル信号に変換されてデジタル画像処理部6に出力さ
れ、デジタル画像処理部6内で1ラインの画素毎に誤差
拡散処理が行われる。この誤差拡散処理に際して使用す
る誤差拡散フィルタの一例を図3に示す。図3(a)
は、現画素*とその周辺画素の配分比を示し、図3
(b)は、現画素濃度の誤差データを示している。
An analog signal corresponding to one line of the original image read by the image sensor 2 is converted into a digital signal by the A / D converter 3 and output to the digital image processing unit 6, where the analog signal is output. Error diffusion processing is performed for each pixel of one line. FIG. 3 shows an example of an error diffusion filter used in the error diffusion processing. FIG. 3 (a)
Indicates the distribution ratio of the current pixel * and its surrounding pixels.
(B) shows error data of the current pixel density.

【0022】いま、現画素濃度am,nに対する補正後濃
度a´m,nとすると、次式の演算が行われる。 a´m,n=am,n+(2εm,n-1+2εm-1,n+εm-1,n-1
+εm-1,n+1)/6
[0022] Assuming that corrected density a'm, n for the current pixel density a m, n, the following calculation is performed. a ′ m, n = am , n + (2ε m, n−1 + 2ε m−1, n + ε m−1, n−1
+ Ε m-1, n + 1 ) / 6

【0023】すなわち、2値化誤差生成部10で求めら
れてRAM4に保持された前ラインの前画素の誤差デー
タに基づいて現画素am,nに対する誤差量が誤差演算部
7で演算され、その誤差量が濃度補正部8で現画素a
m,nに所定の割合で加算されて濃度補正が行われて補正
後濃度データa´m,nが求められた後、この補正後濃度
データa´m,nが、2値化部9で2値化処理される。
That is, an error amount for the current pixel am , n is calculated by the error calculator 7 based on the error data of the previous pixel of the previous line obtained by the binarized error generator 10 and held in the RAM 4. The error amount is calculated by the density correction unit 8 at the current pixel a.
m, is added at a predetermined ratio to the n density correction performed by the corrected density data a'm, after n has been determined, the corrected density data a'm, n are, binarization section 9 Binarization processing is performed.

【0024】ここで、補正後濃度データa´m,nによる
2値化信号をadm,n、2値化のスレッシュレベルをT
Hとすると、 a´m,n≧THの時、adm,n=1,εm,n=(a´m,n
M) a´m,n<THの時、adm,n=0,εm,n=a´m,n 但し、εm,n:現画素濃度am,nに対する2値化誤差 M:階調数 (a´m,n−M):a´m,nの補数 となり、いま、階調数Mが16段階で、全黒レベルを1
5、全白レベルを0とし、a´m,n=11、TH=8と
すると、adm,n=1(黒)、εm,n=11−15=−4
となる。すなわち、濃度11の画素を黒(15)に2値
化したことで入出力画素間に(−4)の濃度差(誤差)
が発生し、この誤差分を順次後の画素に拡散して清算し
ていく。なお、εm,nは、2値化誤差生成部10で演算
されてラッチ部11を介して所定タイミングでRAM5
に転送される。
Here, the binarized signal based on the corrected density data a ' m, n is represented by ad m, n , and the threshold level of the binarization is represented by T
Assuming that H, when a ′ m, n ≧ TH, ad m, n = 1, ε m, n = (a ′ m, n
M) When a ′ m, n <TH, ad m, n = 0, ε m, n = a ′ m, n where ε m, n : a binarization error with respect to the current pixel density a m, n M: Number of gradations (a ' m, n -M): Complement of a' m, n , and the number of gradations M is 16 and the total black level is 1
5, if the total white level is 0, a ' m, n = 11, and TH = 8, ad m, n = 1 (black), ε m, n = 11-15 = -4
Becomes That is, by binarizing a pixel having a density of 11 into black (15), a density difference (error) of (-4) between input and output pixels is obtained.
Is generated, and this error is successively diffused to subsequent pixels for liquidation. Note that ε m, n is calculated by the binarization error generation unit 10 and is stored in the RAM 5 at a predetermined timing via the latch unit 11.
Is forwarded to

【0025】しかし、2値化の際のスレッシュ値を一定
にすると、スレッシュ値付近の濃度の画素では誤差が拡
散しきれずに尾引き(テクスチャ)現象が発生するが、
この現象は、スレッシュ値を画素毎に周期的に変化させ
ることで取り除くことができる。
However, if the threshold value at the time of binarization is kept constant, a pixel having a density near the threshold value cannot fully diffuse the error and a tailing (texture) phenomenon occurs.
This phenomenon can be eliminated by periodically changing the threshold value for each pixel.

【0026】また、ディザ処理部も共用する画像処理装
置の場合は、ディザ用のスレッシュ値設定レジスタを共
用することで画像処理装置のハード/ソフトの負担を軽
減することができる。図4にスレッシュ値設定レジスタ
を共用する画像処理装置21の構成例を示す。
In the case of an image processing apparatus that also shares a dither processing unit, the load on the hardware / software of the image processing apparatus can be reduced by sharing a threshold value setting register for dither. FIG. 4 shows a configuration example of the image processing apparatus 21 sharing the threshold value setting register.

【0027】図4において、画像処理装置21は、マル
チプレクサ22、スレッシュ値レジスタ23、システム
制御部24及び比較器25から構成されており、マルチ
プレクサ22により図外でディザ処理されて入力される
ディザ画素信号と誤差拡散処理されて入力される誤差拡
散画素信号のうち一方が選択されて比較器25に出力さ
れ、画素毎のスレッシュ値がセットされたスレッシュ値
レジスタ(データテーブル)23からスレッシュ値が比
較器25に出力されると、比較器25で入力されたスレ
ッシュ値に基づいてディザ画素信号あるいは誤差拡散画
素信号が2値化処理されて2値データとして出力され
る。システム制御部24では、これら各部の動作が制御
されるとともに、スレッシュ値レジスタ23から読み出
すスレッシュ値が指示される。
In FIG. 4, an image processing device 21 comprises a multiplexer 22, a threshold value register 23, a system control unit 24 and a comparator 25. One of the signal and the error diffusion pixel signal input after error diffusion processing is selected and output to the comparator 25, and the threshold value is compared from the threshold value register (data table) 23 in which the threshold value for each pixel is set. When the dither pixel signal or the error diffusion pixel signal is output to the comparator 25 based on the threshold value input by the comparator 25, it is binarized and output as binary data. The system control unit 24 controls the operations of these units, and specifies a threshold value to be read from the threshold value register 23.

【0028】また、いま、読み取られた読取データの画
素濃度が全黒レベル(15)で、累積誤差が(−6)、
スレッシュ値を6〜10の範囲で変化させたとすると、
濃度補正後のデータは、9となるからスレッシュ値が6
〜9に変化するときには、2値化出力は、1(黒)、2
値化生成誤差は、15−9=6として保存される。この
状態が続き、スレッシュ値が10に設定されると、2値
化出力は、0(白)となり、入力データが全黒レベルに
もかかわらず、出力側では、全白として出力されてしま
う。また、スレッシュ値を変化させない場合でも、黒地
部の周辺で白点が発生し易くなり、画像のコントラスト
がボケてしまう印象を与えることがある。
Now, the pixel density of the read data is all black level (15), the accumulated error is (-6),
Assuming that the threshold value is changed in the range of 6 to 10,
Since the data after the density correction is 9, the threshold value is 6
-9, the binarized output is 1 (black), 2
The binarization generation error is stored as 15-9 = 6. When this state continues and the threshold value is set to 10, the binary output becomes 0 (white), and the output side is output as all white on the output side even though the input data is at all black levels. Further, even when the threshold value is not changed, white spots are likely to be generated around the black background portion, giving an impression that the contrast of the image is blurred.

【0029】このような画像のボケをなくすための画像
処理方式を適用する画像処理装置の一実施例を図6〜9
に示す。
FIGS. 6 to 9 show an embodiment of an image processing apparatus to which an image processing method for eliminating such blurring of an image is applied.
Shown in

【0030】図6は、誤差拡散処理機能を有する画像処
理装置31の要部ブロック図であり、上記図2に示した
画像処理装置と同一の構成部分には、同一番号を符して
説明を省略する。
FIG. 6 is a block diagram of a main part of an image processing apparatus 31 having an error diffusion processing function. The same components as those of the image processing apparatus shown in FIG. Omitted.

【0031】図6において、全黒/全白判定部(全黒全
白判別手段)32は、読取データが全黒か全白かを判定
し、例えば、(1,0)全黒、(0,1)全白、(0,
0)非全黒、全白という信号を2値化誤差生成部9と2
値化部11に出力する。
In FIG. 6, an all-black / all-white judging section (all-black all-white judging means) 32 judges whether the read data is all black or all white. , 1) all white, (0,
0) The signals of non-all black and all white are converted to the binary error generators 9 and 2
Output to the value conversion unit 11.

【0032】システム制御部33は、各部の動作を制御
するとともに、2値化部11へ2値化用のスレッシュ値
データを入力する。
The system control unit 33 controls the operation of each unit and inputs threshold value data for binarization to the binarization unit 11.

【0033】次に、作用を説明する。Next, the operation will be described.

【0034】全黒/全白判定部32から(1,0)全
黒、(0,1)全白、(0,0)非全黒、全白という信
号が2値化誤差生成部9及び2値化部11に出力される
と、全黒あるいは全白のとき、2値化誤差が“0”とさ
れ、2値化部11では、全黒あるいは全白が検出される
と、システム制御部33から入力されるスレッシュ値に
かかわらず2値化データを黒又は白として出力される。
この2値化出力は、2値化後のデータを変換してもよい
し、スレッシュレベルを全黒データに対して全白レベル
に設定し、全白データに対して全黒レベルに設定しても
よい。
The signals of (1,0) all black, (0,1) all white, (0,0) non-all black, and all white are output from the all black / all white determination section 32 to the binarization error generation section 9 and When output to the binarization unit 11, the binarization error is set to “0” in the case of all black or all white. Regardless of the threshold value input from the unit 33, the binarized data is output as black or white.
This binarized output may be obtained by converting the data after binarization, or by setting the threshold level to an all white level for all black data and to an all black level for all white data. Is also good.

【0035】また、全黒、全白時の補正は、累積誤差が
小さいときには、行わないようにすることもできる。す
なわち、上記累積誤差が(−5)以上のときは、6〜1
0のスレッシュ値にかかることはない。また、これら全
黒、全白の判定は、どちらか一方の判定だけを行うよう
にしてもよい。
The correction for all black and all white may not be performed when the accumulated error is small. That is, when the cumulative error is equal to or more than (−5), 6 to 1
It does not affect a threshold value of zero. Further, the determination of all black and all white may be made by performing only one of the determinations.

【0036】これらの全黒、全白の判定を処理するため
の具体的な回路構成例を図6〜8に示す。
FIGS. 6 to 8 show specific examples of circuit configurations for processing the determination of all black and all white.

【0037】図6は、図5の2値化誤差生成部9に適用
される論理回路構成を示しており、全黒、全白の入力に
応じて濃度補正部8から入力される複数画素分の濃度デ
ータの2値化誤差がそれぞれ演算されて、図外のRAM
5と誤差演算部6に出力される。
FIG. 6 shows a logic circuit configuration applied to the binarization error generating section 9 of FIG. 5, and includes a plurality of pixels input from the density correcting section 8 in response to all black and all white inputs. The binarization errors of the density data of
5 and output to the error calculator 6.

【0038】図7は、図5の2値化部11に適用される
論理回路構成を示しており、システム制御部33から入
力されるスレッシュ値ではなく、全黒/全白判定部32
から入力される全黒、全白データで濃度補正部8から入
力される濃度データが比較されて2値化処理されて2値
化データが出力される。
FIG. 7 shows a logic circuit configuration applied to the binarization unit 11 of FIG. 5, and not the threshold value input from the system control unit 33 but the all black / all white determination unit 32.
The density data input from the density correction unit 8 is compared with the all black and all white data input from the CPU, and the binarized data is output.

【0039】図8は、図5の2値化部11に適用される
スレッシュ値を変化させる部分の論理回路構成を示して
おり、全黒/全白判定部32から入力される全黒、全白
データに応じてシステム制御部33から入力されるスレ
ッシュ値が選択されてスレッシュ値が出力され、図外の
2値化部11内で2値化演算が行われる。
FIG. 8 shows a logical circuit configuration of a portion for changing the threshold value applied to the binarizing section 11 of FIG. The threshold value input from the system control unit 33 is selected according to the white data, the threshold value is output, and the binarization operation is performed in the binarization unit 11 (not shown).

【0040】図9は、画像処理装置31における上記全
黒、全白の判定処理に伴う2値化処理手順のフローチャ
ートを示している。
FIG. 9 shows a flowchart of the binarization processing procedure involved in the above all black and all white determination processing in the image processing apparatus 31.

【0041】図9において、全黒/全白判定部32から
入力されるデータが全黒か全白かを判別し(ステップS
l)、全黒か全白のときは、2値化誤差を“0”とし
(ステップS2)、累積誤差に応じてスレッシュ値を変
換して(ステップS3)2値化処理し(ステップS
4)、2値化誤差を演算し(ステップS5)、2値化誤
差にかかわらず黒又は白の2値データに変更して(ステ
ップS6)2値化誤差を演算する(ステップS7)。
In FIG. 9, it is determined whether the data input from the all black / all white determining section 32 is all black or all white (step S).
l) If the image is all black or all white, the binarization error is set to “0” (step S2), the threshold value is converted according to the accumulated error (step S3), and the binarization process is performed (step S2).
4) Calculate the binarization error (step S5) and change to black or white binary data regardless of the binarization error (step S6) to calculate the binarization error (step S7).

【0042】また、ステップSlで全黒でも全白でもな
いときは、濃度補正演算を行って補正後濃度データを求
め(ステップS8)、補正後濃度データをシステム制御
部33から入力されるスレッシュ値で2値化処理して2
値データを出力するとともに、補正後濃度データで2値
化誤差を演算する(ステップS10)。
If it is not all black or all white in step Sl, density correction calculation is performed to obtain corrected density data (step S8), and the corrected density data is set to a threshold value input from the system controller 33. And binarize to 2
In addition to outputting the value data, a binarization error is calculated using the corrected density data (step S10).

【0043】したがって、全黒または全白の画素データ
が入力された場合の2値化誤差を“0”とすることで中
間調画像のコントラストを向上させることができ、全黒
または全白の画素データが入力された場合に累積誤差量
に応じて2値化誤差を“0”に設定しているので、2値
化のスレッシュ値を周期的に変化させても黒地中の白点
や白地中の黒点の発生をなくすことができ、全黒、全白
データに応じて2値化データに変換しているので、累積
誤差を保存しつつ中間調画像のコントラストを向上させ
ることができる。
Accordingly, the contrast of the halftone image can be improved by setting the binarization error to "0" when the all-black or all-white pixel data is inputted, and the all-black or all-white pixel can be improved. When the data is input, the binarization error is set to “0” according to the accumulated error amount. Therefore, even if the threshold value of the binarization is periodically changed, the white point in the black background or the white background , And conversion to binary data according to all black and all white data, it is possible to improve the contrast of a halftone image while preserving the accumulated error.

【0044】また、2値化誤差を演算する際に端数分を
丸める場合があるが、この端数を“0”に近付く方向に
丸めるようにすれば、誤差の整数化を早めることがで
き、画質の向上を図ることができる。また、2値化誤差
を演算する際に2の補数で演算した結果が、負の値とな
った場合は、端数の丸めを行った後に、“1”を加算す
ることにより、誤差の整数化を早めて画質の向上を図る
ことができる。
When calculating the binarization error, there is a case where a fraction is rounded. If the fraction is rounded in a direction approaching “0”, the conversion of the error into an integer can be expedited, and the image quality can be improved. Can be improved. In addition, when the result of the two's complement operation when calculating the binarization error is a negative value, the error is converted to an integer by adding “1” after rounding the fraction. And the image quality can be improved earlier.

【0045】例えば、−11÷2=−5.5となった場
合、00101(2の補数)を1ビットシフトさせて0
010(−6)にプラス1して(−5)に補正する。
For example, when −11 ÷ 2 = −5.5, 00101 (two's complement) is shifted by 1 bit to 0
010 (−6) is increased by 1 and corrected to (−5).

【0046】したがって、誤差演算の端数分を“0”に
近づく方向に整数化させているので、誤差の整数化が早
くメリハリのある中間調画像を再現することができる。
Therefore, since the fraction of the error calculation is converted to an integer in a direction approaching "0", the conversion of the error into an integer is quick and a sharp halftone image can be reproduced.

【0047】[0047]

【発明の効果】請求項1記載の発明によれば、ディザ画
像処理手段と誤差拡散画像処理手段を選択して使用可能
な画像処理装置において、ディザ画像処理手段でマトリ
クスデータとして設定された複数のスレッシュ値と誤差
拡散画像処理手段で設定されたスレッシュ値を共通のデ
ータテーブルに格納するとともに、該誤差拡散画像処理
部で画像処理を行うときは、スレッシュ値を処理画素毎
に周期的に変化させているので、ディザ画像処理手段と
誤差拡散画像処理手段を備える画像処理装置のハード構
成を削減することができるとともに、誤差拡散特有のテ
クスチャの発生を除くことができ、中間調画像の画質を
向上させることができる。
According to the first aspect of the present invention, in an image processing apparatus which can select and use dither image processing means and error diffusion image processing means, a plurality of dither image processing means set as matrix data The threshold value and the threshold value set by the error diffusion image processing means are stored in a common data table, and when the error diffusion image processing unit performs image processing, the threshold value is periodically changed for each processing pixel. Therefore, the hardware configuration of the image processing apparatus including the dither image processing unit and the error diffusion image processing unit can be reduced, and the generation of texture unique to error diffusion can be eliminated, and the image quality of the halftone image can be improved. Can be done.

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

【図1】請求項1記載の発明による画像処理装置を適用
したファクシミリ装置のブロック図
FIG. 1 is a block diagram of a facsimile apparatus to which an image processing apparatus according to the first embodiment is applied.

【図2】図1のデジタル画像処理部のブロック図FIG. 2 is a block diagram of a digital image processing unit in FIG. 1;

【図3】図2のデジタル画像処理部で誤差拡散処理の際
に使用される誤差拡散フィルタの一例を示す図
FIG. 3 is a diagram showing an example of an error diffusion filter used at the time of error diffusion processing in the digital image processing unit in FIG. 2;

【図4】請求項1記載の発明による画像処理装置のブロ
ック図
FIG. 4 is a block diagram of an image processing apparatus according to the first embodiment;

【図5】画像処理装置の要部ブロック図FIG. 5 is a main block diagram of the image processing apparatus.

【図6】図5の2値化誤差生成部に適用される論理回路
構成を示す図
FIG. 6 is a diagram showing a configuration of a logic circuit applied to a binarization error generation unit in FIG. 5;

【図7】図5の2値化部に適用される論理回路構成を示
す図
FIG. 7 is a diagram showing a configuration of a logic circuit applied to the binarization unit in FIG. 5;

【図8】図5の2値化部に適用されるスレッシュ値を変
化させる部分の論理回路構成を示す図
FIG. 8 is a diagram showing a logic circuit configuration of a part that changes a threshold value applied to the binarization unit in FIG. 5;

【図9】誤差拡散処理のフローチャートFIG. 9 is a flowchart of an error diffusion process.

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

1 ファクシミリ装置 5 RAM 6 デジタル画像処理部 7 誤差演算部 8 濃度補正部 9 2値化部 10 2値化誤差生成部 21 画像処理装置 22 マルチプレクサ 23 スレッシュ値レジスタ 24 システム制御部 25 比較器 31 画像処理装置 32 全黒/全白判定部 33 システム制御部 Reference Signs List 1 facsimile device 5 RAM 6 digital image processing unit 7 error calculation unit 8 density correction unit 9 binarization unit 10 binarization error generation unit 21 image processing unit 22 multiplexer 23 threshold value register 24 system control unit 25 comparator 31 image processing Device 32 All black / all white judgment unit 33 System control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ライン毎に入力される多値画素データの画
素毎のレベルを所定の複数のスレッシュ値が設定された
マトリクスデータと比較し、該比較結果に基づいて2値
化処理して出力2値画素データを出力して中間調画像を
表現するディザ画像処理手段と、 ライン毎に入力される多値画素データの画素毎に量子化
処理した出力画素データと入力画素データとの誤差を周
辺画素データに拡散した結果を所定の設定されたスレッ
シュ値に基づいて2値化処理して出力2値画素データを
出力して中間調画像を表現する誤差拡散画像処理手段
と、 を備え、ディザ画像処理手段と誤差拡散画像処理手段を
選択して使用可能な画像処理装置において、 前記ディザ画像処理手段でマトリクスデータとして設定
された複数のスレッシュ値と前記誤差拡散画像処理手段
で設定されたスレッシュ値を共通のデータテーブルに格
納するとともに、該誤差拡散画像処理部で画像処理を行
うときは、スレッシュ値を処理画素毎に周期的に変化さ
せることを特徴とする画像処理装置。
1. A method for comparing the level of each pixel of multi-valued pixel data input for each line with matrix data in which a plurality of predetermined threshold values are set, binarizing based on the comparison result, and outputting the result. Dither image processing means for outputting binary pixel data to represent a halftone image; and detecting an error between output pixel data quantized for each pixel of multi-valued pixel data input for each line and input pixel data. Error diffusion image processing means for binarizing the result of diffusion into pixel data based on a predetermined threshold value, outputting output binary pixel data and expressing a halftone image, In an image processing apparatus capable of selecting and using a processing unit and an error diffusion image processing unit, a plurality of threshold values set as matrix data by the dither image processing unit and the error diffusion image The threshold value set by the processing means is stored in a common data table, and when the error diffusion image processing unit performs image processing, the threshold value is periodically changed for each processing pixel. Processing equipment.
JP2000286587A 2000-09-21 2000-09-21 Picture processor Pending JP2001136389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000286587A JP2001136389A (en) 2000-09-21 2000-09-21 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000286587A JP2001136389A (en) 2000-09-21 2000-09-21 Picture processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP28902491A Division JP3157870B2 (en) 1991-11-06 1991-11-06 Image processing method

Publications (1)

Publication Number Publication Date
JP2001136389A true JP2001136389A (en) 2001-05-18

Family

ID=18770487

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000286587A Pending JP2001136389A (en) 2000-09-21 2000-09-21 Picture processor

Country Status (1)

Country Link
JP (1) JP2001136389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3035662A1 (en) * 2014-12-16 2016-06-22 Canon Kabushiki Kaisha Image processing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3035662A1 (en) * 2014-12-16 2016-06-22 Canon Kabushiki Kaisha Image processing apparatus
KR20160073311A (en) * 2014-12-16 2016-06-24 캐논 가부시끼가이샤 Image processing apparatus
US9456108B2 (en) 2014-12-16 2016-09-27 Canon Kabushiki Kaisha Image processing apparatus

Similar Documents

Publication Publication Date Title
JPH05199413A (en) Picture processor
EP0781034B1 (en) Image processing apparatus and method
JPH1084478A (en) Input image conversion method and pixel value quantization method
US6369912B1 (en) Image processing apparatus capable of applying line component to image
US6356361B1 (en) Image processing apparatus and method for processing gradation image data using error diffusion
JP3157870B2 (en) Image processing method
JPH04238462A (en) Picture processor
JP3549475B2 (en) Image processing method
JPH0738767A (en) Image binarizing processor
JP2001136389A (en) Picture processor
JP3051144B2 (en) Halftone image processing device
JP2702593B2 (en) Isolated point removal device
JPH0556263A (en) Printer
JPH0595474A (en) Picture processor
JPH0668250A (en) Image processor
JPH06233122A (en) Image processor
JPH0465974A (en) Image processor
JP2000050069A (en) Picture binarization method and device
JPH06253133A (en) Picture processing device
JPH11136510A (en) Image processor
JPH10262148A (en) Image processor
JPH08204960A (en) Image processor
JPH03186065A (en) Picture processor
JPH09247450A (en) Image processing unit
JPH0575864A (en) Reading system in facsimile