JP2553799B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2553799B2
JP2553799B2 JP4027688A JP2768892A JP2553799B2 JP 2553799 B2 JP2553799 B2 JP 2553799B2 JP 4027688 A JP4027688 A JP 4027688A JP 2768892 A JP2768892 A JP 2768892A JP 2553799 B2 JP2553799 B2 JP 2553799B2
Authority
JP
Japan
Prior art keywords
output
difference value
error
error diffusion
correction data
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.)
Expired - Fee Related
Application number
JP4027688A
Other languages
Japanese (ja)
Other versions
JPH06284275A (en
Inventor
和人 小林
真一 佐藤
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems 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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP4027688A priority Critical patent/JP2553799B2/en
Priority to US07/924,705 priority patent/US5499111A/en
Publication of JPH06284275A publication Critical patent/JPH06284275A/en
Application granted granted Critical
Publication of JP2553799B2 publication Critical patent/JP2553799B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 used in facsimiles, scanners and the like.

【0002】[0002]

【従来の技術】従来この種の装置は、図14に示すように
画信号を入力する入力端子1と、加算器2と、閾値発生
部3と、2値化をおこなうコンパレータ4と、減算器6
と、誤差を格納しておく誤差メモリ7と、重みづけ加算
をおこなう誤差フィルタ8と、出力端子5より構成され
ている。
2. Description of the Related Art Conventionally, as shown in FIG. 14, an apparatus of this type has an input terminal 1 for inputting an image signal, an adder 2, a threshold value generating section 3, a comparator 4 for binarizing, and a subtracter. 6
An error memory 7 for storing an error, an error filter 8 for weighted addition, and an output terminal 5.

【0003】入力端子1から入力した画信号に加算器2
において、誤差フィルタ8からの出力が加算され、加算
器2の出力はコンパレータ4において、閾値発生部3で
発生された閾値で2値化される。減算器6において、加
算器2の出力はコンパレータ4の出力で減算され、誤差
データとして、出力さる。
An adder 2 is added to the image signal input from the input terminal 1.
In, the output from the error filter 8 is added, and the output of the adder 2 is binarized by the threshold value generated by the threshold value generation unit 3 in the comparator 4. In the subtractor 6, the output of the adder 2 is subtracted by the output of the comparator 4 and the error data is output.

【0004】減算器6の出力の誤差データは、誤差メモ
リ7に格納される。すでに2値化済みの周辺複数画素に
おける誤差データは、誤差フィルタ8において重み付け
加算されて出力され、前述のように加算器2で入力画信
号に加えられる。コンパレータ4の出力は出力端子5か
ら出力される。以上の処理により、階調再現性が高く、
分解能も優れた擬似中間調画像が得られていた。
The error data output from the subtractor 6 is stored in the error memory 7. The error data in the peripheral plural pixels which have already been binarized are weighted and added in the error filter 8 and output, and are added to the input image signal by the adder 2 as described above. The output of the comparator 4 is output from the output terminal 5. Due to the above processing, the gradation reproducibility is high,
Pseudo-halftone images with excellent resolution were obtained.

【0005】[0005]

【発明が解決しようとする課題】しかし、かかる構成に
よれば、次のような画質を劣化させる問題があった。 問題1.擬似中間調画像を記録する記録系のドットの大
きさが理論上の大きさに比べて大きかったり(以後つぶ
れと呼ぶ)、小さかったり(以後かすれと呼ぶ)すると
再現できる階調数が減少したり、階調の連続性が弱まっ
たりするなど、階調再現性が低下していた。図13にドッ
トのつぶれの例を示す。入力画信号濃度50%((a))
に対して理想的な擬似中間調は(b)のように黒の面積
と白の面積が等しい。ドットがつぶれると(c)のよう
に黒の面積が増えて濃度は40%となってしまう。
However, such a configuration has the following problem of degrading image quality. Problem 1. If the size of the dots in the recording system that records the pseudo-halftone image is larger than the theoretical size (hereinafter referred to as "blurred") or smaller (hereinafter referred to as "blurred"), the number of reproducible gradations will decrease. The gradation reproducibility was deteriorated, for example, the continuity of gradation was weakened. FIG. 13 shows an example of dot collapse. Input image signal density 50% ((a))
On the other hand, the ideal pseudo halftone has the same black area and white area as shown in FIG. When the dots are crushed, the black area increases as shown in (c), and the density becomes 40%.

【0006】問題2.入力画信号の有効範囲外の画像の
影響により、例えば地が白い場合でも原稿の上端、左端
に黒ドットが発生することがあった。 問題3.濃度レベルの変化の小さい領域では、ドットが
主走査方向または副走査方向または斜め方向に連続する
誤差拡散処理特有のテクスチャが発生した。
Problem 2. Due to the effect of the image outside the effective range of the input image signal, black dots may occur at the upper and left ends of the document even if the background is white. Problem 3. In the area where the change in the density level is small, a dot-continuous texture in which the dots are continuous in the main scanning direction, the sub-scanning direction, or the diagonal direction occurs.

【0007】上述の問題は以下の理由で生じる。 問題1の発生理由 誤差拡散処理は入力画像データと、この入力画像データ
を2値化した際の出力画像データとの誤差である誤差デ
ータを周辺画素の画像データへ拡散することによって、
局所領域内で入力画像の濃度の総和Σfmnを出力画像の
濃度の総和Σg mnに等しくさせる疑似中間調処理である
が、記録ドットにつぶれやかすれがあると、 Σfmn
Σgmn が成立しなくなってしまうためであった。
The above-mentioned problems occur for the following reasons. Reason for occurrence of problem 1 The error diffusion process is performed by using the input image data and this input image data.
Error that is the error from the output image data when binarizing
By spreading the data to the image data of the surrounding pixels,
Sum of input image densities Σf in the local areamnOutput image of
Total concentration Σg mnIs a pseudo halftone process that makes
However, if the recorded dots are crushed or blurred, Σfmn=
Σgmn It was because that would not hold.

【0008】この問題を解決するため、図15に示すよう
に、濃度変換を行うガンマ変換部88と誤差拡散処理部89
とを有し、ガンマ変換部88で、あらかじめ濃度変換を行
って、入力画像を濃くあるいは薄くしておき、誤差拡散
処理部89で誤差拡散処理を行うことが考えられるが、こ
のような構成では、次のような問題が生じ適切な解決策
とはならなかった。
In order to solve this problem, as shown in FIG. 15, a gamma conversion unit 88 and an error diffusion processing unit 89 which perform density conversion.
It is conceivable that the gamma conversion unit 88 performs density conversion in advance to darken or lighten the input image, and the error diffusion processing unit 89 performs error diffusion processing. , The following problems occurred and it was not an appropriate solution.

【0009】 ガンマ変換部88で、出力される画信号
の階調数が、入力される画信号の階調数よりも減少し、
擬似中間調の階調再現性が十分に補正できない。
In the gamma conversion unit 88, the gradation number of the output image signal is smaller than the gradation number of the input image signal,
Gradation reproducibility of pseudo halftone cannot be corrected sufficiently.

【0010】 1の問題はガンマ変換部88に入力され
る画信号の階調数を高くする(すなわち、ビット数を大
きくする)ことで、解決されるが、入力画信号のビット
数を大きくするには、ガンマ変換部88の前段までの画信
号処理部のビット数を大きくすることが必要となり、処
理規模の増大という新たな問題が生じてしまう。
The problem 1 is solved by increasing the number of gradations of the image signal input to the gamma conversion unit 88 (that is, increasing the number of bits), but increasing the number of bits of the input image signal. Therefore, it is necessary to increase the number of bits of the image signal processing unit up to the stage before the gamma conversion unit 88, which causes a new problem of an increase in processing scale.

【0011】 入力画信号のレベルを単調に大きくし
ていった時、理論上のドットであれば、出力画信号の階
調レベルも単調に大きくなっていくが、ドットにつぶれ
やかすれがあると、出力画信号の階調レベルが単調には
大きくならず、ガンマ変換による細かい補正はむずかし
い。
When the level of the input image signal is monotonically increased, if it is a theoretical dot, the gradation level of the output image signal will also monotonically increase, but if the dot is crushed or blurred. The gradation level of the output image signal does not monotonically increase, and fine correction by gamma conversion is difficult.

【0012】 記録系の種類などによってドットのつ
ぶれ、かすれの程度は異なるため、ガンマ変換部88もそ
れに対応して複数個必要となり、処理規模が増大してし
まう。
Since the degree of dot collapse and blurring varies depending on the type of recording system, a plurality of gamma conversion units 88 are required correspondingly, and the processing scale increases.

【0013】問題2の発生理由 誤差拡散処理では、入力画像データと、この入力画像デ
ータを2値化した際の出力画像データとの誤差である誤
差データを周辺画素の画像データへ拡散しているので、
センサから、あるいはメモリから入力される入力画信号
の有効範囲外の領域における誤差データが伝搬され、有
効範囲内の画素に加算されてしまうためである。
Reason for Occurrence of Problem 2 In the error diffusion processing, error data which is an error between the input image data and the output image data when the input image data is binarized is diffused to the image data of the peripheral pixels. So
This is because the error data in the area outside the effective range of the input image signal input from the sensor or from the memory is propagated and added to the pixels within the effective range.

【0014】問題3の発生理由 誤差拡散処理の動作は図16に示すように主走査の方
向は左から右、副走査の方向は上から下へと一定である
ため、誤差の伝搬も左上から右下へと固定され、隣接す
る画素の相関が大きくなってしまうためである。
Reason for Occurrence of Problem 3 As shown in FIG. 16, the operation of the error diffusion processing is that the main scanning direction is constant from left to right and the sub scanning direction is constant from top to bottom. This is because it is fixed to the lower right and the correlation between adjacent pixels becomes large.

【0015】 誤差の重み付け加算を行なう誤差フィ
ルタのサイズと係数の精度が十分に大きくないことによ
り発生する場合もある。
This may occur due to the size of the error filter for performing weighted addition of errors and the accuracy of the coefficients being not sufficiently large.

【0016】上記については処理の方向を、例えばラ
イン毎に主走査の処理方向を左から右、右から左とラン
ダムに切り替えたり、あるいはペアノ曲線のようにジグ
ザグに走査することで対応可能であり、またについて
も誤差フィルタのサイズと係数の精度を大きくすること
で対応可能であるが、いずれの場合も処理の規模を増大
することになり、コストアップにつながるという問題が
発生し、必ずしも最適な解決策とは言えない。
The above can be dealt with by, for example, randomly switching the processing direction of the main scanning for each line from left to right, from right to left, or by zigzag scanning like a Peano curve. , Can be dealt with by increasing the size of the error filter and the accuracy of the coefficient, but in either case, the scale of the processing is increased, which causes a problem of cost increase. Not a solution.

【0017】本発明は、上述の問題点に鑑みてなされた
もので、2値化処理による画像劣化を補正し高画質の疑
似中間調を再現する画像処理装置を提供することを目的
とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus which corrects image deterioration due to binarization processing and reproduces high-quality pseudo halftone.

【0018】[0018]

【課題を解決するための手段】上記目的を達成するた
め、入力画像データに2値化誤差拡散値を加算する加算
手段と、この加算手段の出力を2値化する2値化手段
と、この2値化手段と前記加算手段の出力の差値を演算
する差分手段と、前記2値化手段の出力を蓄積し、注目
画素とその周辺画素のデータに基づいて前記差値を補正
した差値補正データを出力する第1補正手段と、この差
値補正データについて、次の注目画素の周辺画素に対応
する差値補正データに重み付けした後積算して作成した
前記2値化誤差拡散値を前記加算手段に出力する誤差拡
散値算出手段を備えたものである。
To achieve the above object, an addition means for adding a binarized error diffusion value to input image data, a binarization means for binarizing the output of the addition means, and A difference value obtained by accumulating the output of the binarizing means and the difference means for calculating the difference value of the output of the binarizing means and the adding means, and correcting the difference value based on the data of the pixel of interest and its peripheral pixels. The first correction means for outputting correction data and the binarized error diffusion value created by weighting the difference value correction data corresponding to the peripheral pixels of the next target pixel and then integrating the difference value correction data. The error diffusion value calculating means for outputting to the adding means is provided.

【0019】入力画像データに2値化誤差拡散値を加算
する加算手段と、この加算手段の出力を2値化する2値
化手段と、この2値化手段と前記加算手段の出力の差値
を演算する差分手段と、前記2値化手段の出力画像を記
録する際の記録系における実際のドットサイズと理論上
のドットサイズとの差に応じて前記差値を補正した差値
補正データを出力する第2補正手段と、この差値補正デ
ータについて、次の注目画素の周辺画素に対応する差値
補正データに重み付けした後積算して作成した前記2値
化誤差拡散値を前記加算手段に出力する誤差拡散値算出
手段を備えたものである。
Adder means for adding the binarized error diffusion value to the input image data, binarizing means for binarizing the output of the adder means, and the difference value between the output of the binarizer and the adder means. And difference value correction data obtained by correcting the difference value according to the difference between the actual dot size and the theoretical dot size in the recording system when the output image of the binarizing unit is recorded. With respect to the second correction means for outputting and the difference value correction data, the binarized error diffusion value created by weighting and integrating the difference value correction data corresponding to the peripheral pixels of the next target pixel is added to the adding means. The error diffusion value calculating means for outputting is provided.

【0020】入力画像データに2値化誤差拡散値を加算
する加算手段と、この加算手段の出力を2値化する2値
化手段と、この2値化手段と前記加算手段の出力の差値
を演算する差分手段と、前記2値化手段の出力を蓄積
し、注目画素とその周辺画素のデータに基づいて予め定
めた補正パターンを選択し、前記2値化手段の出力画像
を記録する際の記録系における実際のドットサイズと理
論上のドットサイズとの差に応じて前記選択した補正パ
ターンの補正量を修正し、この修正した値で前記差値を
補正した差値補正データを出力する第3補正手段と、こ
の差値補正データについて、次の注目画素の周辺画素に
対応する差値補正データに重み付けした後積算して作成
した前記2値化誤差拡散値を前記加算手段に出力する誤
差拡散値算出手段を備えたものである。
Addition means for adding the binarized error diffusion value to the input image data, binarization means for binarizing the output of the addition means, and the difference value between the output of the binarization means and the addition means. When the output of the binarizing means is recorded by accumulating the outputs of the difference means for computing and the binarizing means, selecting a predetermined correction pattern based on the data of the pixel of interest and its peripheral pixels. The correction amount of the selected correction pattern is corrected according to the difference between the actual dot size and the theoretical dot size in the recording system, and the difference value correction data in which the difference value is corrected with this corrected value is output. With respect to the third correction means and the difference value correction data, the binarized error diffusion value created by weighting and integrating the difference value correction data corresponding to the peripheral pixels of the next target pixel is output to the adding means. Error diffusion value calculation means Those were example.

【0021】また、前記誤差拡散値算出手段が、前記差
値補正データを格納する格納手段と、この格納手段より
注目画素の周囲画素に対応する差値補正データを読み出
し、各周囲画素に対応する差値補正データに重み付けし
た後積算して作成した前記2値化誤差拡散値を前記加算
手段に出力する誤差フィルタを備えたものである。
Further, the error diffusion value calculation means reads the difference value correction data corresponding to the peripheral pixels of the pixel of interest from the storage means for storing the difference value correction data, and corresponds to each peripheral pixel. An error filter is provided for outputting the binarized error diffusion value created by weighting the difference value correction data and then integrating the weighted difference data.

【0022】また、前記第3補正手段に入力画像の有
効、無効を示す入力画像有効信号を入力し、有効信号の
場合は前記差値補正データを出力し、無効信号の場合に
は前記差値補正データを出力しないようにしたものであ
る。
Further, an input image valid signal indicating whether the input image is valid or invalid is input to the third correcting means, the difference value correction data is output in the case of a valid signal, and the difference value in the case of an invalid signal. The correction data is not output.

【0023】また、前記誤差フィルタ入力画像の有効、
無効を示す入力画像有効信号を入力し、有効信号の場合
は前記2値誤差拡散値を出力し、無効信号の場合は前記
2値誤差拡散信号を出力しないようにしたものである。
The validity of the error filter input image,
The input image valid signal indicating invalidity is input, the binary error diffusion value is output in the case of the valid signal, and the binary error diffusion signal is not output in the case of the invalid signal.

【0024】また、前記誤差拡散値算出手段が、前記差
値補正データに重み付けして順次メモリに格納し、この
メモリより順次読み出して注目画素の周辺画素に対応す
る重み付けをした差値補正データを集積し前記2値化誤
差拡散値として前記加算手段に出力するようにしたもの
である。
Further, the error diffusion value calculation means weights the difference value correction data and sequentially stores the weighted difference value in the memory, and sequentially reads out the difference value correction data from the memory and weights the difference value correction data corresponding to the peripheral pixels of the target pixel. The data are integrated and output as the binarized error diffusion value to the adding means.

【0025】また、前記誤差拡散値算出手段に入力画像
の有効、無効を示す入力画像有効信号を入力し、有効信
号の場合は前記差値補正データを前記誤差拡散値算出手
段に出力し、無効信号の場合は前記差値補正データを出
力しないようにしたものである。
Further, an input image valid signal indicating whether the input image is valid or invalid is input to the error diffusion value calculation means, and in the case of a valid signal, the difference value correction data is output to the error diffusion value calculation means and invalidated. In the case of a signal, the difference value correction data is not output.

【0026】また、前記差値補正データに重み付けする
のに重み付け係数を複数組用意し、この複数組を選択す
る乱数発生部を、複数の1次元乱数発生部と、この1 次
元乱数発生部の出力を選択する出力選択部より構成した
ものである。
Further, a plurality of sets of weighting coefficients are provided for weighting the difference value correction data, and a random number generator for selecting the plurality of sets is provided with a plurality of one-dimensional random number generators and one-dimensional random number generators. It is composed of an output selection unit for selecting an output.

【0027】[0027]

【作用】上記構成により、2値化手段の出力を蓄積し、
これから注目画素とその周辺画素データを読み出し、予
め定めたこの注目画素とその周辺画素の白、黒の分布に
よって決まる補正パターンを選択し、この補正パターン
に基づき差分手段の差値を補正して差値補正データと
し、誤差拡散値算出手段は次の注目画素の周辺画素に対
応する差値補正データに重み付けした後積算し、この値
を2値化誤差拡散値として加算手段に出力する。これに
よりドットのつぶれやかすれが補正される。
With the above configuration, the output of the binarizing means is accumulated,
The pixel of interest and its peripheral pixel data are read out from this, a correction pattern determined by the white and black distributions of this pixel of interest and its peripheral pixels that have been determined in advance is selected, and the difference value of the difference means is corrected based on this correction pattern to obtain the difference. As the value correction data, the error diffusion value calculation means weights the difference value correction data corresponding to the peripheral pixels of the next target pixel and then integrates them, and outputs this value to the addition means as the binarized error diffusion value. As a result, dot collapse and blurring are corrected.

【0028】また、2値化手段の出力画像を記録する際
の記録系における実際のドットサイズと理論上のドット
サイズとの差に応じて前記差値を補正して差値補正デー
タとし、誤差拡散値算出手段により次の注目画素の周辺
画素に対応する差値補正データに重み付けした後蓄積
し、この値を2値化誤差拡散値として加算手段に出力す
る。これによりドットのつぶれやかすれが補正される。
Further, the difference value is corrected according to the difference between the actual dot size and the theoretical dot size in the recording system when the output image of the binarizing means is recorded, and the difference value correction data is obtained. The diffusion value calculation means weights the difference value correction data corresponding to the peripheral pixels of the next target pixel, accumulates the weighted difference data, and outputs this value to the addition means as a binarized error diffusion value. As a result, dot collapse and blurring are corrected.

【0029】また、2値化手段の出力を蓄積し、これか
ら注目画素とその周辺画素データを読み出し、予め定め
たこの注目画素とその周辺画素の白、黒の分布によって
決まる補正パターンを選択し、この選択した補正パター
ンに対して、2値化手段の出力画像を記録する際の記録
系における実際のドットサイズと理論上のドットサイズ
との差に応じて修正を加え、この修正した補正パターン
に基づき、差分手段の差値を補正して差値補正データと
し、誤差拡散値算出手段によって次の注目画素とその周
辺画素に対応する差値補正データに重み付けした後積算
し、この値を2値化誤差拡散値として加算手段に出力す
る。これによりドットのつぶれやかすれが補正される。
Further, the output of the binarizing means is accumulated, the target pixel and its peripheral pixel data are read therefrom, and a predetermined correction pattern determined by the white and black distributions of the target pixel and its peripheral pixels is selected. The selected correction pattern is corrected according to the difference between the actual dot size and the theoretical dot size in the recording system when the output image of the binarization unit is recorded, and the corrected correction pattern is added. Based on this, the difference value of the difference means is corrected to obtain difference value correction data, and the error diffusion value calculation means weights the difference value correction data corresponding to the next pixel of interest and its peripheral pixels and then integrates the weighted values. The converted error diffusion value is output to the adding means. As a result, dot collapse and blurring are corrected.

【0030】また、格納手段は前記差値補正データを格
納し、誤差フィルタはこの格納手段より注目画素の周辺
画素に対応する差値補正データを読み出し、各周辺画素
に対応する差値補正データに重み付けした後、積算して
算出した2値化誤差拡散値を加算手段に出力する。
Further, the storage means stores the difference value correction data, and the error filter reads the difference value correction data corresponding to the peripheral pixels of the pixel of interest from the storage means to obtain difference value correction data corresponding to each peripheral pixel. After weighting, the binarized error diffusion value calculated by integration is output to the adding means.

【0031】また、上述の誤差拡散処理では差値を周辺
画素の画像データへ拡散するが、センサあるいはメモリ
から入力される入力画信号の有効範囲外の領域における
差値が伝搬され、有効範囲内の画素に加算され原稿の上
端や左端に黒ドットが発生することがあるが、入力画像
有効信号により有効なもののみ出力するようにしてこれ
らの黒ドットの発生を防止する。
Further, in the above-mentioned error diffusion processing, the difference value is diffused into the image data of the peripheral pixels, but the difference value in the area outside the effective range of the input image signal input from the sensor or the memory is propagated and is within the effective range. However, black dots may be generated at the upper edge or the left edge of the document by adding to the pixels of No. 2. However, only the valid ones are output by the input image valid signal to prevent the generation of these black dots.

【0032】この入力画像有効信号は第3補正手段に入
力して、差値補正データの出力を制御しても、誤差フィ
ルタに入力して2値化誤差拡散信号の出力を制御しても
同じ効果を有する。
This input image valid signal is input to the third correction means to control the output of the difference value correction data, or to the error filter to control the output of the binarized error diffusion signal. Have an effect.

【0033】また、上述のように差値補正データを格納
手段に格納してから誤差フィルタで重み付けをする代り
に、誤差拡散値算出手段で、まず重み付けした後メモリ
に格納し、注目画素の周辺画素に対応する格納データを
読み出して積算して2値化誤差拡散信号として加算手段
に出力しても同様の効果が得られる。
Further, instead of storing the difference value correction data in the storage means and then weighting it by the error filter as described above, the error diffusion value calculation means first weights it and then stores it in the memory, and the periphery of the pixel of interest. The same effect can be obtained by reading the stored data corresponding to the pixel, integrating it, and outputting it as the binarized error diffusion signal to the adding means.

【0034】この際、誤差拡散値算出手段に入力画像有
効信号を入力して誤差拡散値算出手段の出力を制御する
ことにより、原稿の上端や左端などに発生する黒ドット
の発生を防止できる。
At this time, by inputting the input image valid signal to the error diffusion value calculation means and controlling the output of the error diffusion value calculation means, it is possible to prevent the generation of black dots at the upper end or the left end of the document.

【0035】また、差値補正データに重み付けして2値
化誤差拡散値を算出するのに、重み付け係数の組みを複
数設けてこれを乱数発生器による乱数で選択するが2次
元乱数発生器を用いて選択することにより小さなサイズ
の2次元乱数発生器でも、濃度レベルの変化の小さい領
域でも、ドットが主走査方向、または副走査方向、また
は斜め方向に連続する誤差拡散処理特有のテクスチャの
発生を防止できる。
In order to calculate the binarized error diffusion value by weighting the difference value correction data, a plurality of weighting coefficient sets are provided and selected by a random number generated by a random number generator. By selecting using a 2-dimensional random number generator of a small size, even in an area with a small change in density level, the generation of a texture peculiar to error diffusion processing in which dots are continuous in the main scanning direction, the sub scanning direction, or the diagonal direction Can be prevented.

【0036】[0036]

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

【0037】図1は本発明の第1実施例の概略構成を示
す図である。同図において、1は画信号を入力する入力
端子、2は画信号に後述する誤差フィルタ8aの出力を
加算する加算器、3は閾値を発生する閾値発生部、4は
2値化をおこなうコンパレータ、5は画信号を出力する
出力端子、6は加算器2の出力をコンパレータの出力で
減算し誤差データを出力する減算器、7は誤差データ用
のメモリ、8aは後述する2次元擬似乱数発生部21から
出力される擬似乱数により係数を切り替えて誤差データ
の重み付け加算を行なう誤差フィルタである。
FIG. 1 is a diagram showing a schematic configuration of a first embodiment of the present invention. In the figure, 1 is an input terminal for inputting an image signal, 2 is an adder for adding the output of an error filter 8a to be described later to the image signal, 3 is a threshold value generating section for generating a threshold value, and 4 is a comparator for performing binarization. 5 is an output terminal for outputting an image signal, 6 is a subtracter for subtracting the output of the adder 2 with the output of the comparator and outputting error data, 7 is a memory for error data, 8a is a two-dimensional pseudo random number generation described later. This is an error filter that performs weighted addition of error data by switching coefficients according to a pseudo-random number output from the unit 21.

【0038】9はk=0.5の記録ドット補正係数メモ
リ(kについては後述する。)、10はk=0.3の記録
ドット補正係数メモリ、11はk=0.1の記録ドット補
正係数メモリ、12はk=0の記録ドット補正係数メモ
リ、13は9〜12の各種記録ドット補正係数メモリの出力
を後述する記録ドット補正係数選択信号入力端子19の出
力によって選択し、次に述べる誤差補正量決定部14に出
力するセレクタ、14はあらかじめセレクタ13により補正
係数を入力しておき後述する出力画像メモリ18の出力に
より誤差補正量を決定する誤差補正量決定部、15は減算
器6の出力である誤差データに誤差補正量決定部14の出
力である誤差補正量を加算する加算器、16は入力画信号
が有効であるか否かをしめす入力画像有効信号の入力端
子、17は加算器15の出力と入力端子16の出力を入力して
入力画信号が有効でない場合、誤差を強制的に零とする
誤差データ補正部である。
9 is a recording dot correction coefficient memory for k = 0.5 (k will be described later), 10 is a recording dot correction coefficient memory for k = 0.3, and 11 is a recording dot correction coefficient for k = 0.1. A coefficient memory, 12 is a recording dot correction coefficient memory of k = 0, and 13 is an output of various recording dot correction coefficient memories 9 to 12 selected by an output of a recording dot correction coefficient selection signal input terminal 19 which will be described later. A selector for outputting to the error correction amount determination unit 14, 14 is an error correction amount determination unit for inputting a correction coefficient in advance by the selector 13 and determines an error correction amount by the output of an output image memory 18 described later, and 15 is a subtractor 6 The adder that adds the error correction amount that is the output of the error correction amount determination unit 14 to the error data that is the output of 16 is the input terminal of the input image valid signal that indicates whether the input image signal is valid, and 17 is Output and input of adder 15 If the input image signal is not valid inputs the output of the child 16, the error data correction unit for forcibly zero error.

【0039】18は出力画像メモリ、19は記録ドット補正
係数選択信号入力端子、20はメモリから出力される誤差
データE(a),E(b),E(c),E(d)、21は
2次元擬似乱数発生部、24は出力画像メモリ18から出力
される2値信号a,b,c,d,pの5ビットの信号で
ある。
Reference numeral 18 is an output image memory, 19 is a recording dot correction coefficient selection signal input terminal, 20 is error data E (a), E (b), E (c), E (d), 21 output from the memory. Is a two-dimensional pseudo random number generator, and 24 is a 5-bit signal of binary signals a, b, c, d and p output from the output image memory 18.

【0040】以下に動作を説明する。入力端子1から入
力した注目画素pの画信号PIXに加算器2において後
述する誤差フィルタ8aからの出力SEが加算され、加
算器2 の出力はコンパレータ4 において、閾値発生部3
で発生された閾値で2値化される。2値化された注目画
素pの出力画信号Bは出力画像メモリ18に格納され、減
算器6へ入力され、さらに出力端子5から出力される。
減算器6は加算器2の出力をコンパレータ4の出力で減
算し、これを誤差データeとして出力する。
The operation will be described below. An output SE from an error filter 8a, which will be described later, is added to the image signal PIX of the pixel of interest p input from the input terminal 1 in the adder 2, and the output of the adder 2 is input to the threshold generator 3 in the comparator 4.
It is binarized with the threshold value generated in. The binarized output image signal B of the target pixel p is stored in the output image memory 18, input to the subtractor 6, and further output from the output terminal 5.
The subtractor 6 subtracts the output of the adder 2 with the output of the comparator 4, and outputs this as error data e.

【0041】後述する記録系の実際のドットのサイズと
理論上のドットのサイズの差に対応した記録ドットの補
正係数kについて、k=0.5,0.3,0.1,0の
記録ドット補正係数メモリがそれぞれ9,10, 11, 12と
なっており、誤差拡散処理を行なう前においてあらかじ
め、セレクタ13において、記録ドット補正係数選択信号
入力端子19から入力した選択信号SLCに応じて、9,
10,11,12の出力を選択して出力cdを誤差補正量決定部
14の後述するRAMテーブルに書きこんでおく。
The recording dot correction coefficient k corresponding to the difference between the actual dot size and the theoretical dot size of the recording system, which will be described later, is recorded at k = 0.5, 0.3, 0.1, 0. The dot correction coefficient memories are 9, 10, 11, and 12, respectively, and before the error diffusion processing is performed, the selector 13 previously selects the recording dot correction coefficient selection signal input terminal 19 according to the selection signal SLC. 9,
Select the output of 10, 11, 12 and output cd as the error correction amount determination unit
It writes in RAM table 14 mentioned later.

【0042】入力端子19から入力する記録ドット補正係
数選択信号SLCはローカルコピーまたは受信側の記録
系のドットのつぶれの有無や程度に応じて、9,10,1
1,12の補正係数メモリを選択する信号であり、特に記
録系の種類について不明の場合は、12の補正係数がk=
0の補正係数を選択する。
The recording dot correction coefficient selection signal SLC input from the input terminal 19 is 9, 10, 1 in accordance with the presence or absence and the degree of dot collapse in the recording system on the local side or the receiving side.
This is a signal for selecting the correction coefficient memory of 1 and 12, and if the type of recording system is unknown, the correction coefficient of 12 is k =
Select a correction factor of 0.

【0043】誤差補正量決定部14では出力画像メモリ18
より注目画素pとその近傍a,b,c,dの2値信号
(合計5ビット)を入力しRAMテーブルを参照して誤
差補正量cを発生する。誤差補正量決定部14で発生され
た誤差補正量cは加算器15において減算器6の出力であ
る誤差データeに加算され、補正誤差データe1として出
力される。
The error correction amount determining unit 14 outputs the output image memory 18
Further, the binary signal (total 5 bits) of the pixel of interest p and its neighborhoods a, b, c and d is input and the error correction amount c is generated by referring to the RAM table. The error correction amount c generated by the error correction amount determination unit 14 is added to the error data e which is the output of the subtractor 6 in the adder 15, and is output as the correction error data e1.

【0044】補正誤差データe1は誤差データ補正部17に
入力され、入力端子16から入力された入力画像有効信号
SLEに従って、SLEが入力画信号が有効であること
を示す場合e1を、また有効でないことを示す場合、強制
的に零を、信号e2として出力する。
The correction error data e1 is input to the error data correction unit 17, and according to the input image valid signal SLE input from the input terminal 16, if the SLE indicates that the input image signal is valid, then e1 is invalid. When it indicates that, zero is forcibly output as the signal e2.

【0045】誤差データ補正部17の出力e2は誤差データ
用メモリ7に格納される。誤差データ用メモリ7に格納
された誤差データ20(E(a),E(b),E(c),
E(d))は誤差フィルタ8aにおいて2次元擬似乱数
発生部21の発生する1ビット擬似乱数QRに従って係数
を切り替えて重み付け加算され、SEとして出力され
る。SEは前述したように加算器2において、入力画信
号に加算される。誤差を拡散する画素は本実施例では4
画素となっているが、4画素に限定されるものではな
い。
The output e2 of the error data correction unit 17 is stored in the error data memory 7. The error data 20 stored in the error data memory 7 (E (a), E (b), E (c),
E (d)) is weighted and added by switching coefficients according to the 1-bit pseudo random number QR generated by the two-dimensional pseudo random number generation unit 21 in the error filter 8a, and is output as SE. SE is added to the input image signal in the adder 2 as described above. The number of pixels that diffuse the error is 4 in this embodiment.
Although it is a pixel, it is not limited to four pixels.

【0046】次に第2実施例を図2を用いて説明する。
図2において図1と同一符号は同一部材を表わす。第1
実施例と異なる点は入力画像有効信号SLEによる誤差
データの補正処理を第1実施例における誤差データ補正
部17で行なわず、誤差の重み付け加算を行なう誤差フィ
ルタ8bで行なう点である。
Next, a second embodiment will be described with reference to FIG.
2, the same reference numerals as those in FIG. 1 represent the same members. First
The difference from the embodiment is that the error data correction unit 17 in the first embodiment does not perform the error data correction processing based on the input image valid signal SLE, but the error filter 8b that performs error weighting addition.

【0047】8bは2次元擬似乱数発生部21から出力さ
れる擬似乱数と、入力画像有効信号入力端子16から出力
される入力画像有効信号とにより係数を切り替えて誤差
データの重み付け加算を行なう誤差フィルタである。
An error filter 8b performs weighted addition of error data by switching coefficients according to the pseudo random number output from the two-dimensional pseudo random number generator 21 and the input image valid signal output from the input image valid signal input terminal 16. Is.

【0048】誤差フィルタ8bでは誤差データ用メモリ
7に格納された誤差データ20と、2次元擬似乱数発生部
21で発生された1ビット擬似乱数QRと、入力画像有効
信号入力端子16から入力された入力画像有効信号SLE
を入力して、SLEが入力画信号を有効と示す場合は前
記擬似乱数QRに従って、QRが1の場合は誤差フィル
タ係数を後述する系数列(ka1,kb1,kc1,k
d1)、QRが0の場合は誤差フィルタ係数を後述する
係数列(ka2,kb2,kc2,kd2)を選択し
て、また前記SLEが入力画信号を無効と示す場合誤差
フィルタ係数を(0,0,0,0)と選択して、誤差デ
ータ20の重み付け加算処理を行なう。
In the error filter 8b, the error data 20 stored in the error data memory 7 and the two-dimensional pseudo random number generator
1-bit pseudo-random number QR generated in 21 and the input image valid signal SLE input from the input image valid signal input terminal 16
When the SLE indicates that the input image signal is valid, the pseudo-random number QR is used, and when QR is 1, the error filter coefficient is set to a coefficient sequence (ka1, kb1, kc1, k) described later.
d1), when QR is 0, the coefficient sequence (ka2, kb2, kc2, kd2) described later is selected as the error filter coefficient, and when the SLE indicates that the input image signal is invalid, the error filter coefficient is set to (0, 0, 0, 0) is selected to perform weighted addition processing of the error data 20.

