[go: up one dir, main page]

JP2001111831A - Image processing method - Google Patents

Image processing method

Info

Publication number
JP2001111831A
JP2001111831A JP2000286586A JP2000286586A JP2001111831A JP 2001111831 A JP2001111831 A JP 2001111831A JP 2000286586 A JP2000286586 A JP 2000286586A JP 2000286586 A JP2000286586 A JP 2000286586A JP 2001111831 A JP2001111831 A JP 2001111831A
Authority
JP
Japan
Prior art keywords
black
white
pixel data
error
pixel
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
JP2000286586A
Other languages
Japanese (ja)
Other versions
JP3549475B2 (en
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
Priority claimed from JP28902491A external-priority patent/JP3157870B2/en
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000286586A priority Critical patent/JP3549475B2/en
Publication of JP2001111831A publication Critical patent/JP2001111831A/en
Application granted granted Critical
Publication of JP3549475B2 publication Critical patent/JP3549475B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 黒地中の白点の発生や白地中の黒点の発生を
抑えて、中間調画像のコントラストを向上させる画像処
理方式を提供すること。 【解決手段】 ライン毎に入力される多値画素データの
画素毎に量子化処理した出力画素データと入力画素デー
タとの誤差を周辺画素データに拡散した結果を所定の設
定されたスレッシュ値に基づいて2値化処理して出力2
値画素データを出力する画像処理方式において、入力さ
れる多値画素データの画素毎に全黒か全白かを判別する
全黒/全白判定部32を設け、画素毎に全黒あるいは全
白と判別したとき、全黒あるいは全白と判別した画素デ
ータが所定数連続したとき、入力画素データとの誤差を
“0”に設定することを特徴とする画像処理方式。
(57) [Problem] To provide an image processing method for suppressing the occurrence of white spots in a black background and the occurrence of black spots in a white background and improving the contrast of a halftone image. SOLUTION: A result of diffusing an error between input pixel data and output pixel data quantized for each pixel of multi-value pixel data inputted for each line into peripheral pixel data is based on a predetermined threshold value. And binarize and output 2
In an image processing method for outputting value pixel data, an all black / all white determination unit 32 is provided for determining whether all the pixels of input multi-value pixel data are all black or all white, and all black or all white is provided for each pixel. An image processing method for setting an error from input pixel data to "0" when pixel data determined as all black or all white continues for a predetermined number of times.

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 method, and more particularly to an image processing method for processing a halftone image by an error diffusion method.

【0002】[0002]

【従来の技術】近時、情報化社会にあって、画像データ
を取り扱う装置が多くなっている。このような画像デー
タを取り扱う装置においては、スキャナ等で読み取った
画素データを2値画信号に変換する画像処理装置を必要
としている。また、近時、画像処理装置の取り扱う画像
としては、文字等の白黒の2値画像だけでなく、写真等
の中間調の画像をも取り扱うようになっている。そこ
で、従来、中間調画像の処理方法としては、多値画素デ
ータの画素毎のレベルを所定の複数のスレッシュ値が設
定されたマトリクスデータと比較し、該比較結果に基づ
いて2値化処理し、出力2値画素データを出力して中間
調画像を表現するディザ方式と、多値画素データの画素
毎に量子化処理した出力画素データと入力画素データと
の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.

【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】そこで本発明は、誤差拡散処理を行うとき
は、画素毎に全黒か全白かを判別したとき、全黒、全白
データの2値化誤差を“0”とし、また、全黒、全白デ
ータの入力画素データとの誤差にかかわらず全黒データ
あるいは全白データとし、スレッシュ値を全黒データに
対しては、全白レベルに、全白データに対しては、全黒
レベルに設定した画素データを処理画素毎に周期的に変
化させたスレッシュ値で2値化処理することにより、黒
地中の白点の発生や白地中の黒点の発生を抑えて、中間
調画像のコントラストを向上させる画像処理方式を提供
することを目的とする。
Therefore, according to the present invention, when error diffusion processing is performed, when it is determined whether all pixels are all black or all white, the binarization error of all black and all white data is set to "0". Regardless of the error between the input pixel data of black and all white data, all black data or all white data is used, and the threshold value is set to the all white level for all black data and to the all black level for all white data. By binarizing the pixel data set to the level with a threshold value that is periodically changed for each processing pixel, the occurrence of white points in a black background and the occurrence of black points in a white background are suppressed, and the halftone image An object of the present invention is to provide an image processing method for improving contrast.

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明は、
ライン毎に入力される多値画素データの画素毎に量子化
処理した出力画素データと入力画素データとの誤差を周
辺画素データに拡散した結果を所定の設定されたスレッ
シュ値に基づいて2値化処理して出力2値画素データを
出力する画像処理方式において、前記入力される多値画
素データの画素毎に全黒か全白かを判別する全黒全白判
別手段を設け、該画素毎に全黒あるいは全白と判別した
とき、全黒あるいは全白と判別した画素データが所定数
連続したとき、前記入力画素データとの誤差を“0”に
設定することを特徴とし、請求項2記載の発明は、ライ
ン毎に入力される多値画素データの画素毎に量子化処理
した出力画素データと入力画素データとの誤差を周辺画
素データに拡散した結果を所定の設定されたスレッシュ
値に基づいて2値化処理して出力2値画素データを出力
する画像処理方式において、前記入力される多値画素デ
ータの画素毎に全黒か全白かを判別する全黒全白判別手
段を設け、該画素毎に全黒あるいは全白と判別し、かつ
拡散した累積誤差が所定の設定値より大きくなったと
き、前記入力画素データとの誤差を“0”に設定し、該
誤差設定された全黒あるいは全白データを2値化処理す
る際の前記スレッシュ値を処理画素毎に周期的に変化さ
せるとともに、該累積誤差を比較する設定値を該周期的
に変化させるスレッシュ値の最大値と全黒あるいは全白
と判別されるレベルとの差未満とすることを特徴とし、
請求項3記載の発明は、ライン毎に入力される多値画素
データの画素毎に量子化処理した出力画素データと入力
画素データとの誤差を周辺画素データに拡散した結果を
所定の設定されたスレッシュ値に基づいて2値化処理し
て出力2値画素データを出力する画像処理方式におい
て、前記入力される多値画素データの画素毎に全黒か全
白かを判別する全黒全白判別手段を設け、該画素毎に全
黒あるいは全白と判別したとき、前記入力画素データと
の誤差にかかわらず当該画素データを全黒データあるい
は全白データとして2値化処理するとともに、該2値化
処理する際の前記スレッシュ値を処理画素毎に周期的に
変化させることを特徴とし、請求項4記載の発明は、ラ
イン毎に入力される多値画素データの画素毎に量子化処
理した出力画素データと入力画素データとの誤差を周辺
画素データに拡散した結果を所定の設定されたスレッシ
ュ値に基づいて2値化処理して出力2値画素データを出
力する画像処理方式において、前記入力される多値画素
データの画素毎に全黒か全白かを判別する全黒全白判別
手段を設け、前記全黒全白判別手段によって全黒でも全
白でもないと判別したとき、前記スレッシュ値を周期的
に変化させるとともに、前記全黒全白判別手段によって
全黒あるいは全白と判別したとき、前記スレッシュ値
を、全黒データに対しては全白レベルに設定し、全白デ
ータに対しては全黒レベルに設定することを特徴とし、
請求項5記載の発明は、前記全黒全白判別手段における
判別を全黒か全白か一方のみ行うことを特徴としてい
る。
According to the first aspect of the present invention,
An error between the output pixel data quantized for each pixel of the multi-valued pixel data input for each line and the input pixel data is diffused into peripheral pixel data, and the result is binarized based on a predetermined threshold value. In an image processing method of processing and outputting output binary pixel data, an all-black / all-white determination means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided, 3. The method according to claim 2, wherein an error from the input pixel data is set to "0" when a predetermined number of consecutive pieces of pixel data determined to be all black or all white, and when the pixel data is determined to be all black or all white. According to the invention, a result of diffusing an error between input pixel data and output pixel data quantized for each pixel of multi-valued pixel data input for each line into peripheral pixel data is based on a predetermined threshold value. Binary In an image processing method of processing and outputting output binary pixel data, an all-black / all-white determination means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided, When it is determined that the error is all black or all white and the diffused accumulated error is larger than a predetermined set value, the error with the input pixel data is set to “0”, and the error set all black or all white is set. The threshold value when the data is binarized is periodically changed for each pixel to be processed, and the set value for comparing the accumulated error is set to the maximum value of the threshold value for periodically changing the threshold value, and to all black or all white. Characterized by being less than the difference from the level determined as
According to a third aspect of the present invention, a result obtained by diffusing an error between output pixel data quantized for each pixel of input multi-valued pixel data for each line and input pixel data to peripheral pixel data is set to a predetermined value. In an image processing method for performing binarization processing based on a threshold value and outputting output binary pixel data, an all-black / all-white determination for determining whether each pixel of the input multi-valued pixel data is all black or all white Means for determining whether all the pixels are all black or all white, binarizing the pixel data as all black data or all white data regardless of an error with the input pixel data, 5. The method according to claim 4, wherein the threshold value at the time of performing the quantization processing is periodically changed for each processing pixel, and the output obtained by performing the quantization processing for each pixel of the multi-valued pixel data input for each line. Pixel Day In the image processing method of outputting an output binary pixel data by binarizing a result obtained by diffusing an error between the input pixel data and peripheral pixel data into peripheral pixel data based on a predetermined threshold value, All-black all-white discriminating means for discriminating all black or all white for each pixel of the value pixel data is provided, and when the all-black all-white discriminating means determines that neither all black nor all white, the threshold value is cycled. The threshold value is set to an all-white level for all-black data, and is set to an all-white level for all-black data. It is characterized by setting to all black levels,
The invention according to claim 5 is characterized in that the determination by the all-black / all-white determining means is performed only for either all black or all white.

【0007】[0007]

【作用】請求項1記載の発明では、ライン毎に入力され
る多値画素データの画素毎に量子化処理した出力画素デ
ータと入力画素データとの誤差を周辺画素データに拡散
した結果を所定の設定されたスレッシュ値に基づいて2
値化処理して出力2値画素データを出力する画像処理方
式において、入力される多値画素データの画素毎に全黒
か全白かを判別する全黒全白判別手段が設けられ、該画
素毎に全黒あるいは全白と判別されたとき、全黒あるい
は全白の画素データが所定数連続したとき、入力画素デ
ータとの誤差が“0”に設定される。
According to the first aspect of the present invention, a result obtained by diffusing an error between output pixel data quantized for each pixel of multi-valued pixel data input for each line and input pixel data into peripheral pixel data is defined as a predetermined value. 2 based on the set threshold
In an image processing method of performing binarization processing and outputting output binary pixel data, an all-black / all-white discriminating unit that determines whether each pixel of input multi-valued pixel data is all black or all white is provided. When each pixel is determined to be all black or all white, and when a predetermined number of all black or all white pixel data continue, an error from the input pixel data is set to “0”.

【0008】したがって、全黒または全白の画素データ
が入力された場合の2値化誤差を“0”とすることで中
間調画像のコントラストを向上させることができる。
Accordingly, the contrast of a halftone image can be improved by setting the binarization error to "0" when all black or all white pixel data is input.

【0009】請求項2記載の発明では、ライン毎に入力
される多値画素データの画素毎に量子化処理した出力画
素データと入力画素データとの誤差を周辺画素データに
拡散した結果を所定の設定されたスレッシュ値に基づい
て2値化処理して出力2値画素データを出力する画像処
理方式において、入力される多値画素データの画素毎に
全黒か全白かを判別する全黒全白判別手段が設けられ、
該画素毎に全黒あるいは全白と判別されたとき、かつ拡
散した累積誤差が所定の設定値より大きくなったとき、
入力画素データとの誤差が“0”に設定され、該誤差設
定された全黒あるいは全白データを2値化処理する際の
スレッシュ値が処理画素毎に周期的に変化させられると
ともに、該累積誤差を比較する設定値が該周期的に変化
させられるスレッシュ値の最大値と全黒あるいは全白と
判別されるレベルとの差未満に設定される。
According to the second aspect of the present invention, a result obtained by diffusing an error between input pixel data and output pixel data quantized for each pixel of multi-valued pixel data input for each line into peripheral pixel data is determined by a predetermined value. In an image processing method of performing binarization processing based on a set threshold value and outputting output binary pixel data, it is determined whether all pixels of input multi-valued pixel data are all black or all white. White determining means is provided,
When it is determined that all black or all white for each pixel, and when the diffused accumulated error is larger than a predetermined set value,
An error from the input pixel data is set to “0”, and a threshold value for binarizing the all-black or all-white data set with the error is periodically changed for each processing pixel. The set value for comparing the error is set to be less than the difference between the maximum value of the threshold value that is periodically changed and the level determined as all black or all white.

【0010】したがって、全黒または全白の画素データ
が入力された場合に累積誤差量に応じて2値化誤差を
“0”に設定しているので、2値化のスレッシュ値を周
期的に変化させても黒地中の白点や白地中の黒点の発生
をなくすことができる。
Therefore, when all black or all white pixel data is input, the binarization error is set to "0" according to the accumulated error amount, so that the binarization threshold value is periodically set. Even if it is changed, the occurrence of white spots in a black background and black spots in a white background can be eliminated.

【0011】請求項3記載の発明では、ライン毎に入力
される多値画素データの画素毎に量子化処理した出力画
素データと入力画素データとの誤差を周辺画素データに
拡散した結果を所定の設定されたスレッシュ値に基づい
て2値化処理して出力2値画素データを出力する画像処
理方式において、入力される多値画素データの画素毎に
全黒か全白かを判別する全黒全白判別手段が設けられ、
該画素毎に全黒あるいは全白と判別されたとき、入力画
素データとの誤差にかかわらず当該画素データが全黒デ
ータあるいは全白データとして2値化処理されるととも
に、該2値化処理する際のスレッシュ値が処理画素毎に
周期的に変化させられる。
According to the third aspect of the present invention, a result obtained by diffusing an error between input pixel data and output pixel data quantized for each pixel of multi-valued pixel data input for each line into peripheral pixel data is defined as a predetermined value. In an image processing method of performing binarization processing based on a set threshold value and outputting output binary pixel data, it is determined whether all pixels of input multi-valued pixel data are all black or all white. White determining means is provided,
When it is determined that each pixel is all black or all white, the pixel data is binarized as all black data or all white data regardless of an error with the input pixel data, and the binarization processing is performed. The threshold value is periodically changed for each processing pixel.

【0012】したがって、全黒、全白データに応じて2
値化データに変換しているので、累積誤差を保存しつつ
中間調画像のコントラストを向上させることができる。
Therefore, according to all black and all white data, 2
Since the data is converted into the coded data, the contrast of the halftone image can be improved while keeping the accumulated error.

【0013】請求項4記載の発明では、ライン毎に入力
される多値画素データの画素毎に量子化処理した出力画
素データと入力画素データとの誤差を周辺画素データに
拡散した結果を所定の設定されたスレッシュ値に基づい
て2値化処理して出力2値画素データを出力する画像処
理方式において、前記入力される多値画素データの画素
毎に全黒か全白かを判別する全黒全白判別手段が設けら
れ、前記全黒全白判別手段によって全黒でも全白でもな
いと判別されたとき、前記スレッシュ値が周期的に変化
させられるとともに、前記全黒全白判別手段によって全
黒あるいは全白と判別されたとき、前記スレッシュ値
が、全黒データに対しては全白レベルに設定され、全白
データに対しては全黒レベルに設定される。
According to the fourth aspect of the present invention, a result of diffusing an error between output pixel data quantized for each pixel of the multi-valued pixel data inputted for each line and input pixel data into peripheral pixel data is determined by a predetermined value. In an image processing method for performing binarization processing based on a set threshold value and outputting output binary pixel data, all black or all white for each pixel of the input multi-valued pixel data is determined. All-white determining means is provided, and when it is determined by the all-black and all-white determining means that the image is neither all black nor all white, the threshold value is periodically changed and the all black and all white determining means is used. When it is determined to be black or all white, the threshold value is set to an all white level for all black data and to an all black level for all white data.

【0014】したがって、全黒、全白データに応じて2
値化スレッシュ値を変化させているので累積誤差を保存
しつつ中間調画像のコントラストを向上させることがで
きる。
Therefore, according to all black and all white data, 2
Since the binarized threshold value is changed, the contrast of the halftone image can be improved while maintaining the accumulated error.

【0015】請求項5記載の発明では、前記全黒全白判
別手段における判別は全黒か全白か一方のみ行われる。
In the fifth aspect of the present invention, the determination by the all-black / all-white determination means is performed only for either all black or all white.

【0016】[0016]

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

【0017】図1〜図4は、画像処理装置を適用したフ
ァクシミリ装置の一実施例を示す図である。
FIGS. 1 to 4 show an embodiment of a facsimile apparatus to which an image processing apparatus is applied.

【0018】図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 and an image sensor A.
It comprises a / D converter 3, a timing controller 4, a RAM 5, a digital image processing unit 6, and the like.

【0019】イメージセンサ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.

【0020】タイミングコントローラ4は、各部の動作
タイミングを制御する制御信号を各部に出力し、RAM
(Random Access Memory)5は、各種参照用データを保
持、更新し、後述する誤差拡散処理に必要な誤差データ
を保持、更新する。
The timing controller 4 outputs a control signal for controlling the operation timing of each unit to each unit,
(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.

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

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

【0023】濃度補正部8は、誤差演算部7から入力さ
れる誤差量演算結果をA/D変換器3から入力される読
取データ(デジタル信号)に加算し、その濃度補正デー
タを2値化部9と2値化誤差演算部10に出力する。
The density correction unit 8 adds the error calculation result input from the error calculation unit 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.

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

【0025】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.

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

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

【0028】イメージセンサ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.

【0029】いま、現画素濃度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
[0029] 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

【0030】すなわち、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 binarization 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.

【0031】ここで、補正後濃度データ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

【0032】しかし、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.

【0033】また、ディザ処理部も共用する画像処理装
置の場合は、ディザ用のスレッシュ値設定レジスタを共
用することで画像処理装置のハード/ソフトの負担を軽
減することができる。図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.

【0034】図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.

【0035】また、いま、読み取られた読取データの画
素濃度が全黒レベル(15)で、累積誤差が(−6)、
スレッシュ値を6〜10の範囲で変化させたとすると、
濃度補正後のデータは、9となるからスレッシュ値が6
〜9に変化するときには、2値化出力は、1(黒)、2
値化生成誤差は、15−9=6として保存される。この
状態が続き、スレッシュ値が10に設定されると、2値
化出力は、0(白)となり、入力データが全黒レベルに
もかかわらず、出力側では、全白として出力されてしま
う。また、スレッシュ値を変化させない場合でも、黒地
部の周辺で白点が発生し易くなり、画像のコントラスト
がボケてしまう印象を与えることがある。
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.

【0036】このような画像のボケをなくすため、請求
項1〜5記載の発明の画像処理方式を適用する画像処理
装置の一実施例を図6〜9に示す。
FIGS. 6 to 9 show one embodiment of an image processing apparatus to which the image processing system according to the first to fifth aspects of the present invention is applied in order to eliminate such image blurring.

【0037】図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 in the image processing apparatus shown in FIG. Omitted.

【0038】図6において、全黒/全白判定部(全黒全
白判別手段)32は、読取データが全黒か全白かを判定
し、例えば、(1,0)全黒、(0,1)全白、(0,
0)非全黒、全白という信号を2値化誤差生成部9と2
値化部11に出力する。
In FIG. 6, an all-black / all-white judging section (all-black and all-white discriminating means) 32 judges whether the read data is all black or all white, for example, (1, 0) all black, (0) , 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.

【0039】システム制御部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.

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

【0041】全黒/全白判定部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 determining unit 32 to the binarization error generating unit 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. In the binarization unit 11, when all black or all white is detected, system control is performed. 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.

【0042】また、全黒、全白時の補正は、累積誤差が
小さいときには、行わないようにすることもできる。す
なわち、上記累積誤差が(−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.

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

【0044】図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.

【0045】図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.

【0046】図8は、図5の2値化部11に適用される
スレッシュ値を変化させる部分の論理回路構成を示して
おり、全黒/全白判定部32から入力される全黒、全白
データに応じてシステム制御部33から入力されるスレ
ッシュ値が選択されてスレッシュ値が出力され、図外の
2値化部11内で2値化演算が行われる。
FIG. 8 shows a logic 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).

【0047】図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.

【0048】図9において、全黒/全白判定部32から
入力されるデータが全黒か全白かを判別し(ステップS
l)、全黒か全白のときは、請求項1記載の発明に基づ
く処理では、2値化誤差を“0”とし(ステップS
2)、請求項2記載の発明に基づく処理では、累積誤差
に応じてスレッシュ値を変換して(ステップS3)2値
化処理し(ステップS4)、2値化誤差を演算し(ステ
ップS5)、請求項3あるいは4記載の発明に基づく処
理では、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).
1) In the case of all black or all white, in the processing according to the first aspect of the present invention, the binarization error is set to “0” (step S).
2) In the processing according to the second aspect of the present invention, the threshold value is converted according to the accumulated error (step S3), the binarization processing is performed (step S4), and the binarization error is calculated (step S5). In the processing according to the third or fourth aspect of the present invention, the data is changed to black or white binary data regardless of the binarization error (step S6), and the binarization error is calculated (step S7).

【0049】また、ステップSlで全黒でも全白でもな
いときは、濃度補正演算を行って補正後濃度データを求
め(ステップS8)、補正後濃度データをシステム制御
部33から入力されるスレッシュ値で2値化処理して2
値データを出力するとともに、補正後濃度データで2値
化誤差を演算する(ステップS10)。
On the other hand, if it is not all black or all white in step Sl, a density correction operation is performed to obtain corrected density data (step S8), and the corrected density data is input to the 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).

【0050】したがって、全黒または全白の画素データ
が入力された場合の2値化誤差を“0”とすることで中
間調画像のコントラストを向上させることができ、全黒
または全白の画素データが入力された場合に累積誤差量
に応じて2値化誤差を“0”に設定しているので、2値
化のスレッシュ値を周期的に変化させても黒地中の白点
や白地中の黒点の発生をなくすことができ、全黒、全白
データに応じて2値化データに変換しているので、累積
誤差を保存しつつ中間調画像のコントラストを向上させ
ることができる。
Therefore, the contrast of the halftone image can be improved by setting the binarization error in the case of inputting all black or all white pixel data to "0". 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.

【0051】また、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 integer conversion of the error can be expedited. 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.

【0052】例えば、−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).

【0053】したがって、誤差演算の端数分を“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.