【0049】前記SLEは第1実施例の場合と同一であ
る。本実施例では擬似乱数は1ビットで、切り替える誤
差フィルタ係数は2組としているが、擬似乱数のビット
数を増やして、切り替える誤差フィルタ係数の組の数を
増やしてもよい。
The SLE is the same as in the first embodiment. In the present embodiment, the pseudo random number is 1 bit, and the error filter coefficients to be switched are two sets, but the number of bits of the pseudo random number may be increased to increase the number of error filter coefficient sets to be switched.

【0050】次に第3実施例を図3を用いて説明する。
図3において図1と同一符号は同一部材を表わす。
Next, a third embodiment will be described with reference to FIG.
3, the same reference numerals as those in FIG. 1 represent the same members.

【0051】22は2次元擬似乱数発生部21から出力され
る擬似乱数により係数を切り替えて誤差データの重み付
け加算を行なう誤差フィルタ、23は誤差フィルタ22と誤
差データ用メモリ7からなる誤差集積演算部である。
Reference numeral 22 is an error filter for switching the coefficients according to the pseudo-random number output from the two-dimensional pseudo-random number generator 21 to perform weighted addition of error data, and reference numeral 23 is an error integrated operation unit consisting of the error filter 22 and the error data memory 7. Is.

【0052】本実施例が第1実施例と異なる点は、誤差
フィルタ22による誤差データの集積演算である。本実施
例では誤差データ用メモリ7とリード、ライトを繰りか
えして誤差データ集積演算をおこなっている。この誤差
集積演算部23の詳細の作用を以下図9に従って説明す
る。
The difference of the present embodiment from the first embodiment is that the error data is accumulated by the error filter 22. In the present embodiment, the error data memory 7 is read and written repeatedly to perform the error data integration calculation. The detailed operation of the error accumulation calculator 23 will be described below with reference to FIG.

【0053】図9は誤差集積演算部23の詳細構成図であ
り、76は擬似乱数入力端子、77は誤差データ入力端子、
78はB用メモリ、79はB+C用メモリ、80はB+C+D
用メモリ、81はA+B+C+D用メモリ、82は誤差集積
演算部の出力端子である。
FIG. 9 is a detailed configuration diagram of the error integrated calculation unit 23. 76 is a pseudo random number input terminal, 77 is an error data input terminal,
78 is B memory, 79 is B + C memory, 80 is B + C + D
Memory, 81 is an A + B + C + D memory, and 82 is an output terminal of the error integrated calculation unit.

【0054】擬似乱数入力端子76から1ビット擬似乱数
QRが入力される。セレクタ49,50,51,52では第2実
施例と同様QRに従って誤差フィルタ係数をそれぞれ
(ka1,kb1,kc1,kd1),(ka2,kb
2,kc2,kd2)から選択して出力する。
A 1-bit pseudo random number QR is input from the pseudo random number input terminal 76. In the selectors 49, 50, 51 and 52, the error filter coefficients are (ka1, kb1, kc1, kd1) and (ka2, kb) in accordance with QR as in the second embodiment.
2, kc2, kd2) and output.

【0055】補正済みの誤差データは入力端子77から入
力され、乗算器53aによってセレクタ49で選択された係
数kb(kb1またはkb2)を乗算されて、(B)メ
モリ78のE(B)のアドレスに書き込まれる。
The corrected error data is input from the input terminal 77, multiplied by the coefficient kb (kb1 or kb2) selected by the selector 49 by the multiplier 53a, and the address of E (B) in the memory 78 is stored. Written in.