【0054】[0054]

【発明の効果】請求項1記載の発明によれば、ライン毎
に入力される多値画素データの画素毎に量子化処理した
出力画素データと入力画素データとの誤差を周辺画素デ
ータに拡散した結果を所定の設定されたスレッシュ値に
基づいて2値化処理して出力2値画素データを出力する
画像処理方式において、入力される多値画素データの画
素毎に全黒か全白かを判別する全黒全白判別手段を設
け、該画素毎に全黒あるいは全白と判別したとき、全黒
あるいは全白の画素データが所定数連続したとき、入力
画素データとの誤差を“0”に設定するので、全黒また
は全白の画素データが入力された場合の2値化誤差
“0”とすることで中間調画像のコントラストを向上さ
せることができる。
According to the first aspect of the present invention, an error between output pixel data quantized for each pixel of multi-valued pixel data input for each line and input pixel data is diffused to peripheral pixel data. In an image processing method in which a result is binarized based on a predetermined threshold value and output binary pixel data is output, it is determined whether each pixel of input multi-valued pixel data is all black or all white. An all-black-all-white discriminating means is provided, and when the pixel is determined to be all-black or all-white, when an all-black or all-white pixel data continues for a predetermined number, the error from the input pixel data is set to “0”. Since the setting is performed, the contrast of the halftone image can be improved by setting the binarization error to “0” when all black or all white pixel data is input.