【0056】また、補正済みの誤差データは乗算器54a
によってセレクタ50で選択された係数kc(kc1また
はkc2)を乗算されて、(B)メモリ78のE(B+
C)のアドレスから読み出されたデータが加算器57aで
加算され、(B+C)メモリ79の(B+C)アドレスに
書き込まれる。
Further, the corrected error data is the multiplier 54a.
Is multiplied by the coefficient kc (kc1 or kc2) selected by the selector 50, and (B) E (B + of the memory 78
The data read from the address C) is added by the adder 57a and written to the (B + C) address of the (B + C) memory 79.

【0057】また、補正後の誤差データは乗算器55aに
よってセレクタ51で選択された係数kd(kd1または
kd2)を乗算されて、(B+C)メモリ79のE(B+
C+D)のアドレスから読み出されたデータが加算器58
aで加算され、(B+C+D)メモリ80の(B+C+
D)アドレスに書き込まれる。
Further, the corrected error data is multiplied by the coefficient kd (kd1 or kd2) selected by the selector 51 by the multiplier 55a, and E (B + C) of the (B + C) memory 79 is obtained.
The data read from the address of (C + D) is added by the adder 58.
a is added, and (B + C + D) of the memory 80 (B + C +)
D) Written to address.

【0058】また、補正後の誤差データは乗算器56aに
よってセレクタ52で選択された係数ka(ka1または
ka2)を乗算されて、(B+C+D)メモリ80のE
(A+B+C+D)のアドレスから読み出されたデータ
が加算器59aで加算され、(A+B+C+D)メモリ81
の(A+B+C+D)アドレスに書き込まれる。
Further, the corrected error data is multiplied by the coefficient ka (ka1 or ka2) selected by the selector 52 by the multiplier 56a, and E of the (B + C + D) memory 80 is obtained.
The data read from the address (A + B + C + D) is added by the adder 59a, and the (A + B + C + D) memory 81
(A + B + C + D) address of

【0059】(A+B+C+D)メモリから読み出され
たデータは重み付け平均された集積誤差SEとして出力
端子82から出力される。
The data read from the (A + B + C + D) memory is output from the output terminal 82 as a weighted average integrated error SE.

【0060】次に記録ドット補正係数メモリ9〜加算器
15,出力画像メモリ18からなる記録ドットのつぶれの補
正を行う誤差データの補正について、詳細に説明する。
Next, the recording dot correction coefficient memory 9 to the adder
15. The correction of error data for correcting the collapse of the recording dots composed of the output image memory 18 will be described in detail.

【0061】まず最初に原理を説明する。第一の例とし
て、周辺画素がすべて白で注目画素が黒の場合を図11に
示す。注目画素がpで、周辺画素がa,b,c,dであ
る。斜線で表した領域は実際の黒ドットが周辺画素a,
b,c,dに対してはみでた領域である。点線の領域の
補正は注目画素においては行わず、図11の画素e,f,
g,hにおいて行う。
First, the principle will be described. As a first example, FIG. 11 shows a case where the peripheral pixels are all white and the target pixel is black. The pixel of interest is p, and the peripheral pixels are a, b, c, and d. In the shaded area, the actual black dots are the surrounding pixels a,
It is a region that is a margin for b, c, and d. The correction of the area of the dotted line is not performed on the pixel of interest, but the pixels e, f, and
Perform at g and h.

【0062】図11のようにはみでた領域の幅をk(補正
係数)、理論上のドットの幅を1とすると斜線部の面積
は、 S=2k+2k2 となる。さらに入力画信号の白の画信号レベルをWとす
ると、補正量Cは次のようになる。
Assuming that the width of the region that is surrounded as shown in FIG. 11 is k (correction coefficient) and the theoretical dot width is 1, the area of the shaded area is S = 2k + 2k 2 . Further, when the white image signal level of the input image signal is W, the correction amount C is as follows.

【0063】C=(2k+2k2 )×WC = (2k + 2k 2 ) × W

【0064】誤差データeに対して補正誤差データe1は
次のようになる。 e1=e+(2k+2k2 )×W
The corrected error data e1 for the error data e is as follows. e1 = e + (2k + 2k 2 ) × W

【0065】第2の例として、周辺画素がすべて黒で注
目画素が白の場合を図12に示す。斜線で表した領域は実
際の白ドットが周辺画素a,b,c,dから侵食され黒
くなった領域である。第1の例と同様に斜線部の面積は
次のようになる。
As a second example, FIG. 12 shows a case where all the peripheral pixels are black and the target pixel is white. The hatched area is an area in which the actual white dots are eroded from the peripheral pixels a, b, c, and d to become black. Similar to the first example, the shaded area is as follows.

【0066】S=2k−k2 S = 2k-k 2

【0067】補正量Cは次のようになる。 C=(2k−k2 )×W よって、誤差データeに対して補正誤差データe1は次の
ようになる。
The correction amount C is as follows. C = (2k−k 2 ) × W Therefore, the correction error data e1 is as follows for the error data e.

【0068】e1=e+(2k−k2 )×W[0068] e1 = e + (2k-k 2) × W

【0069】同様にして、注目画素p,周辺画素a,
b,cが他の場合も補正量Cが決められ、それぞれのC
に対して、補正誤差データe1は次のようになる。
Similarly, the target pixel p, the peripheral pixel a,
When b and c are other than that, the correction amount C is determined, and each C
On the other hand, the correction error data e1 is as follows.

【0070】e1=e+CE1 = e + C

【0071】これをまとめると表1、表2のように表わ
される。
These are summarized as shown in Tables 1 and 2.

【0072】[0072]

【表1】 [Table 1]

【0073】[0073]

【表2】 [Table 2]

【0074】以上の原理に基づき記録ドットによる誤差
データ補正部の動作を説明する。まず、k=0.5,
0.3,0.1,0の時の表1,表2に対応したデータ
値をそれぞれ記録ドット補正係数メモリ9,10,11,12
に格納しておく。
Based on the above principle, the operation of the error data correction unit based on recording dots will be described. First, k = 0.5,
The data values corresponding to Table 1 and Table 2 at the time of 0.3, 0.1, 0 are recorded dot correction coefficient memories 9, 10, 11, 12 respectively.
Stored in.

【0075】次に記録ドット補正係数選択信号入力端子
19から記録ドット補正係数選択信号SLCが入力され、
ローカルコピー系あるいは受信側の記録系のドットの広
がりの有無,程度により、ドット広がりが大きい場合は
k=0.5の補正係数メモリ9を、ドット広がりがやや
大きい場合はk=0.3の補正係数メモリ10を、ドット
広がりが小さい場合はk=0.1の補正係数メモリ11
を、ドット広がりがないまたは不明の場合はk=0の補
正係数メモリ12をセレクタ13は選択し、信号cdとして誤
差補正量決定部14に出力する。
Next, a recording dot correction coefficient selection signal input terminal
The recording dot correction coefficient selection signal SLC is input from 19
Depending on the presence or absence of dot spread in the local copy system or the recording system on the receiving side, if the dot spread is large, the correction coefficient memory 9 with k = 0.5 is used. If the dot spread is slightly large, k = 0.3 is used. The correction coefficient memory 10 is a correction coefficient memory 11 with k = 0.1 when the dot spread is small.
If there is no dot spread or it is unknown, the selector 13 selects the correction coefficient memory 12 with k = 0 and outputs it to the error correction amount determination unit 14 as the signal cd.

【0076】次に誤差補正量決定部14について図4を用
いて説明する。図4において、25は補正係数入力端子、
26は後述するRAM用アドレス信号の選択信号入力端
子、27は2値信号p入力端子、28は2値信号a入力端
子、29は2値信号b入力端子、30は2値信号c入力端
子、31は2値信号d入力端子、32aは後述するRAM用
ライトパルス発生部、32bはRAM用ライトアドレス発
生部、33は32bの出力と前記27,28,29,30,31の5ビ
ット出力を選択して後述するRAM34のアドレスとして
出力するセレクタ、34は補正係数入力端子25から補正係
数をかきこんでおき、2値信号a,b,c,d,pの5
ビット入力に対して補正量を出力するRAM、35はRA
M34の出力端子である。
Next, the error correction amount determining unit 14 will be described with reference to FIG. In FIG. 4, 25 is a correction coefficient input terminal,
26 is a selection signal input terminal for a RAM address signal described later, 27 is a binary signal p input terminal, 28 is a binary signal a input terminal, 29 is a binary signal b input terminal, 30 is a binary signal c input terminal, 31 is a binary signal d input terminal, 32a is a write pulse generator for RAM described later, 32b is a write address generator for RAM, 33 is the output of 32b and the 5-bit output of 27, 28, 29, 30, 31. A selector for selecting and outputting as an address of a RAM 34, which will be described later, stores a correction coefficient from the correction coefficient input terminal 25, and outputs a binary signal a, b, c, d, or p.
RAM for outputting correction amount for bit input, 35 for RA
This is the output terminal of M34.

【0077】次に動作について説明する。補正データは
入力端子25からRAM34に書き込まれる。この際にライ
トパルス発生部32aからRAM34にライトパルス信号が
入力され、ライトアドレス発生部32bからは書き込み用
アドレスが出力され、アドレス選択信号発生部26からは
ライトアドレスを選択する信号が発生され、ライトアド
レス発生部32bの出力はセレクタ33において選択されて
アドレス信号としてRAM34に入力される。
Next, the operation will be described. The correction data is written in the RAM 34 from the input terminal 25. At this time, a write pulse signal is input from the write pulse generator 32a to the RAM 34, a write address is output from the write address generator 32b, and a signal for selecting a write address is generated from the address selection signal generator 26. The output of the write address generator 32b is selected by the selector 33 and input to the RAM 34 as an address signal.

【0078】誤差拡散処理動作時には出力画像メモリ18
より注目画素pとその近傍4画素a,b,c,dの2値
化信号の合計5ビット信号を図4の入力端子27〜31から
入力し、すでに書き込んだRAMテーブルの補正量Cを
図4の出力端子35から出力する。補正量Cは加算器15に
おいて減算器6の出力である誤差データeに加算され補
正誤差データe1となる。
During the error diffusion processing operation, the output image memory 18
A total 5 bit signal of the binarized signal of the pixel of interest p and its neighboring 4 pixels a, b, c and d is input from the input terminals 27 to 31 of FIG. 4 and the correction amount C of the already written RAM table is shown. Output from the output terminal 35 of 4. The correction amount C is added to the error data e which is the output of the subtractor 6 in the adder 15 to become the correction error data e1.

【0079】以上の実施例ではk=0,0.1,0.
3,0.5の補正量を格納し、選択して、処理を行って
いるが、選択する補正係数メモリを多くしたり、少なく
してもよい。また、つぶれたドットを正方形にモデリン
グしているが、正方形でなく円形にして補正テーブル
(表1,表2)を決定して実施してもよい。
In the above embodiment, k = 0, 0.1, 0.
Although the correction amounts of 3, 0.5 are stored, selected, and processed, the correction coefficient memory to be selected may be increased or decreased. Further, although the crushed dots are modeled as squares, the correction tables (Tables 1 and 2) may be determined and implemented as circles instead of squares.

【0080】また注目画素に対して斜め方向の周辺画素
(図11のb,d)は影響が小さいので、主走査方向、副
走査方向に隣接する周辺画素(図11のa,c)だけを参
照して、処理の規模を小さくしてもよい。また、本実施
例では記録ドットがつぶれるものに対して補正を行なっ
ているが、記録ドットがかすれる記録系についても同様
に補正が可能である。
Further, since the peripheral pixels in the oblique direction (b, d in FIG. 11) have a small effect on the target pixel, only the peripheral pixels (a, c in FIG. 11) adjacent in the main scanning direction and the sub-scanning direction are affected. The scale of the process may be reduced with reference to the above. Further, in the present embodiment, the correction is made for the one in which the recording dots are crushed, but the same can be applied to the recording system in which the recording dots are faint.

【0081】さらに、本実施例は記録ドットが2次元方
向につぶれる記録系に対するものであったが、主走査方
向または、副走査方向などの一方向にのみつぶれる記録
系に対しても同様の考え方で補正を行うことができる。
以上が記録ドットのつぶれに対する誤差データの補正の
動作である。
Further, although the present embodiment is directed to the recording system in which the recording dots are crushed in the two-dimensional direction, the same concept is applied to the recording system in which the recording dots are crushed only in one direction such as the main scanning direction or the sub-scanning direction. Can be corrected with.
The above is the operation of correcting the error data for the collapse of the recording dots.

【0082】次に誤差データ補正部17の詳細動作につい
て説明する。誤差データ補正部17は、入力端子16から入
力画像有効信号SLEと加算器15から補正後の誤差デー
タe1を入力し表3の論理に従ってe2を出力する。すなわ
ち、入力画信号が無効であるSLE=0の場合は、e1の
値に関わらず出力e2=零とする。また入力画信号が有効
であるSLE=1の場合、出力e2=e+cとする。ここ
でeは入力誤差データである。
Next, the detailed operation of the error data correction unit 17 will be described. The error data correction unit 17 inputs the input image valid signal SLE from the input terminal 16 and the corrected error data e1 from the adder 15 and outputs e2 according to the logic of Table 3. That is, when the input image signal is invalid and SLE = 0, the output e2 = 0 regardless of the value of e1. When the input image signal is valid and SLE = 1, the output is e2 = e + c. Here, e is input error data.

【0083】[0083]

【表3】 [Table 3]

【0084】入力画信号が無効な場合とは、例えばセン
サによる原稿読取りにより画信号が本画像処理装置に入
力される時の原稿の先端がセンサの読みとり位置に達し
ていない場合や、センサの画信号無効領域のデータが出
力されている場合、あるいは画像メモリから本画像処理
装置に入力される時の画像メモリの出力が有効になって
いない場合などである。
The case where the input image signal is invalid means that the leading edge of the document does not reach the reading position of the sensor when the image signal is input to the image processing apparatus by the document reading by the sensor, or the image of the sensor is read. This is the case when the data of the signal invalid area is output, or when the output of the image memory when the image memory is input to the image processing apparatus is not valid.

【0085】以上が誤差データ補正部17の動作である。The above is the operation of the error data correction unit 17.

【0086】次に誤差フィルタ8aの作用の詳細につい
て説明する。図5は誤差フィルタ8aの構成の一例であ
る。同図において、36は擬似乱数入力端子、37は誤差デ
ータE(a)入力端子、38は誤差データE(b)入力端
子、39は誤差データE(c)入力端子、40は誤差データ
E(d)入力端子、41,42,43,44,45,46,47,48は
誤差フィルタ係数設定部、49,50,51,52は前記41,4
2,43,44,45,46,47,48の出力を選択するセレク
タ、53a,54a,55a,56aは乗算器、57a,58a,59
aは加算器、60aは誤差フィルタ出力端子である。
Next, the operation of the error filter 8a will be described in detail. FIG. 5 shows an example of the configuration of the error filter 8a. In the figure, 36 is a pseudo random number input terminal, 37 is an error data E (a) input terminal, 38 is an error data E (b) input terminal, 39 is an error data E (c) input terminal, and 40 is an error data E ( d) Input terminals, 41, 42, 43, 44, 45, 46, 47, 48 are error filter coefficient setting units, and 49, 50, 51, 52 are 41, 4 described above.
Selectors for selecting outputs of 2, 43, 44, 45, 46, 47, 48, 53a, 54a, 55a, 56a are multipliers, 57a, 58a, 59
a is an adder and 60a is an error filter output terminal.