【0055】請求項2記載の発明によれば、ライン毎に
入力される多値画素データの画素毎に量子化処理した出
力画素データと入力画素データとの誤差を周辺画素デー
タに拡散した結果を所定の設定されたスレッシュ値に基
づいて2値化処理して出力2値画素データを出力する画
像処理方式において、入力される多値画素データの画素
毎に全黒か全白かを判別する全黒全白判別手段を設け、
該画素毎に全黒あるいは全白と判別したとき、かつ拡散
した累積誤差が所定の設定値より大きくなったとき、入
力画素データとの誤差を“0”に設定し、該誤差設定し
た全黒あるいは全白データを2値化処理する際のスレッ
シュ値を処理画素毎に周期的に変化させるとともに、該
累積誤差を比較する設定値が該周期的に変化させるスレ
ッシュ値の最大値と全黒あるいは全白と判別されるレベ
ルとの差未満に設定しているので、全黒または全白の画
素データが入力された場合に累積誤差量に応じて2値化
誤差を“0”に設定しているので、2値化のスレッシュ
値を周期的に変化させても黒地中の白点や白地中の黒点
の発生をなくすことができる。
According to the second aspect of the present invention, a result obtained by diffusing an error between input pixel data and output pixel data quantized for each pixel of multi-valued pixel data input for each line into peripheral pixel data is obtained. In an image processing method in which binarization processing is performed based on a predetermined set threshold value and output binary pixel data is output, all black or white is determined for each pixel of input multi-valued pixel data. A black-and-white determining means is provided,
When it is determined that each pixel is all black or all white, and when the accumulated error that has been diffused becomes larger than a predetermined set value, the error from the input pixel data is set to “0”, and the error-set all black is set. Alternatively, the threshold value for binarizing the all-white data is periodically changed for each processing pixel, and the set value for comparing the accumulated error is set to the maximum value of the periodically changed threshold value and the all-black or Since the value is set to be less than the difference from the level determined to be all white, when the pixel data of all black or all white is input, the binarization error is set to “0” according to the accumulated error amount. Therefore, even if the threshold value for binarization is changed periodically, it is possible to eliminate the occurrence of white points in a black background and black points in a white background.

【0056】請求項3記載の発明によれば、ライン毎に
入力される多値画素データの画素毎に量子化処理した出
力画素データと入力画素データとの誤差を周辺画素デー
タに拡散した結果を所定の設定されたスレッシュ値に基
づいて2値化処理して出力2値画素データを出力する画
像処理方式において、入力される多値画素データの画素
毎に全黒か全白かを判別する全黒全白判別手段を設け、
該画素毎に全黒あるいは全白と判別したとき、入力画素
データとの誤差にかかわらず当該画素データを全黒デー
タあるいは全白データとして2値化処理するとともに、
該2値化処理する際のスレッシュ値を処理画素毎に周期
的に変化させるので、全黒、全白データに応じて2値化
データに変換しているので、累積誤差を保存しつつ中間
調画像のコントラストを向上させることができる。
According to the third aspect of the present invention, the result of diffusing the error between the input pixel data and the output pixel data quantized for each pixel of the multi-valued pixel data input for each line into the peripheral pixel data is obtained. In an image processing method in which binarization processing is performed based on a predetermined set threshold value and output binary pixel data is output, all black or white is determined for each pixel of input multi-valued pixel data. A black-and-white determining means is provided,
When it is determined that each pixel is all black or all white, the pixel data is binarized as all black data or all white data regardless of an error with the input pixel data,
Since the threshold value at the time of the binarization processing is periodically changed for each processing pixel, the threshold value is converted into binary data according to all black and all white data. Image contrast can be improved.