【0087】次に動作について説明する。36から1ビッ
ト擬似乱数QR を入力し、入力端子37,38,39,40
からは誤差データE(a),E(b),E(c),E
(d)をそれぞれ入力する。41〜48にはそれぞれ誤差フ
ィルタ係数ka1,ka2,kb1,kb2,kc1,
kc2,kd1,kd2が格納されている。セレクタ4
9,50,51,52はQRに従ってQR=1の時、誤差フィ
ルタ係数を(ka1,kb1,kc1,kd1)、QR
=0の時(ka2,kb2,kc2,kd2)から選択
して出力する。
Next, the operation will be described. Input 1-bit pseudo-random number QR from 36 and input terminals 37, 38, 39, 40
From the error data E (a), E (b), E (c), E
Input (d) respectively. 41 to 48 are error filter coefficients ka1, ka2, kb1, kb2, kc1, respectively.
kc2, kd1 and kd2 are stored. Selector 4
9, 50, 51, 52 are QR filter with QR = 1, the error filter coefficient is (ka1, kb1, kc1, kd1), QR
When = 0, it is selected and output from (ka2, kb2, kc2, kd2).

【0088】表4は上述の内容を表わしたものである。Table 4 shows the above contents.

【0089】[0089]

【表4】 [Table 4]

【0090】誤差データE(a)は乗算器53aによって
セレクタ49で選択された係数ka(ka1またはka
2)を乗算されて、加算器57aに入力される。
The error data E (a) is the coefficient ka (ka1 or ka selected by the selector 49 by the multiplier 53a).
It is multiplied by 2) and input to the adder 57a.

【0091】誤差データE(b)は乗算器54aによって
セレクタ50で選択された係数kb(kb1またはkb
2)を乗算されて、加算器57aに入力される。
The error data E (b) is the coefficient kb (kb1 or kb selected by the selector 50 by the multiplier 54a.
It is multiplied by 2) and input to the adder 57a.

【0092】誤差データE(c)は乗算器55aによって
セレクタ51で選択された係数kc(kc1またはkc
2)を乗算されて、加算器58aに入力される。
The error data E (c) is the coefficient kc (kc1 or kc selected by the selector 51 by the multiplier 55a).
2) is multiplied and input to the adder 58a.

【0093】誤差データE(d)は乗算器56aによって
セレクタ52で選択された係数kd(kd1またはkd
2)を乗算されて、加算器58aに入力される。57aの出
力と58aの出力は加算器59aで加算されて、出力端子60
aから、信号SEとして、出力される。
The error data E (d) is the coefficient kd (kd1 or kd selected by the selector 52 by the multiplier 56a.
2) is multiplied and input to the adder 58a. The output of 57a and the output of 58a are added by the adder 59a, and output terminal 60
The signal SE is output from a.

【0094】次に誤差フィルタ8aの別の構成例を図6
を用いて説明する。同図の符号の意味は図5と同じであ
る。なお、53b,54b,55b,56bは乗算器、57b,58
b,59bは加算器、60bは59a,59bの出力を36から入
力された乱数で切り替えるセレクタである。
Next, another configuration example of the error filter 8a is shown in FIG.
Will be explained. The symbols in the figure have the same meanings as in FIG. Incidentally, 53b, 54b, 55b, 56b are multipliers, and 57b, 58.
Reference numerals b and 59b are adders, and reference numeral 60b is a selector that switches the outputs of 59a and 59b by the random number input from 36.

【0095】36から1ビット擬似乱数QRを入力し、入
力端子37,38,39,40からは誤差データE(a),E
(b),E(c),E(d)をそれぞれ入力する。41〜
48にはそれぞれ誤差フィルタ係数ka1,ka2,kb
1,kb2,kc1,kc2,kd1,kd2が格納さ
れている。
A 1-bit pseudo random number QR is input from 36, and error data E (a), E is input from input terminals 37, 38, 39, 40.
Input (b), E (c) and E (d) respectively. 41 ~
48 are error filter coefficients ka1, ka2, kb, respectively.
1, kb2, kc1, kc2, kd1, kd2 are stored.

【0096】誤差データE(a)は乗算器53aにより係
数ka1を乗算されて、加算器57aに入力される。ま
た、誤差データE(a)は乗算器53bにより係数ka2
を乗算されて、加算器57bに入力される。誤差データE
(b)は乗算器54aによって係数kb1を乗算されて、
加算器57aに入力される。また、誤差データE(b)は
乗算器54bによって係数kb2を乗算されて、加算器57
bに入力される。誤差データE(c)は乗算器55aによ
って係数kc1を乗算されて、加算器58aに入力され
る。
The error data E (a) is multiplied by the coefficient ka1 by the multiplier 53a and input to the adder 57a. Further, the error data E (a) is calculated by the coefficient ka2 by the multiplier 53b.
Is multiplied by and input to the adder 57b. Error data E
(B) is multiplied by the coefficient kb1 by the multiplier 54a,
It is input to the adder 57a. Further, the error data E (b) is multiplied by the coefficient kb2 by the multiplier 54b, and the adder 57
Input to b. The error data E (c) is multiplied by the coefficient kc1 by the multiplier 55a and input to the adder 58a.

【0097】また誤差データE(c)は乗算器55bによ
って係数kc2を乗算されて、加算器58bに入力され
る。誤差データE(d)は乗算器56aによって係数kd
1を乗算されて、加算器58aに入力される。また誤差デ
ータE(d)は乗算器56bによって係数kd2を乗算さ
れて、加算器58bに入力される。57aの出力と58aの出
力は加算器59aで加算されてセレクタ60bに入力され、
57bの出力と58bの出力は加算器59bで加算されて、セ
レクタ60bに入力される。
The error data E (c) is multiplied by the coefficient kc2 by the multiplier 55b and input to the adder 58b. The error data E (d) is converted into a coefficient kd by the multiplier 56a.
It is multiplied by 1 and input to the adder 58a. The error data E (d) is multiplied by the coefficient kd2 by the multiplier 56b and input to the adder 58b. The output of 57a and the output of 58a are added by the adder 59a and input to the selector 60b,
The output of 57b and the output of 58b are added by the adder 59b and input to the selector 60b.

【0098】セレクタ60aはQR=1の時、加算器59a
の出力を選択し、QR=0の時加算器59bの出力を選択
して信号SEとして、出力する。以上が誤差フィルタ8
aの動作である。
The selector 60a is an adder 59a when QR = 1.
Is selected, and when QR = 0, the output of the adder 59b is selected and output as a signal SE. The above is the error filter 8
This is the operation of a.

【0099】次に第2実施例を表わす図2において示し
た誤差フィルタ8bについて説明する。
Next, the error filter 8b shown in FIG. 2 representing the second embodiment will be described.

【0100】誤差フィルタ8aと異なるのは入力画像有
効信号SLEを入力し、擬似乱数QRとSLEによって
誤差フィルタの係数を切り替えている点である。
The difference from the error filter 8a is that the input image effective signal SLE is input and the coefficient of the error filter is switched by the pseudo random numbers QR and SLE.

【0101】図10は誤差フィルタ8bの構成図である。
同図において、83,84,85,86,は零の誤差フィルタ係
数設定部、87は入力画像有効信号入力端子である。
FIG. 10 is a block diagram of the error filter 8b.
In the figure, reference numerals 83, 84, 85, 86 denote zero error filter coefficient setting units, and 87 denotes an input image valid signal input terminal.

【0102】36から1ビット擬似乱数QR,87から入力
画像有効信号SLEを入力し、入力端子37,38,39,40
からは誤差データE(a),E(b),E(c),E
(d)をそれぞれ入力する。41〜48には誤差フィルタ係
数ka1,ka2,kb1,kb2,kc1,kc2,
kd1,kd2が格納されている。83〜86には誤差フィ
ルタ係数0が格納されている。
Input image valid signal SLE from 36-bit 1-bit pseudo-random number QR, 87, and input terminals 37, 38, 39, 40.
From the error data E (a), E (b), E (c), E
Input (d) respectively. 41 to 48 are error filter coefficients ka1, ka2, kb1, kb2, kc1, kc2.
kd1 and kd2 are stored. Error filter coefficient 0 is stored in 83 to 86.

【0103】セレクタ49,50,51,52は、SLEが入力
画信号を有効と示す場合(SLE=1)は前記擬似乱数
QRに従って、QRが1の場合は誤差フィルタ係数を係
数列(ka1,kb1,kc1,kd1)、QRが0の
場合は誤差フィルタ係数を係数列(ka2,kb2,k
c2,kd2)と選択して出力する。また、セレクタ4
9,50,51,52はSLEが入力画信号を無効と示す場合
(SLE=0)は誤差フィルタ係数として、係数列
(0,0,0,0)を選択して出力する。
The selectors 49, 50, 51 and 52 follow the pseudo random number QR when the SLE indicates that the input image signal is valid (SLE = 1), and when the QR is 1, the error filter coefficient is set to the coefficient sequence (ka1, kb1, kc1, kd1), and when QR is 0, the error filter coefficient is set to a coefficient sequence (ka2, kb2, k).
c2, kd2) and output. Also, selector 4
When the SLE indicates that the input image signal is invalid (SLE = 0), reference numerals 9, 50, 51 and 52 select and output a coefficient string (0, 0, 0, 0) as an error filter coefficient.

【0104】誤差データE(a)は乗算器53aによって
セレクタ49で選択された係数ka(ka1またはka2
または零)を乗算されて、加算器57aに入力される。
The error data E (a) is the coefficient ka (ka1 or ka2) selected by the selector 49 by the multiplier 53a.
Or is multiplied by zero) and input to the adder 57a.

【0105】誤差データE(b)は乗算器54aによって
セレクタ50で選択された係数kb(kb1またはkb2
または零)を乗算されて、加算器57aに入力される。
The error data E (b) is the coefficient kb (kb1 or kb2 selected by the selector 50 by the multiplier 54a.
Or is multiplied by zero) and input to the adder 57a.

【0106】誤差データE(c)は乗算器55aによって
セレクタ51で選択された係数kc(kc1またはkc2
または零)を乗算されて、加算器58aに入力される。
The error data E (c) is the coefficient kc (kc1 or kc2 selected by the selector 51 by the multiplier 55a).
Or it is multiplied by zero) and input to the adder 58a.

【0107】誤差データE(d)は乗算器56aによって
セレクタ52で選択された係数kd(kd1またはkd2
または零)を乗算されて、加算器58aに入力される。
The error data E (d) is the coefficient kd (kd1 or kd2 selected by the selector 52 by the multiplier 56a).
Or it is multiplied by zero) and input to the adder 58a.

【0108】57aの出力と58aの出力は加算器59aで加
算されて、出力端子60aから、信号SEとして、出力さ
れる。
The outputs of 57a and 58a are added by the adder 59a and output from the output terminal 60a as the signal SE.

【0109】以上が誤差フィルタ8bの動作であり、こ
れをまとめて表5に示す。
The above is the operation of the error filter 8b, which is summarized in Table 5.

【0110】[0110]

【表5】 [Table 5]

【0111】次に2次元擬似乱数発生部21の作用につい
て説明する。1次元の擬似乱数を発生させる方法はすで
に適当な方法が知られている。例えば、図8はその一例
である(ディジタルIC実用マニュアル:ラジオ技術
社)。
Next, the operation of the two-dimensional pseudo random number generator 21 will be described. A suitable method is already known as a method for generating a one-dimensional pseudo random number. For example, FIG. 8 shows an example thereof (digital IC practical manual: Radio Engineering Co., Ltd.).

【0112】同図において、70は画信号クロック入力端
子、71はクロックと後述する74からの出力Aを入力し
て、1ビットシフトからAビットシフトまでの合計Aビ
ットの信号を出力するAビットシフトレジスタ、72は前
記71のAビット信号を入力して、反転論理和とするノア
ゲート、73は前記71の出力でAビットシフト信号とA−
1ビットシフト信号を入力して排他的論理和とするイク
スクルーシブオアゲート、74は前記72の出力と前記73の
出力を入力して排他的論理和とするイクスクルーシブオ
アゲート、75はAビット擬似乱数発生部の出力端子であ
る。
In the figure, 70 is an image signal clock input terminal, 71 is an A bit for inputting a clock and an output A from 74, which will be described later, and outputting a signal of a total of A bits from 1 bit shift to A bit shift. A shift register, 72 is a NOR gate for inputting the A-bit signal of 71 to obtain an inversion OR, and 73 is an output of 71 for the A-bit shift signal and A-
An exclusive OR gate for inputting a 1-bit shift signal for exclusive OR, 74 is an exclusive OR gate for inputting the output of 72 and the output of 73 for exclusive OR, and 75 is A This is the output terminal of the bit pseudo-random number generator.

【0113】Aビットシフトレジスタ71は、イクスクル
ーシブオアゲート74の出力をシフトする信号として入力
し、また入力端子70より画信号クロックを入力し1ビッ
トシフト信号からAビットシフト信号までの合計Aビッ
トのシフト信号を出力する。ノアゲート72はAビットシ
フトレジスタ71のAビットの出力を入力し反転論理和を
行なう。
The A-bit shift register 71 inputs the output of the exclusive OR gate 74 as a signal for shifting, and also inputs the image signal clock from the input terminal 70 to obtain a total A from the 1-bit shift signal to the A-bit shift signal. Outputs a bit shift signal. The NOR gate 72 inputs the output of A bit of the A bit shift register 71 and performs an inversion OR.

【0114】イクスクルーシブオアゲート73は前記71の
出力のうちのAビットシフト信号とA−1ビットシフト
信号を入力して排他的論理和を行なう。イクスクルーシ
ブオアゲート74は73の出力と72の出力を入力して出力を
71に入力する。以上の動作により2A −1周期の周期信
号が発生され、Aを十分に大きくすることで擬似乱数発
生部として機能する。ところが、この擬似乱数は1次元
なので画像の乱数として使用するとストライブ模様とな
り、画像用の擬似乱数として、十分に機能しなかった。
The exclusive OR gate 73 inputs the A bit shift signal and the A-1 bit shift signal of the output of the 71, and performs an exclusive OR. The exclusive OR gate 74 inputs the output of 73 and the output of 72 and outputs the output.
Enter in 71. By the above operation, a periodic signal of 2 A -1 period is generated, and by making A sufficiently large, it functions as a pseudo random number generator. However, since this pseudo random number is one-dimensional, it becomes a stripe pattern when used as a random number of an image, and it did not function sufficiently as a pseudo random number for an image.

【0115】第1〜第3実施例では以下の方法で2次元
擬似乱数発生を実現している。図7は2次元擬似乱数発
生部の構成である。同図において、61は画信号クロック
を発生する画信号クロック発生部、62はAビット擬似乱
数発生部、63はBビット擬似乱数発生部、64はCビット
擬似乱数発生部、65はZビット擬似乱数発生部、66は62
の出力QRA、63の出力QRB、64の出力QRC、…、
65の出力QRZから後述する擬似乱数選択部68の選択信
号により選択して出力するセレクタ、67はライン同期信
号発生部、68は67の出力を入力して選択信号を出力する
擬似乱数選択部、69はセレクタ66の出力端子である。
In the first to third embodiments, the two-dimensional pseudo random number generation is realized by the following method. FIG. 7 shows the configuration of the two-dimensional pseudo random number generator. In the figure, 61 is an image signal clock generator that generates an image signal clock, 62 is an A-bit pseudo random number generator, 63 is a B bit pseudo random number generator, 64 is a C bit pseudo random number generator, and 65 is a Z bit pseudo random number generator. Random number generator, 66 is 62
Output QRA, 63 output QRB, 64 output QRC, ...
A selector that selects and outputs from the output QRZ of 65 by a selection signal of a pseudo random number selection unit 68 described later, 67 is a line synchronization signal generation unit, and 68 is a pseudo random number selection unit that inputs the output of 67 and outputs a selection signal, 69 is an output terminal of the selector 66.

【0116】画信号クロック発生部61から発生された画
信号クロックはAビット擬似乱数発生部62,Bビット擬
似乱数発生部63,Cビット擬似乱数発生部64,…,Zビ
ット擬似乱数発生部65に入力される。62,63,64,65,
ではそれぞれ異なる周期の擬似乱数QRA,QRB,Q
RC,…,QRZを出力する。
The image signal clock generated from the image signal clock generator 61 is an A bit pseudo random number generator 62, a B bit pseudo random number generator 63, a C bit pseudo random number generator 64, ..., A Z bit pseudo random number generator 65. Entered in. 62, 63, 64, 65,
Then pseudo random numbers QRA, QRB, Q
It outputs RC, ..., QRZ.

【0117】擬似乱数選択部68ではライン同期信号発生
部67からライン同期信号を入力したライン毎に前記62〜
65の出力の選択信号を出力する。セレクタ66では擬似乱
数QRA,QRB,QRC,…,QRZを入力し68の選
択信号により選択して出力端子69より出力する。68に対
しても図8の擬似乱数発生部を用いてもよい。
In the pseudo random number selection unit 68, for each line to which the line synchronization signal is input from the line synchronization signal generation unit 67,
Output the selection signal of the output of 65. In the selector 66, the pseudo random numbers QRA, QRB, QRC, ..., QRZ are input, selected by the selection signal of 68, and output from the output terminal 69. The pseudo-random number generator of FIG. 8 may be used for 68 as well.

【0118】以上の構成により2次元方向にランダムな
擬似乱数が発生される。
With the above configuration, a random pseudo random number is generated in the two-dimensional direction.

【0119】[0119]

【発明の効果】以上の説明から明らかなように、本発明
は次の効果を有する。 2値化した出力画像の記録ドットと理論上のドット
のサイズの差を考慮して2値化比較器の入出力データの
差値を補正することにより、画処理部の入力ビット数を
増やすことなく、記録ドットがつぶれたり、かすれたり
するものであっても、その記録のつぶれ、かすれに対し
て最適な補正の可能な、なめらかでかつ高い階調の擬似
中間調を再現することが可能となり、高画質化が図れ
る。 入力画像有効信号を用いて、入力画信号の有効範囲
外の領域の誤差を画信号に加算されないようにし、例え
ば、地の白い原稿の上端,左端にノイズ状の黒ドットが
発生するような階調再現性の劣化を除去できる。 2次元擬似乱数発生手段を用いることにより、誤差
の拡散方向が固定的であるため、誤差フィルタの係数の
精度を高くしたり、処理の方向を不規則にするなどによ
り処理の規模を増大させることなく、濃度レベルの変化
の小さい領域で、ドットが主走査方向または副走査方
向、斜め方向に連続するテクスチャを抑制することがで
き、階調再現性を向上できる。
As is apparent from the above description, the present invention has the following effects. Increasing the number of input bits of the image processing unit by correcting the difference value of input / output data of the binarization comparator in consideration of the difference between the size of the recording dot of the binarized output image and the theoretical dot size. Even if the recorded dots are crushed or faded, it is possible to reproduce smooth and high-gradation pseudo halftones that can be optimally corrected for the crushed and blurred print. , High image quality can be achieved. The input image valid signal is used to prevent errors in the area outside the valid range of the input image signal from being added to the image signal. For example, a floor where a noise-like black dot is generated at the upper and left edges of a white original document. It is possible to eliminate the deterioration of tonality. Since the error diffusion direction is fixed by using the two-dimensional pseudo-random number generating means, it is possible to increase the accuracy of the error filter coefficient or increase the processing scale by making the processing direction irregular. In a region where the change in density level is small, it is possible to suppress the texture in which dots are continuous in the main scanning direction, the sub scanning direction, and the oblique direction, and it is possible to improve the gradation reproducibility.

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

【図1】本発明の第1実施例の構成図FIG. 1 is a configuration diagram of a first embodiment of the present invention.

【図2】本発明の第2実施例の構成図FIG. 2 is a configuration diagram of a second embodiment of the present invention.

【図3】本発明の第3実施例の構成図FIG. 3 is a configuration diagram of a third embodiment of the present invention.

【図4】誤差補正量決定部の詳細構成図FIG. 4 is a detailed configuration diagram of an error correction amount determination unit.

【図5】誤差フィルタ8aの詳細構成図FIG. 5 is a detailed configuration diagram of an error filter 8a.

【図6】誤差フィルタ8aの別の詳細構成図FIG. 6 is another detailed configuration diagram of the error filter 8a.

【図7】擬似乱数発生部の詳細構成図FIG. 7 is a detailed configuration diagram of a pseudo random number generator.

【図8】Aビット擬似乱数発生部の詳細構成図FIG. 8 is a detailed configuration diagram of an A-bit pseudo random number generator.

【図9】誤差集積演算部の詳細構成図FIG. 9 is a detailed configuration diagram of an error integrated calculation unit.

【図10】誤差フィルタ8bの詳細構成図FIG. 10 is a detailed configuration diagram of an error filter 8b.

【図11】注目画素が周辺画素にはみ出した状態の説明
FIG. 11 is an explanatory diagram of a state in which a pixel of interest extends beyond peripheral pixels.

【図12】注目画素に周辺画素よりはみ出してきた状態
の説明図
FIG. 12 is an explanatory diagram of a state in which a pixel of interest extends beyond a peripheral pixel.

【図13】ドットのつぶれた例を示す図FIG. 13 is a diagram showing an example in which dots are collapsed.

【図14】従来のファクシミリやスキャナなどに用いら
れる2値化装置の構成例を示す図
FIG. 14 is a diagram showing a configuration example of a binarizing device used in a conventional facsimile, scanner, or the like.

【図15】従来のドットのつぶれを防止する装置の構成
例を示す図
FIG. 15 is a diagram showing a configuration example of a conventional device for preventing dot collapse.

【図16】主走査方向と副走査方向の説明図FIG. 16 is an explanatory diagram of a main scanning direction and a sub scanning direction.

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