【0057】請求項4記載の発明によれば、ライン毎に
入力される多値画素データの画素毎に量子化処理した出
力画素データと入力画素データとの誤差を周辺画素デー
タに拡散した結果を所定の設定されたスレッシュ値に基
づいて2値化処理して出力2値画素データを出力する画
像処理方式において、前記入力される多値画素データの
画素毎に全黒か全白かを判別する全黒全白判別手段を設
け、前記全黒全白判別手段によって全黒でも全白でもな
いと判別したとき、前記スレッシュ値を周期的に変化さ
せるとともに、前記全黒全白判別手段によって全黒ある
いは全白と判別したとき、前記スレッシュ値を、全黒デ
ータに対しては全白レベルに設定し、全白データに対し
ては全黒レベルに設定するので、全黒、全白データに応
じて2値化スレッシュ値を変化させているので累積誤差
を保存しつつ中間調画像のコントラストを向上させるこ
とができる。
According to the fourth aspect of the present invention, a result obtained by diffusing an error between output pixel data quantized for each pixel of multi-valued pixel data inputted for each line and input pixel data into peripheral pixel data is obtained. In an image processing method of performing binarization processing based on a predetermined set threshold value and outputting output binary pixel data, it is determined whether each pixel of the input multi-valued pixel data is all black or all white. When all-black / all-white discriminating means is provided and the all-black / all-white discriminating means determines that the image is neither all-black nor all-white, the threshold value is periodically changed, and the all-black / all-white discriminating means is used. Alternatively, when the threshold value is determined to be all white, the threshold value is set to an all white level for all black data and to an all black level for all white data. Binarization thread Since changing the Interview value can improve the contrast of the halftone image while preserving the accumulated error.

【0058】請求項5記載の発明によれば、全黒全白判
別手段における判別は全黒か全白か一方のみ行われても
よい。
According to the fifth aspect of the present invention, the determination by the all-black and all-white determination means may be performed only for either all black or all white.

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

【図1】画像処理装置を適用したファクシミリ装置のブ
ロック図
FIG. 1 is a block diagram of a facsimile apparatus to which an image processing apparatus 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】画像処理装置のブロック図FIG. 4 is a block diagram of an image processing apparatus.

【図5】請求項1〜5記載の発明による画像処理装置の
要部ブロック図
FIG. 5 is a block diagram of a main part of the image processing apparatus according to the first to fifth aspects of the invention

【図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】請求項1〜5記載の発明による誤差拡散処理の
フローチャート
FIG. 9 is a flowchart of an error diffusion process according to the present invention.

【符号の説明】[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 (5)

【特許請求の範囲】[Claims] 【請求項1】ライン毎に入力される多値画素データの画
素毎に量子化処理した出力画素データと入力画素データ
との誤差を周辺画素データに拡散した結果を所定の設定
されたスレッシュ値に基づいて2値化処理して出力2値
画素データを出力する画像処理方式において、 前記入力される多値画素データの画素毎に全黒か全白か
を判別する全黒全白判別手段を設け、 該画素毎に全黒あるいは全白と判別したとき、全黒ある
いは全白と判別した画素データが所定数連続したとき、
前記入力画素データとの誤差を“0”に設定することを
特徴とする画像処理方式。
1. A method according to claim 1, wherein an error between the output pixel data quantized for each pixel of the multi-valued pixel data input for each line and the input pixel data is diffused into peripheral pixel data to obtain a predetermined threshold value. In an image processing method of performing binarization processing based on the output and outputting output binary pixel data, an all-black / all-white determining means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided. When it is determined that all black or all white for each pixel, when a predetermined number of consecutive pixel data determined to be all black or all white,
An image processing method, wherein an error from the input pixel data is set to "0".
【請求項2】ライン毎に入力される多値画素データの画
素毎に量子化処理した出力画素データと入力画素データ
との誤差を周辺画素データに拡散した結果を所定の設定
されたスレッシュ値に基づいて2値化処理して出力2値
画素データを出力する画像処理方式において、 前記入力される多値画素データの画素毎に全黒か全白か
を判別する全黒全白判別手段を設け、 該画素毎に全黒あるいは全白と判別し、かつ拡散した累
積誤差が所定の設定値より大きくなったとき、前記入力
画素データとの誤差を“0”に設定し、該誤差設定され
た全黒あるいは全白データを2値化処理する際の前記ス
レッシュ値を処理画素毎に周期的に変化させるととも
に、該累積誤差を比較する設定値を該周期的に変化させ
るスレッシュ値の最大値と全黒あるいは全白と判別され
るレベルとの差未満とすることを特徴とする画像処理方
式。
2. The method according to claim 1, wherein an error between the output pixel data quantized for each pixel of the multi-valued pixel data input for each line and the input pixel data is diffused to peripheral pixel data to obtain a predetermined threshold value. In an image processing method of performing binarization processing based on the output and outputting output binary pixel data, an all-black / all-white determining means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided. When each pixel is determined to be all black or all white, and when the diffused accumulated error becomes larger than a predetermined set value, an error from the input pixel data is set to “0” and the error is set. The threshold value for binarizing all black or all white data is periodically changed for each processing pixel, and a set value for comparing the accumulated error is set to the maximum value of the threshold value for periodically changing the threshold value. All black or all white The image processing method characterized by less than the difference between the determined the level.
【請求項3】ライン毎に入力される多値画素データの画
素毎に量子化処理した出力画素データと入力画素データ
との誤差を周辺画素データに拡散した結果を所定の設定
されたスレッシュ値に基づいて2値化処理して出力2値
画素データを出力する画像処理方式において、 前記入力される多値画素データの画素毎に全黒か全白か
を判別する全黒全白判別手段を設け、 該画素毎に全黒あるいは全白と判別したとき、前記入力
画素データとの誤差にかかわらず当該画素データを全黒
データあるいは全白データとして2値化処理するととも
に、該2値化処理する際の前記スレッシュ値を処理画素
毎に周期的に変化させることを特徴とする画像処理方
式。
3. A predetermined threshold value obtained by diffusing an error between output pixel data quantized for each pixel of input multi-valued pixel data and input pixel data into peripheral pixel data into a predetermined threshold value. In an image processing method of performing binarization processing based on the output and outputting output binary pixel data, an all-black / all-white determining means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided. When it is determined that each pixel is all black or all white, the pixel data is binarized as all black data or all white data and binarized regardless of an error with the input pixel data. Wherein the threshold value is periodically changed for each processing pixel.
【請求項4】ライン毎に入力される多値画素データの画
素毎に量子化処理した出力画素データと入力画素データ
との誤差を周辺画素データに拡散した結果を所定の設定
されたスレッシュ値に基づいて2値化処理して出力2値
画素データを出力する画像処理方式において、 前記入力される多値画素データの画素毎に全黒か全白か
を判別する全黒全白判別手段を設け、 前記全黒全白判別手段によって全黒でも全白でもないと
判別したとき、前記スレッシュ値を周期的に変化させる
とともに、前記全黒全白判別手段によって全黒あるいは
全白と判別したとき、前記スレッシュ値を、全黒データ
に対しては全白レベルに設定し、全白データに対しては
全黒レベルに設定することを特徴とする画像処理方式。
4. A predetermined threshold value is obtained by diffusing an error between output pixel data and input pixel data, which are quantized for each pixel of multi-valued pixel data input for each line, into peripheral pixel data. In an image processing method of performing binarization processing based on the output and outputting output binary pixel data, an all-black / all-white determining means for determining whether all pixels of the input multi-valued pixel data are all black or all white is provided. When it is determined by the all-black-all-white discriminating means that the image is neither all black nor all-white, the threshold value is periodically changed, and when the all-black all-white discriminating means determines that the image is all black or all white, An image processing method, wherein the threshold value is set to an all white level for all black data and to an all black level for all white data.
【請求項5】前記全黒全白判別手段における判別を全黒
か全白か一方のみ行うことを特徴とする請求項1、3又
は4に記載の画像処理方式。
5. The image processing method according to claim 1, wherein the determination by said all-black / all-white determining means is performed only for one of all black and all white.
JP2000286586A 1991-11-06 2000-09-21 Image processing method Expired - Lifetime JP3549475B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000286586A JP3549475B2 (en) 1991-11-06 2000-09-21 Image processing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP28902491A JP3157870B2 (en) 1991-11-06 1991-11-06 Image processing method
JP2000286586A JP3549475B2 (en) 1991-11-06 2000-09-21 Image processing method

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 (2)

Publication Number Publication Date
JP2001111831A true JP2001111831A (en) 2001-04-20
JP3549475B2 JP3549475B2 (en) 2004-08-04

Family

ID=32929534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000286586A Expired - Lifetime JP3549475B2 (en) 1991-11-06 2000-09-21 Image processing method

Country Status (1)

Country Link
JP (1) JP3549475B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009327B2 (en) 2002-07-11 2011-08-30 Canon Kabushiki Kaisha Method and apparatus for image processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009327B2 (en) 2002-07-11 2011-08-30 Canon Kabushiki Kaisha Method and apparatus for image processing

Also Published As

Publication number Publication date
JP3549475B2 (en) 2004-08-04

Similar Documents

Publication Publication Date Title
JP3313399B2 (en) Image processing device
KR960014303B1 (en) Image processing device for resolution conversion
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) Image processing device
JP3549475B2 (en) Image processing method
JPH0738767A (en) Image binarization processor
JPH06284291A (en) Image processing device
JP2001136389A (en) Image processing device
JP2882531B2 (en) Image processing device
US7009731B1 (en) Image processing apparatus capable of preventing pseudo contour
US20040075868A1 (en) Apparatus for eliminating moire in scanned image and method for the same
JPH07302190A (en) Divider and image signal reading device using the same
JP2717020B2 (en) Image processing device
JP2702593B2 (en) Isolated point removal device
JP3472289B2 (en) Image processing device
JPH06233122A (en) Image processing device
JP2644491B2 (en) Image processing device
JP3346111B2 (en) Image processing device
JPH08125861A (en) Picture processor
JPH10262148A (en) Image processor
JPH03186065A (en) Picture processor
JPH0575864A (en) Facsimile reading method
JPH03186063A (en) Picture processor

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040420

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040420

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080430

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090430

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100430

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100430

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110430

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120430

Year of fee payment: 8

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120430

Year of fee payment: 8