1,16,19 入力端子 2,15 加算器 3 閾値発生部 4 コンパレータ 5 出力端子 6 減算器 7 誤差データ用メモリ 8a,8b,22 誤差フィルタ 9,10,11,12 記録ドット補正メモリ 13 セレクタ 14 誤差補正量決定部 17 誤差データ補正部 18 出力画像メモリ 21 2次元擬似乱数発生部 23 誤差集積演算部 1,16,19 Input terminal 2,15 Adder 3 Threshold generator 4 Comparator 5 Output terminal 6 Subtractor 7 Error data memory 8a, 8b, 22 Error filter 9, 10, 11, 12 Recording dot correction memory 13 Selector 14 Error correction amount determination unit 17 Error data correction unit 18 Output image memory 21 Two-dimensional pseudo-random number generation unit 23 Error integrated calculation unit

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像デ−タに2値化誤差拡散値を加
算する加算手段と、この加算手段の出力を2値化する2
値化手段と、この2値化手段と前記加算手段の出力の差
値を演算する減算手段と、前記2値化手段の出力を蓄積
し、注目画素とその周辺画素のデ−タに基づいて前記差
値を補正し、前記注目画素の白黒の種別に対応した差値
補正デ−タを出力する補正手段と、この差値補正デ−タ
について、次の注目画素の周辺画素に対応する差値補正
デ−タに重み付けした後積算して作成した前記2値化誤
差拡散値を前記加算手段に出力する誤差拡散値算出手段
とを備えたことを特徴とする画像処理装置。
1. An adding unit for adding a binarized error diffusion value to input image data, and a binarizing unit 2 for binarizing an output of the adding unit.
The binarizing means, the subtracting means for calculating the difference between the outputs of the binarizing means and the adding means, and the output of the binarizing means are accumulated, and based on the data of the target pixel and its peripheral pixels. The difference value is corrected and the difference value corresponding to the black and white type of the pixel of interest.
A correction means for outputting correction data and the binarization error created by weighting the difference value correction data corresponding to the peripheral pixels of the next pixel of interest and then integrating the difference value correction data. An image processing apparatus comprising: an error diffusion value calculation means for outputting a diffusion value to the addition means.
【請求項2】 入力画像デ−タに2値化誤差拡散値を加
算する加算手段と、この加算手段の出力を2値化する2
値化手段と、この2値化手段と前記加算手段の出力の差
値を演算する減算手段と、前記2値化手段の出力画像を
記録する際の記録系における実際のドットサイズと理論
上のドットサイズとの差に応じて前記差値を補正し、注
目画素の白黒の種別に対応した補正デ−タを出力する
正手段と、この差値補正デ−タについて、次の注目画素
の周辺画素に対応する差値補正デ−タに重み付けした後
積算して作成した前記2値化誤差拡散値を前記加算手段
に出力する誤差拡散値算出手段を備えたことを特徴とす
る画像処理装置。
2. Addition means for adding a binarized error diffusion value to input image data, and 2 for binarizing the output of this addition means.
The binarizing means, the subtracting means for calculating the difference value between the output of the binarizing means and the adding means, the actual dot size in the recording system when recording the output image of the binarizing means, and the theoretical value. Correct the difference value according to the difference with the dot size, and
Compensation data output corresponding to the black and white type of eye pixel
Positive means and the binarized error diffusion value created by weighting and adding the difference value correction data corresponding to the peripheral pixels of the next target pixel to the adding means. An image processing apparatus comprising an error diffusion value calculation means for outputting.
【請求項3】 入力画像デ−タに2値化誤差拡散値を加
算する加算手段と、この加算手段の出力を2値化する2
値化手段と、この2値化手段と前記加算手段の出力の差
値を演算する減算手段と、前記2値化手段の出力を蓄積
し、注目画素とその周辺画素のデ−タに基づいて予め定
めた補正パタ−ンを選択し、前記2値化手段の出力画像
を記録する際の記録系における実際のドットサイズと理
論上のドットサイズとの差に応じて前記差値を補正し、
前記注目画素の白黒の種別に対応した差値補正デ−タを
出力する補正手段と、この差値補正デ−タについて、次
の注目画素の周辺画素に対応する差値補正デ−タに重み
付けした後積算して作成した前記2値化誤差拡散値を前
記加算手段に出力する誤差拡散値算出手段を備えたこと
を特徴とする画像処理装置。
3. Addition means for adding a binarized error diffusion value to input image data, and 2 for binarizing the output of this addition means.
The binarizing means, the subtracting means for calculating the difference between the outputs of the binarizing means and the adding means, and the output of the binarizing means are accumulated, and based on the data of the target pixel and its peripheral pixels. A predetermined correction pattern is selected, and the difference value is corrected according to the difference between the actual dot size and the theoretical dot size in the recording system when the output image of the binarizing means is recorded ,
Correction means for outputting difference value correction data corresponding to the black-and-white type of the target pixel, and the difference value correction data is weighted to the difference value correction data corresponding to the peripheral pixels of the next target pixel. An image processing apparatus comprising: an error diffusion value calculation unit that outputs the binarized error diffusion value created by integrating after that.
【請求項4】 前記誤差拡散値算出手段が、前記差値補
正データを格納する格納手段と、この格納手段より注目
画素の周囲画素に対応する差値補正データを読み出し、
各周囲画素に対応する差値補正データに重み付けした後
積算して作成した前記2値化誤差拡散値を前記加算手段
に出力する誤差フィルタよりなることを特徴とする請求
項1〜3のいれずかに記載の画像処理装置。
4. The error diffusion value calculation means reads out difference value correction data corresponding to pixels around a pixel of interest from the storage means for storing the difference value correction data,
4. The error filter according to claim 1, further comprising an error filter for outputting the binarized error diffusion value created by weighting and integrating the difference value correction data corresponding to each surrounding pixel to the adding means. The image processing device according to claim 1.
【請求項5】 前記第3補正手段に入力画像の有効、無
効を示す入力画像有効信号を入力し、有効信号の場合は
前記差値補正データを出力し、無効信号の場合には前記
差値補正データを出力しないようにしたことを特徴とす
る請求項3記載の画像処理装置。
5. An input image valid signal indicating whether the input image is valid or invalid is input to the third correcting means, the difference value correction data is output in the case of a valid signal, and the difference value in the case of an invalid signal. The image processing apparatus according to claim 3, wherein the correction data is not output.
【請求項6】 前記誤差フィルタに入力画像の有効、無
効を示す入力画像有効信号を入力し、有効信号の場合は
前記2値誤差拡散値を出力し、無効信号の場合は前記2
値誤差拡散信号を出力しないようにしたことを特徴とす
る請求項4記載の画像処理装置。
6. An input image valid signal indicating whether the input image is valid or invalid is input to the error filter, the binary error diffusion value is output in the case of a valid signal, and the binary error diffusion value is output in the case of an invalid signal.
The image processing apparatus according to claim 4, wherein the value error diffusion signal is not output.
【請求項7】 前記誤差拡散値算出手段が、前記差値補
正データに重み付けして順次メモリに格納し、このメモ
リより順次読み出して注目画素の周辺画素に対応する重
み付けをした差値補正データを集積し前記2値化誤差拡
散値として前記加算手段に出力することを特徴とする請
求項1〜3のいずれかに記載の画像処理装置。
7. The error diffusion value calculation means weights the difference value correction data and sequentially stores the weighted difference value in a memory, and sequentially reads out the difference value correction data from the memory and weights the difference value correction data corresponding to the peripheral pixels of the target pixel. The image processing apparatus according to claim 1, wherein the image processing apparatus accumulates the binary error diffusion values and outputs the binary error diffusion values to the adding unit.
【請求項8】 前記誤差拡散値算出手段に入力画像の有
効、無効を示す入力画像有効信号を入力し、有効信号の
場合は前記差値補正データを前記誤差拡散値算出手段に
出力し、無効信号の場合は前記差値補正データを出力し
ないようにしたことを特徴とする請求項7記載の画像処
理装置。
8. An input image valid signal indicating whether the input image is valid or invalid is input to the error diffusion value calculation means, and in the case of a valid signal, the difference value correction data is output to the error diffusion value calculation means and invalidated. The image processing apparatus according to claim 7, wherein the difference value correction data is not output in the case of a signal.
【請求項9】 前記差値補正データに重み付けするのに
重み付け係数を複数組用意し、この複数組を選択する乱
数発生部を、複数の1次元乱数発生部と、この1次元乱
数発生部の出力を選択する出力選択部より構成したこと
を特徴とする請求項1〜8のいずれかに記載の画像処理
装置。
9. A plurality of sets of weighting coefficients are provided for weighting the difference value correction data, and a random number generator for selecting the plurality of sets is provided with a plurality of one-dimensional random number generators and one of the one-dimensional random number generators. The image processing apparatus according to claim 1, comprising an output selection unit that selects an output.
JP4027688A 1991-08-06 1992-02-14 Image processing device Expired - Fee Related JP2553799B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP4027688A JP2553799B2 (en) 1992-02-14 1992-02-14 Image processing device
US07/924,705 US5499111A (en) 1991-08-06 1992-08-04 Image signal processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4027688A JP2553799B2 (en) 1992-02-14 1992-02-14 Image processing device

Publications (2)

Publication Number Publication Date
JPH06284275A JPH06284275A (en) 1994-10-07
JP2553799B2 true JP2553799B2 (en) 1996-11-13

Family

ID=12227914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4027688A Expired - Fee Related JP2553799B2 (en) 1991-08-06 1992-02-14 Image processing device

Country Status (1)

Country Link
JP (1) JP2553799B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0666876B2 (en) * 1986-12-19 1994-08-24 松下電器産業株式会社 Image signal processor
JP3129421B2 (en) * 1989-08-24 2001-01-29 株式会社リコー Image gradation recording device

Also Published As

Publication number Publication date
JPH06284275A (en) 1994-10-07

Similar Documents

Publication Publication Date Title
US5805738A (en) Image processing apparatus and method
JPH1056569A (en) Image processing method and device therefor
EP0382580B1 (en) Image processing apparatus
JP2553799B2 (en) Image processing device
JP3679522B2 (en) Image processing method and apparatus
JP3361355B2 (en) Image processing device
JP3137702B2 (en) Image processing device
JPH07302190A (en) Divider and image signal reader using the same
JP2777476B2 (en) Image processing device
JP3222570B2 (en) Image area identification device
JP2749985B2 (en) Image processing device
JP2570890B2 (en) Image processing device
JP2810396B2 (en) Image processing device
JP3950871B2 (en) Image processing method and apparatus
JP3178077B2 (en) Binarization processing method
JP3229141B2 (en) Halftone area determination device
JP4069768B2 (en) Image processing method and apparatus
JPH09200499A (en) Image processor
JP3476649B2 (en) Image processing method and apparatus
JPH0461475A (en) Picture processor
JP2836992B2 (en) Image scaling processor
JPH0815310B2 (en) Image processing device
JPH0937074A (en) Binary picture processor
JPH06292005A (en) Picture signal processing unit
JPH09247450A (en) Image processing unit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070822

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees