JPH09163140A - Image processor - Google Patents

Image processor

Info

Publication number
JPH09163140A
JPH09163140A JP7322716A JP32271695A JPH09163140A JP H09163140 A JPH09163140 A JP H09163140A JP 7322716 A JP7322716 A JP 7322716A JP 32271695 A JP32271695 A JP 32271695A JP H09163140 A JPH09163140 A JP H09163140A
Authority
JP
Japan
Prior art keywords
error
pixel
scanning direction
pixels
image 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.)
Granted
Application number
JP7322716A
Other languages
Japanese (ja)
Other versions
JP3782146B2 (en
Inventor
Gururajiyu Rao
ラオ・グルラジュ
Hiroki Sugano
浩樹 菅野
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP32271695A priority Critical patent/JP3782146B2/en
Publication of JPH09163140A publication Critical patent/JPH09163140A/en
Application granted granted Critical
Publication of JP3782146B2 publication Critical patent/JP3782146B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a processor capable of reducing the number of times of the access of an error buffer and accelerating a processing speed by providing a filtering means capable of performing a processing by a prescribed method and the respective means of correction, binarization/multilevel precessing, calculation, generation, storage and control. SOLUTION: The means 2 corrects the data 1 for respective picture elements by a correction amount 11 to the adjacent picture element outputted from the filtering means 10 and the correction amount 14 diffused from a previous line and correction control is performed by signals 17 generated from the means 15. The data 3 corrected in the means 2 are supplied to the means 4 and the means 6. The means 4 converts the data 3 to the binarized data of 1 bit or the multilevel data of 2 or more bits and outputs them as the data 5. The data 5 are passed through the means 4A and supplied to devices such as an external printer and a display device, etc., the duplicate images of input images are generated and they are supplied to the means 6. The signals 7 calculated in the means 6 are supplied to the means 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、処理対象文書画
像をスキャナ入力したりあるいはコピーしたりする場合
に、誤差拡散階調処理におけるテクスチャの低減と処理
ハードの簡略化及び処理の高速化を図る画像処理装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention aims at reduction of texture in error diffusion gradation processing, simplification of processing hardware and speedup of processing when a document image to be processed is scanner-inputted or copied. The present invention relates to an image processing device.

【0002】[0002]

【従来の技術】一般に、コード情報だけでなくイメージ
情報をも扱える文書画像処理装置においては、スキャナ
等の読取手段で読み取った原稿に対して文字や線図など
のコントラストのある画像情報は固定閾値により単純2
値化を行い、写真などの階調を有する画像情報は、ディ
ザ法などの疑似階調化手段によって2値化を行い、階調
の少ない2値プリンタなどに出力する。これは、読み取
った画像情報を固定閾値により単純2値化を行うと、文
字、線画像の領域は解像性が保存されるため画質劣化は
生じないが、写真画像の領域では階調性が保存されない
ために画質劣化が生じる画像となってしまう。
2. Description of the Related Art Generally, in a document image processing apparatus capable of handling not only code information but also image information, image information having contrast such as characters and diagrams on a document read by a reading means such as a scanner has a fixed threshold value. By simple 2
Image information having gradation such as a photograph is binarized by a pseudo gradation method such as a dither method and output to a binary printer having a small gradation. This is because if the read image information is simply binarized with a fixed threshold, the resolution of the character and line image areas is preserved and the image quality is not deteriorated, but the gradation of the photographic image area is not. The image is deteriorated because it is not saved.

【0003】また一方、読み取った画像情報を組織的デ
ィザ法などで階調化を行うと、写真画像の領域は階調性
が保存されるため画質劣化は生じないが、文字、線画像
の領域では解像性が低下するため画質の劣化した画像と
なってしまう。すなわち、読み取った画像情報に対し
て、単一の2値化処理では、特徴の異なるそれぞれの領
域の画質を同時に満足することは不可能である。
On the other hand, when the read image information is subjected to gradation by the systematic dither method or the like, the gradation property is preserved in the area of the photographic image so that the image quality is not deteriorated, but the area of the character or line image is formed. In that case, the resolution is lowered and the image quality is deteriorated. That is, with respect to the read image information, it is impossible to simultaneously satisfy the image quality of each region having different characteristics with a single binarization process.

【0004】しかしながら、写真画像の領域の階調性を
満足し、文字/線画像の領域も組織ディザに比べ解像性
も良い2値/多値化方式として「誤差拡散法」が提案さ
れている。「誤差拡散法」(参考文献:An Adap
tive Algorithmfor Spatial
Grayscale、by R.W.Floydan
d L.Steinberg、Ρroceedings
of the S.I.D.Vo1.17−2、p
p.75−77、Second Quarter 19
76)は、注目画素の濃度に、既に2値化された周辺画
素の2値化誤差にある重み係数を乗じたものを加え、固
定閾値により2値化を行う方法である。
However, the "error diffusion method" has been proposed as a binary / multi-valued method which satisfies the gradation of the photographic image area and has a higher resolution than the tissue dither in the character / line image area. There is. "Error diffusion method" (Reference: An Adapt
five Algorithm For Spatial
Grayscale, by R.G. W. Floydan
d L. Steinberg, Ρcecedings
of the S.P. I. D. Vo1.17-2, p
p. 75-77, Second Quarter 19
The method 76) is a method of adding a value obtained by multiplying the density of the pixel of interest by a weighting coefficient to the binarization error of the already binarized peripheral pixels, and performing binarization with a fixed threshold.

【0005】図56は「誤差拡散法」による2値化処理
の構成図である。図56において、z1は入力画像信
号、z2は注目画素の画像情報を補正する補正手段、z
3は補正画像信号、z4は補正された注目画素の画像情
報情報を2値化する2値化手段、z5は2値化画像信
号、z6は2値化された注目画素の2値化誤差を算出す
る2値化誤差算出手段、z7は2値化誤差信号、z8は
重み誤差を算出するため誤差フィルタの重み係数を記憶
する重み係数記憶手段、z9は2値化誤差算出手段z6
で算出した2値化誤差に重み係数記憶手段z8の誤差フ
ィルタ重み係数を乗じて重み誤差を算出する重み誤差算
出手段、z10は重み誤差信号、z11は重み誤差算出
手段z9で算出した重み誤差を記憶する誤差記憶手段、
z12は画像補正信号である。
FIG. 56 is a block diagram of binarization processing by the "error diffusion method". In FIG. 56, z1 is an input image signal, z2 is correction means for correcting the image information of the pixel of interest, and z is
3 is a corrected image signal, z 4 is a binarizing means for binarizing the image information information of the corrected target pixel, z 5 is a binarized image signal, and z 6 is a binarization error of the binarized target pixel. Binarization error calculation means for calculating, z7 is a binarization error signal, z8 is a weighting coefficient storage means for storing the weighting coefficient of the error filter for calculating a weighting error, and z9 is a binarization error calculation means z6.
The weighting error calculating means for calculating the weighting error by multiplying the binarization error calculated in step 3 by the error filter weighting coefficient of the weighting coefficient storage means z8, z10 is the weighting error signal, and z11 is the weighting error calculated by the weighting error calculating means z9. Error storage means for storing,
z12 is an image correction signal.

【0006】以下、「誤差拡散法」の2値化処理を詳細
に説明する。
The binarization process of the "error diffusion method" will be described in detail below.

【0007】スキャナ等の入力装置で読み取られた入力
信号z1は、補正手段z2において、画像補正信号z1
2により補正処理され、補正画像信号z3として出力さ
れる。補正画像信号z3が供給された2値化手段z4
は、補正画像信号z3と2値化閾値Τh(例えば「80
h」、添付の「h」は「hex」で16進であることを
示す)を用い、補正画像信号z3が2値化閾値Thより
大きけれぼ2値化画像信号z5として「1」(黒画素)
を出力し、小さければ「0」(白画素)を出力する。
An input signal z1 read by an input device such as a scanner is input to an image correction signal z1 by a correction means z2.
The correction processing is performed according to 2, and the corrected image signal z3 is output. Binarization means z4 to which the corrected image signal z3 is supplied
Is the corrected image signal z3 and the binarization threshold value Τh (for example, “80
h ”and the attached“ h ”are hexadecimal in“ hex ”), and the corrected image signal z3 is larger than the binarization threshold Th and is“ 1 ”(black pixel) as the binarized image signal z5. )
Is output, and if smaller, “0” (white pixel) is output.

【0008】次に、2値化誤差算出手段z6では、補正
画像信号z3と2値化画像信号z5(ただし、ここでは
2値化画像信号が「0」のときは「0h」、「1」のと
きは「FFh]とする)との差を算出し、これを2値化
誤差信号z7として出力する。
Next, in the binarization error calculating means z6, the corrected image signal z3 and the binarized image signal z5 (here, "0h", "1" when the binarized image signal is "0") In this case, "FFh]" is calculated, and this is output as a binarization error signal z7.

【0009】重み係数記憶手段z8に示される誤差フィ
ルタは、一般によく使われている誤差フィルタの構成で
ある。ここで、重み係数記憶手段z8における「*」
は、注目画素の位置を示す。重み誤差算出手段z9で
は、2値化誤差信号z7に重み係数記憶手段z8の重み
係数A、Β、C、D(ただし、A=7/16、Β=1/
16C=5/16、D=3/16)を乗じた重み誤差z
10を算出する。
The error filter shown in the weighting coefficient storage means z8 is a commonly used error filter configuration. Here, "*" in the weighting coefficient storage means z8
Indicates the position of the pixel of interest. In the weighting error calculating means z9, the weighting coefficients A, Β, C, D of the weighting coefficient storage means z8 are added to the binarization error signal z7 (where A = 7/16, Β = 1 /).
16C = 5/16, D = 3/16)
Calculate 10.

【0010】つまり、注目画素の2値化誤差に重み係数
A、Β、C、Dを乗じて、注目画素の周辺4画素(重み
係数A、Β、C、Dの位置に対応する画素)の重み誤差
を算出する。誤差記憶手段41は、重み誤差算出手段2
9で算出した重み誤差z10を記憶するためのものであ
り、重み誤差算出手段z9で算出した4画素分の重み誤
差は、注目画素「*」に対してそれぞれeA、eΒ、e
C、eDの領域に加算して記憶する。前述した画素補正
信号z12は、「*」の位置の信号であり、以上の手順
で算出した4画素分の重み誤差を蓄積した信号である。
That is, the binarization error of the pixel of interest is multiplied by the weighting factors A, B, C and D, and the four peripheral pixels (pixels corresponding to the positions of the weighting factors A, B, C and D) of the pixel of interest are multiplied. Calculate the weighting error. The error storage means 41 is a weight error calculation means 2
The weighting error z10 calculated in 9 is stored, and the weighting errors of four pixels calculated by the weighting error calculating means z9 are eA, eB, and e for the target pixel “*”, respectively.
It is added and stored in the areas of C and eD. The above-described pixel correction signal z12 is a signal at the position of “*” and is a signal in which the weight error of four pixels calculated by the above procedure is accumulated.

【0011】近年、出力装置の階調数(レベル数)が大
きい場合の誤差拡散処理においても前述の2値化手段z
4を階調数に対応する数だけの閾値を用いる多値化手段
に置き換えて用いられるようになっている。
In recent years, even in the error diffusion processing when the number of gradations (number of levels) of the output device is large, the above-mentioned binarizing means z is used.
4 is replaced with a multi-level converting means using threshold values corresponding to the number of gradations.

【0012】上記の「誤差拡散処理」は注目画素の2値
/多値化処理により発生した誤差を、周辺画素に拡散し
て誤差補正を行うことにより、2値/多値化誤差を最小
にするものである。この方法の一つの問題点は出力画像
(特に2値化処理の場合)にテクスチャ(textur
e:規則的な模様)が現れるということである。
The above-mentioned "error diffusion processing" minimizes the binary / multi-valued error by diffusing the error generated by the binary / multi-valued processing of the pixel of interest to the peripheral pixels and performing error correction. To do. One problem with this method is that the texture (texture) is added to the output image (especially in the case of binarization processing).
e: a regular pattern) appears.

【0013】また上記のフィルタ係数を用いる場合、誤
差拡散フィルタリング時に乗算器が必要となるため回路
規模が大きくなり、スピードも遅くなるという問題もあ
る。この問題を解決するためにフィルタの係数を2のべ
き乗にする方法などが提案されているが、出力画像にテ
クスチャがより目立つようになる。
Further, when the above filter coefficient is used, there is a problem that a multiplier is required at the time of error diffusion filtering so that the circuit scale becomes large and the speed becomes slow. In order to solve this problem, a method has been proposed in which the filter coefficient is set to a power of 2, but the texture becomes more conspicuous in the output image.

【0014】テクスチャを低減する方法として、フィル
タ係数の配置をランダムにする方法があるが、ランダム
性が比較的低い。係数値をランダムにする方法も考えら
れるが、これはランダム係数(A+Β+C+D)を1に
する条件が必要であり、かなり複雑なものとなる。
As a method of reducing the texture, there is a method of randomly arranging the filter coefficients, but the randomness is relatively low. A method of making the coefficient values random is also conceivable, but this requires a condition for setting the random coefficient (A + B + C + D) to 1, which makes it considerably complicated.

【0015】係数の変わりにマスクと論理積のみからな
る方法も提案されているが、これはスキャナのばらつき
ノイズなどの相乗効果でテクスチャを低減する高速方法
である。しかし、CG(コンピュータグラフィックス)
などのコンピュータにより数値的に生成された画像に関
してはそのランダム性は少なくテクスチャの低減は十分
ではない。そこで、ビットマスク法のマスク値をランダ
ムにする方法や誤差補正部の論理演算によるテクスチャ
の低減や閾値処理そのものを論理演算によって施すこと
によるテクスチャの低減などが提案されている。
A method has been proposed in which only the mask and the logical product are used instead of the coefficient, but this is a high-speed method for reducing the texture by the synergistic effect of scanner variation noise. However, CG (Computer Graphics)
For images numerically generated by a computer such as, the randomness is small and the reduction of texture is not sufficient. Therefore, a method of randomizing a mask value in the bit mask method, a texture reduction by a logical operation of an error correction unit, and a texture reduction by performing a threshold operation itself by a logical operation have been proposed.

【0016】しかし、上記の何れの方法もテクスチャの
低減あるいは高画質、またはある程度従来の方法と比べ
て処理速度を早くするための対策であるが、2つの主な
欠点を持つ。1つは、読み取り解像度を細かくすると誤
差バッファのメモリ容量も対応して大きくなり、コスト
アップにつながる。もう一つは、処理クロックをさらに
上げていくと処理速度が限界に達してしまう問題があ
る。
However, although any of the above methods is a measure for reducing the texture or high image quality, or to some extent to increase the processing speed compared with the conventional method, it has two main drawbacks. First, if the reading resolution is made fine, the memory capacity of the error buffer is correspondingly increased, which leads to an increase in cost. Another problem is that the processing speed reaches the limit when the processing clock is further increased.

【0017】[0017]

【発明が解決しようとする課題】上記したように、従来
の構成では、読取り解像度を上げていくと、必要とする
誤差バッファの容量が対応して大きくなり、コストアッ
プにつながる。さらに、処理速度(処理クロック)を上
げていくと、現状の構成ではパイプライン処理(または
並列処理)が不可能であるため、限界に達してしまう。
As described above, in the conventional configuration, as the reading resolution is increased, the required capacity of the error buffer is correspondingly increased, leading to an increase in cost. Furthermore, if the processing speed (processing clock) is increased, the limit is reached because pipeline processing (or parallel processing) is not possible with the current configuration.

【0018】そこで、この発明は誤差フィルタの構成、
組み合わせと画素毎の誤差フィルタの切り替えによって
誤差バッファのメモリ容量の低減、パイプライン処理
(並列処理)による高速化を図ることを目的とする。
Therefore, according to the present invention, the configuration of the error filter is
An object of the present invention is to reduce the memory capacity of the error buffer by switching the combination and the error filter for each pixel, and to speed up the pipeline processing (parallel processing).

【0019】すなわち、この発明では、従来の誤差フィ
ルタを複数のフィルタに再構成し、処理対象画素毎にフ
ィルタの切り替えを行う。このことにより、画素毎の処
理においてすぐ隣の画素に拡散される誤差を避け、1画
素おきや複数画素おきになるような構成が可能とするこ
とによって、並列処理やパイプライン処理を可能とし、
誤差バッファのアクセス回数の低減による処理速度の改
善を図る。
That is, in the present invention, the conventional error filter is reconfigured into a plurality of filters, and the filters are switched for each pixel to be processed. As a result, it is possible to avoid an error that is diffused to the immediately adjacent pixel in the processing for each pixel and to make it possible to arrange every other pixel or every plural pixels, thereby enabling parallel processing and pipeline processing,
The processing speed is improved by reducing the number of times the error buffer is accessed.

【0020】同様に、次のラインに誤差拡散する画素を
1画素や複数画素おきになるような構成とすることによ
り必要となる誤差バッファのメモリ容量の低減を図る。
Similarly, the memory capacity of the error buffer required is reduced by arranging every other pixel or a plurality of pixels for error diffusion in the next line.

【0021】[0021]

【課題を解決するための手段】この発明の画像処理装置
は、主走査方向に複数の画素でかつ副走査方向に複数の
ラインからなる処理対象画像における注目画素の画像デ
ータを2値/多値化誤差拡散に基づく誤差補正量によっ
て補正した補正画像データを出力する補正手段、この補
正手段による補正画像データを2値/多値化する2値/
多値化手段、この2値/多値化手段により2値/多値化
された2値/多値化画像データと上記補正手段による補
正画像データとの誤差を算出する算出手段、フィルタパ
ラメータを発生する発生手段、この発生手段により発生
されるフィルタパラメータと上記算出手段により算出さ
れた誤差との演算により周辺画素への多値誤差を拡散す
るフィルタリングを行い、注目画素に対する主走査方向
の次の画素への誤差補正量と注目画素に対する副走査方
向の次のラインへの誤差補正量とを出力する誤差フィル
タリング手段、この誤差フィルタリング手段により出力
される注目画素に対する副走査方向の次のラインへの誤
差補正量を記憶する記憶手段、およびこの記憶手段に記
憶されている注目画素に対する副走査方向の次のライン
への誤差補正量と上記誤差フィルタリング手段により出
力される注目画素に対する主走査方向の次の画素の誤差
補正量とにより、上記補正手段による注目画素の画像デ
ータの補正を行う制御手段から構成され、誤差フィルタ
リング手段は、誤差を拡散する画素の異なる複数のフィ
ルタからなるフィルタ群を設け、画素ごとあるいは複数
画素ごとに選択的にフィルタを切り替えることによりフ
ィルタリングを行うものである。
SUMMARY OF THE INVENTION An image processing apparatus according to the present invention uses binary / multivalued image data of a pixel of interest in a processing target image composed of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Means for outputting the corrected image data corrected by the error correction amount based on the digitized error diffusion, and binary / multivalued correction image data by this correcting means
A multi-value converting means, a calculating means for calculating an error between the binary / multi-valued image data binarized / multi-valued by the binary / multi-value converting means and the corrected image data by the correcting means, and a filter parameter. The generating means for generating, the filter parameter generated by the generating means and the error calculated by the calculating means are subjected to filtering for diffusing the multi-valued error to the peripheral pixels, and the next pixel in the main scanning direction with respect to the target pixel is detected. An error filtering unit that outputs an error correction amount to the pixel and an error correction amount to the next line in the sub-scanning direction with respect to the pixel of interest, and to the next line in the sub-scanning direction with respect to the pixel of interest output by the error filtering unit. A storage unit for storing the error correction amount, and an error correction amount for the next line in the sub-scanning direction with respect to the pixel of interest stored in the storage unit. The error filtering means is composed of control means for correcting the image data of the pixel of interest by the correction means based on the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering means. A filter group including a plurality of filters having different pixels for diffusing is provided, and filtering is performed by selectively switching the filter for each pixel or for each plurality of pixels.

【0022】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における注目画素の画像データを2値/多値
化誤差拡散に基づく誤差補正量によって補正した補正画
像データを出力する補正手段、この補正手段による補正
画像データを2値/多値化する2値/多値化手段、この
2値/多値化手段により2値/多値化された2値/多値
化画像データと上記補正手段による補正画像データとの
誤差を算出する算出手段、フィルタパラメータを発生す
る発生手段、この発生手段により発生されるフィルタパ
ラメータと上記算出手段により算出された誤差との演算
により周辺画素への多値誤差を拡散するフィルタリング
を行い、注目画素に対する主走査方向の次の画素への誤
差補正量と注目画素に対する副走査方向の次のラインへ
の誤差補正量とを出力する誤差フィルタリング手段、こ
の誤差フィルタリング手段により出力される注目画素に
対する副走査方向の次のラインへの誤差補正量を記憶す
る記憶手段、およびこの記憶手段に記憶されている注目
画素に対する副走査方向の次のラインへの誤差補正量と
上記誤差フィルタリング手段により出力される注目画素
に対する主走査方向の次の画素の誤差補正量とにより、
上記補正手段による注目画素の画像データの補正を行う
制御手段から構成され、誤差フィルタリング手段は、主
走査方向の誤差を拡散する画素の異なる複数のフィルタ
からなるフィルタ群を設け、画素ごとあるいは複数画素
ごとに選択的にフィルタを切り替えることにより主走査
方向の複数画素を同時にフィルタリングを行うものであ
る。
The image processing apparatus of the present invention uses the binary / multi-valued error diffusion to convert the image data of the pixel of interest in the image to be processed which is composed of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. A correction means for outputting the corrected image data corrected by the correction amount, a binary / multivalued means for binarizing / multivalued the corrected image data by the correction means, and a binary / multivalued by the binary / multivalued means. Calculation means for calculating an error between the binarized binary / multi-valued image data and the correction image data by the correction means, a generation means for generating a filter parameter, a filter parameter generated by the generation means and the calculation means. Filtering that diffuses multi-valued errors to surrounding pixels is performed by calculation with the error calculated by, and the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the target image Error filtering means for outputting the error correction amount to the next line in the sub-scanning direction with respect to, and storage means for storing the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, And the error correction amount to the next line in the sub-scanning direction for the pixel of interest stored in this storage means and the error correction amount of the next pixel in the main scanning direction for the pixel of interest output by the error filtering means,
The error filtering means is composed of a control means for correcting the image data of the pixel of interest by the correction means. A plurality of pixels in the main scanning direction are simultaneously filtered by selectively switching the filters for each.

【0023】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における主走査方向に1画素ごとのストリー
ムで入力される画像データを複数画素ごとの画像データ
に変換する変換手段、この変換手段により変換された複
数画素の注目画素の画像データに対する2値/多値化誤
差拡散に基づく誤差補正量によって補正した複数の補正
画像データを出力する補正手段、この補正手段による複
数の補正画像データをそれぞれ2値/多値化する2値/
多値化手段、この2値/多値化手段により2値/多値化
された複数の2値/多値化画像データを主走査方向に1
画素ごとのストリームに変換して出力する出力手段、上
記2値/多値化手段による複数の2値/多値化画像デー
タと上記補正手段による複数の補正画像データとのそれ
ぞれの誤差を算出する算出手段、フィルタパラメータを
発生する発生手段、この発生手段により発生されるフィ
ルタパラメータと上記算出手段により算出された誤差と
の演算により周辺画素への多値誤差を拡散するフィルタ
リングを行い、注目画素に対する主走査方向の次の画素
への誤差補正量と注目画素に対する副走査方向の次のラ
インへの誤差補正量とを出力する誤差フィルタリング手
段、この誤差フィルタリング手段により出力される注目
画素に対する副走査方向の次のラインへの誤差補正量を
記憶する記憶手段、およびこの記憶手段に記憶されてい
る注目画素に対する副走査方向の次のラインへの誤差補
正量と上記誤差フィルタリング手段により出力される注
目画素に対する主走査方向の次の画素の誤差補正量とに
より、上記補正手段による注目画素の画像データの補正
を行う制御手段から構成され、誤差フィルタリング手段
は、誤差を拡散する画素の異なる複数のフィルタからな
るフィルタ群を設け、画素ごとあるいは複数画素ごとに
選択的にフィルタを切り替えることにより主走査方向の
複数画素を同時にフィルタリングを行うものである。
The image processing apparatus of the present invention includes a plurality of image data input in a stream of each pixel in the main scanning direction in the image to be processed which includes a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Converting means for converting into pixel-by-pixel image data, and outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by this converting means Correction means, and a plurality of corrected image data obtained by the correction means
Multi-value conversion means, and a plurality of binary / multi-valued image data which has been binarized / multi-valued by the binary / multi-value conversion means 1 in the main scanning direction
Outputting means for converting into a stream for each pixel and outputting it, calculating respective errors between a plurality of binary / multivalued image data by the binary / multivalued means and a plurality of corrected image data by the correcting means. Calculating means, generating means for generating a filter parameter, filtering for diffusing a multi-valued error to peripheral pixels by calculation of the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting an error correction amount to the next pixel in the main scanning direction and an error correction amount to the next line in the sub-scanning direction for the pixel of interest, and a sub-scanning direction for the pixel of interest output by this error filtering means Of the error correction amount to the line next to the pixel and the pixel of interest stored in this memory. The image data of the pixel of interest is corrected by the correction unit based on the error correction amount for the next line in the sub-scanning direction and the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering unit. The error filtering means is provided with a filter group including a plurality of filters having different pixels for diffusing an error, and a plurality of pixels in the main scanning direction are selectively switched for each pixel or for each plurality of pixels. Are to be simultaneously filtered.

【0024】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における主走査方向に1画素ごとのストリー
ムで入力される画像データを複数画素ごとの画像データ
に変換する変換手段、この変換手段により変換された複
数画素の注目画素の画像データに対する2値/多値化誤
差拡散に基づく誤差補正量によって補正した複数の補正
画像データを出力する補正手段、この補正手段による複
数の補正画像データをそれぞれ2値/多値化する2値/
多値化手段、この2値/多値化手段により2値/多値化
された複数の2値/多値化画像データを主走査方向に1
画素ごとのストリームに変換して出力する出力手段、上
記2値/多値化手段による複数の2値/多値化画像デー
タと上記補正手段による複数の補正画像データとのそれ
ぞれの誤差を算出する算出手段、フィルタパラメータを
発生する発生手段、この発生手段により発生されるフィ
ルタパラメータと上記算出手段により算出された誤差と
の演算により周辺画素への多値誤差を拡散するフィルタ
リングを行い、注目画素に対する主走査方向の次の画素
への誤差補正量と注目画素に対する副走査方向の次のラ
インへの誤差補正量とを出力する誤差フィルタリング手
段、この誤差フィルタリング手段により出力される注目
画素に対する副走査方向の次のラインへの誤差補正量を
記憶する記憶手段、およびこの記憶手段に記憶されてい
る注目画素に対する副走査方向の次のラインへの誤差補
正量と上記誤差フィルタリング手段により出力される注
目画素に対する主走査方向の次の画素の誤差補正量とに
より、上記補正手段による注目画素の画像データの補正
を行う制御手段から構成され、誤差フィルタリング手段
は、誤差を拡散する画素の異なる複数のフィルタからな
るフィルタ群を設け、画素ごとあるいは複数画素ごとに
選択的にフィルタを切り替えることにより上記記憶手段
のアクセス回数が削減されかつ主走査方向の複数画素を
同時にフィルタリングを行うものである。
The image processing apparatus according to the present invention includes a plurality of pieces of image data input in a stream of each pixel in the main scanning direction in an image to be processed which includes a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Converting means for converting into pixel-by-pixel image data, and outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by this converting means Correction means, and a plurality of corrected image data obtained by the correction means
Multi-value conversion means, and a plurality of binary / multi-valued image data which has been binarized / multi-valued by the binary / multi-value conversion means 1 in the main scanning direction
Outputting means for converting into a stream for each pixel and outputting it, calculating respective errors between a plurality of binary / multivalued image data by the binary / multivalued means and a plurality of corrected image data by the correcting means. Calculating means, generating means for generating a filter parameter, filtering for diffusing a multi-valued error to peripheral pixels by calculation of the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting an error correction amount to the next pixel in the main scanning direction and an error correction amount to the next line in the sub-scanning direction for the pixel of interest, and a sub-scanning direction for the pixel of interest output by this error filtering means Of the error correction amount to the line next to the pixel and the pixel of interest stored in this memory. The image data of the pixel of interest is corrected by the correction unit based on the error correction amount for the next line in the sub-scanning direction and the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering unit. The error filtering means is provided with a filter group composed of a plurality of filters having different pixels for diffusing an error, and the number of accesses to the storage means is selectively switched for each pixel or for each plurality of pixels. Is reduced and a plurality of pixels in the main scanning direction are simultaneously filtered.

【0025】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における主走査方向に1画素ごとのストリー
ムで入力される画像データを複数画素ごとの画像データ
に変換する変換手段、この変換手段により変換された複
数画素の注目画素の画像データに対する2値/多値化誤
差拡散に基づく誤差補正量によって補正した複数の補正
画像データを出力する補正手段、この補正手段による複
数の補正画像データをそれぞれ2値/多値化する2値/
多値化手段、この2値/多値化手段により2値/多値化
された複数の2値/多値化画像データを主走査方向に1
画素ごとのストリームに変換して出力する出力手段、上
記2値/多値化手段による複数の2値/多値化画像デー
タと上記補正手段による複数の補正画像データとのそれ
ぞれの誤差を算出する算出手段、フィルタパラメータを
発生する発生手段、この発生手段により発生されるフィ
ルタパラメータと上記算出手段により算出された誤差と
の演算により周辺画素への多値誤差を拡散するフィルタ
リングを行い、注目画素に対する主走査方向の次の画素
への誤差補正量と注目画素に対する副走査方向の次のラ
インへの誤差補正量とを出力する誤差フィルタリング手
段、この誤差フィルタリング手段により出力される注目
画素に対する副走査方向の次のラインへの誤差補正量を
記憶する記憶手段、およびこの記憶手段に記憶されてい
る注目画素に対する副走査方向の次のラインへの誤差補
正量と上記誤差フィルタリング手段により出力される注
目画素に対する主走査方向の次の画素の誤差補正量とに
より、上記補正手段による注目画素の画像データの補正
を行う制御手段から構成され、誤差フィルタリング手段
は、誤差を拡散する画素の異なる複数のフィルタからな
る第1のフィルタ群と、主走査方向の1画素おきあるい
は複数画素おき、または副走査方向の次のラインにおけ
る1画素おきあるいは複数画素おきに誤差拡散を行い、
かつ誤差を拡散する画素の異なる複数のフィルタからな
る第2のフィルタ群と、主走査方向の1画素おきあるい
は複数画素おき、または副走査方向の次のラインにおけ
る1画素おきあるいは複数画素おき、または主走査方向
あるいは副走査方向の次のラインにおける1画素おきあ
るいは複数画素おきに誤差拡散を行い、かつ誤差を拡散
する画素の異なる複数のフィルタからなる第3のフィル
タ群とを設け、第1、第2、第3のフィルタ群のいずれ
かを選択的に用いることによりフィルタリングを行うも
のである。
The image processing apparatus according to the present invention includes a plurality of pieces of image data input in a stream of each pixel in the main scanning direction in an image to be processed which is composed of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Converting means for converting into pixel-by-pixel image data, and outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by this converting means Correction means, and a plurality of corrected image data obtained by the correction means
Multi-value conversion means, and a plurality of binary / multi-valued image data which has been binarized / multi-valued by the binary / multi-value conversion means 1 in the main scanning direction
Outputting means for converting into a stream for each pixel and outputting it, calculating respective errors between a plurality of binary / multivalued image data by the binary / multivalued means and a plurality of corrected image data by the correcting means. Calculating means, generating means for generating a filter parameter, filtering for diffusing a multi-valued error to peripheral pixels by calculation of the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting an error correction amount to the next pixel in the main scanning direction and an error correction amount to the next line in the sub-scanning direction for the pixel of interest, and a sub-scanning direction for the pixel of interest output by this error filtering means Of the error correction amount to the line next to the pixel and the pixel of interest stored in this memory. The image data of the pixel of interest is corrected by the correction unit based on the error correction amount for the next line in the sub-scanning direction and the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering unit. The error filtering means includes a first filter group including a plurality of filters having different pixels for diffusing an error, and every other pixel or every other pixel in the main scanning direction, or the next filter in the sub scanning direction. Perform error diffusion every other pixel or every other pixel in the line,
And a second filter group consisting of a plurality of filters with different pixels for diffusing an error, and every other pixel or every other pixel in the main scanning direction, or every other pixel or every plural pixels in the next line in the sub scanning direction, or Error diffusion is performed every other pixel or every plurality of pixels in the next line in the main scanning direction or the sub-scanning direction, and a third filter group including a plurality of filters having different pixels for diffusing the error is provided. Filtering is performed by selectively using one of the second and third filter groups.

【0026】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における主走査方向に1画素ごとのストリー
ムで入力される画像データを複数ラインで複数画素のマ
トリクスごとの画像データに変換する変換手段、この変
換手段により変換されたマトリクスの画素ごとの画像デ
ータに対する2値/多値化誤差拡散に基づく誤差補正量
によって補正したマトリクスの画素の補正画像データを
出力する補正手段、この補正手段によるマトリクスの画
素の補正画像データをそれぞれ2値/多値化する2値/
多値化手段、この2値/多値化手段により2値/多値化
されたマトリクスの画素の2値/多値化画像データを主
走査方向に1画素ごとのストリームに変換して出力する
出力手段、上記2値/多値化手段によるマトリクスの画
素の2値/多値化画像データと上記補正手段によるマト
リクスの画素の補正画像データとのそれぞれの誤差を算
出する算出手段、フィルタパラメータを発生する発生手
段、この発生手段により発生されるフィルタパラメータ
と上記算出手段により算出された誤差との演算により周
辺画素への多値誤差を拡散するフィルタリングを行い、
注目画素に対する主走査方向の次の画素への誤差補正量
と注目画素に対する副走査方向の次のラインへの誤差補
正量とを出力する誤差フィルタリング手段、この誤差フ
ィルタリング手段により出力される注目画素に対する副
走査方向の次のラインへの誤差補正量を記憶する記憶手
段、およびこの記憶手段に記憶されている注目画素に対
する副走査方向の次のラインへの誤差補正量と上記誤差
フィルタリング手段により出力される注目画素に対する
主走査方向の次の画素の誤差補正量とにより、上記補正
手段による注目画素の画像データの補正を行う制御手段
から構成され、誤差フィルタリング手段は、誤差を拡散
する画素の異なる複数のフィルタからなるフィルタ群を
設け、画素ごとあるいは複数画素ごとに選択的にフィル
タを切り替えることにより上記記憶手段のアクセス回数
が削減されかつ複数ラインで複数画素のマトリクスを同
時にフィルタリングを行うものである。
The image processing apparatus of the present invention includes a plurality of image data input in a stream of each pixel in the main scanning direction in an image to be processed which includes a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. A conversion unit for converting the image data of each matrix of a plurality of pixels on a line, and the pixels of the matrix corrected by the error correction amount based on the binary / multi-valued error diffusion for the image data of each pixel of the matrix converted by this conversion unit. Correction means for outputting the corrected image data, and binary / multivalued correction image data of pixels of the matrix by the correction means.
Multi-value conversion means, converts the binary / multi-valued image data of the pixels of the binary / multi-valued matrix by the binary / multi-valued conversion means into a stream for each pixel in the main scanning direction and outputs the stream. Output means, calculating means for calculating respective errors between the binary / multivalued image data of the matrix pixels by the binary / multivalued means and the corrected image data of the matrix pixels by the correction means, and filter parameters. Generating means for generating, filtering for diffusing multi-valued error to surrounding pixels by calculation of the filter parameter generated by this generating means and the error calculated by the calculating means,
Error filtering means for outputting an error correction amount for the pixel of interest to the next pixel in the main scanning direction and an error correction amount for the pixel of interest to the next line in the sub-scanning direction, for the pixel of interest output by the error filtering device Storage means for storing the amount of error correction for the next line in the sub-scanning direction, and the amount of error correction for the next line in the sub-scanning direction for the pixel of interest stored in this storage means and the error filtering means. The error correction amount of the next pixel in the main scanning direction with respect to the target pixel, and the error filtering unit includes a plurality of different pixels in which the error is diffused. By providing a filter group consisting of the above filters, it is possible to selectively switch the filter for each pixel or for each multiple pixels. The is performed simultaneously filtering a plurality of pixels of the matrix with the number of accesses is reduced and more lines of the storage means.

【0027】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における複数チャネルからなる注目画素の画
像データを2値/多値化誤差拡散に基づく誤差補正量に
よって補正した複数チャネルの補正画像データを出力す
る補正手段、この補正手段による複数チャネルの補正画
像データを2値/多値化する2値/多値化手段、この2
値/多値化手段により2値/多値化された複数チャネル
の2値/多値化画像データと上記補正手段による複数チ
ャネルの補正画像データとの誤差を算出する算出手段、
フィルタパラメータを発生する発生手段、この発生手段
により発生されるフィルタパラメータと上記算出手段に
より算出された複数チャネルの誤差との演算により周辺
画素への多値誤差を拡散するフィルタリングを行い、複
数チャネルの注目画素に対する主走査方向の次の画素へ
の誤差補正量と複数チャネルの注目画素に対する副走査
方向の次のラインへの誤差補正量とを出力する誤差フィ
ルタリング手段、この誤差フィルタリング手段により出
力される複数チャネルの注目画素に対する副走査方向の
次のラインへの誤差補正量を記憶する記憶手段、および
この記憶手段に記憶されている複数チャネルの注目画素
に対する副走査方向の次のラインへの誤差補正量と上記
誤差フィルタリング手段により出力される複数チャネル
の注目画素に対する主走査方向の次の画素の誤差補正量
とにより、上記補正手段による複数チャネルの注目画素
の画像データの補正を行う制御手段から構成され、誤差
フィルタリング手段は、各チャネルごとに、誤差を拡散
する画素の異なる複数のフィルタからなるフィルタ群を
設け、副走査方向の次のラインにおける1画素おきある
いは複数画素おきの誤差拡散を行う場合に、少なくとも
1つ以上のチャネルにおいて、副走査方向に拡散される
画素の箇所が異なるフィルタを用いることにより、上記
記憶手段のアクセス回数が削減されかつ主走査方向の複
数チャネルの複数画素を同時にフィルタリングを行うも
のである。
The image processing apparatus according to the present invention uses the binary / multi-value conversion error of the image data of the target pixel consisting of a plurality of channels in the processing target image consisting of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Correcting means for outputting corrected image data of a plurality of channels corrected by an error correction amount based on diffusion, binary / multivalued means for binarizing / correcting the corrected image data of a plurality of channels by the correcting means, the two
Calculation means for calculating an error between the binary / multivalued image data of a plurality of channels binarized / multivalued by the value / multivalued means and the corrected image data of a plurality of channels by the correction means,
Generating means for generating a filter parameter, filtering for diffusing a multi-valued error to peripheral pixels by calculation of the filter parameter generated by the generating means and the error of a plurality of channels calculated by the calculating means is performed. An error filtering unit that outputs an error correction amount to the next pixel in the main scanning direction with respect to the target pixel and an error correction amount to the next line in the sub scanning direction with respect to the target pixel of a plurality of channels, and is output by this error filtering unit. Storage means for storing the error correction amount to the next line in the sub-scanning direction for the target pixel of the plurality of channels, and error correction to the next line in the sub-scanning direction for the target pixel of the plurality of channels stored in this storage means Quantity and the target pixel of a plurality of channels output by the error filtering means The correction unit is composed of control means for correcting the image data of the target pixel of a plurality of channels by the correction amount of the next pixel in the main scanning direction. The error filtering means diffuses the error for each channel. When a filter group including a plurality of filters having different pixels is provided and error diffusion is performed every other pixel or every other pixel in the next line in the sub-scanning direction, at least one channel is diffused in the sub-scanning direction. By using a filter in which the location of the pixel is different, the number of accesses to the storage means is reduced and a plurality of pixels of a plurality of channels in the main scanning direction are simultaneously filtered.

【0028】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における複数チャネルからなる注目画素の画
像データを2値/多値化誤差拡散に基づく誤差補正量に
よって補正した複数チャネルの補正画像データを出力す
る補正手段、この補正手段による複数チャネルの補正画
像データを2値/多値化する2値/多値化手段、この2
値/多値化手段により2値/多値化された複数チャネル
の2値/多値化画像データと上記補正手段による複数チ
ャネルの補正画像データとの誤差を算出する算出手段、
フィルタパラメータを発生する発生手段、この発生手段
により発生されるフィルタパラメータと上記算出手段に
より算出された複数チャネルの誤差との演算により周辺
画素への多値誤差を拡散するフィルタリングを行い、複
数チャネルの注目画素に対する主走査方向の次の画素へ
の誤差補正量と複数チャネルの注目画素に対する副走査
方向の次のラインへの誤差補正量とを出力する誤差フィ
ルタリング手段、この誤差フィルタリング手段により出
力される複数チャネルの注目画素に対する副走査方向の
次のラインへの誤差補正量を記憶する記憶手段、および
この記憶手段に記憶されている複数チャネルの注目画素
に対する副走査方向の次のラインへの誤差補正量と上記
誤差フィルタリング手段により出力される複数チャネル
の注目画素に対する主走査方向の次の画素の誤差補正量
とにより、上記補正手段による複数チャネルの注目画素
の画像データの補正を行う制御手段から構成され、誤差
フィルタリング手段は、複数のチャネルの内少なくとも
1つのチャネルに対して、固定係数のフィルタを用いて
誤差拡散を行い、他のチャネルに対して、主走査方向の
1画素おきあるいは複数画素おき、または副走査方向の
次のラインにおける1画素おきあるいは複数画素おき、
または主走査方向あるいは副走査方向の次のラインにお
ける1画素おきあるいは複数画素おきに誤差拡散を行
い、かつ誤差を拡散する画素の異なる複数のフィルタか
らなるフィルタ群を設け、副走査方向の次のラインにお
ける1画素おきあるいは複数画素おきの誤差拡散を行う
ことにより、上記記憶手段のアクセス回数が削減されか
つ主走査方向の複数画素を同時にフィルタリングを行う
ものである。
The image processing apparatus according to the present invention uses the binary / multi-value conversion error of the image data of the target pixel consisting of a plurality of channels in the image to be processed consisting of a plurality of pixels in the main scanning direction and a plurality of lines in the sub-scanning direction. Correcting means for outputting corrected image data of a plurality of channels corrected by an error correction amount based on diffusion, binary / multivalued means for binarizing / correcting the corrected image data of a plurality of channels by the correcting means, the two
Calculation means for calculating an error between the binary / multivalued image data of a plurality of channels binarized / multivalued by the value / multivalued means and the corrected image data of a plurality of channels by the correction means,
Generating means for generating a filter parameter, filtering for diffusing a multi-valued error to peripheral pixels by calculation of the filter parameter generated by the generating means and the error of a plurality of channels calculated by the calculating means is performed. An error filtering unit that outputs an error correction amount to the next pixel in the main scanning direction with respect to the target pixel and an error correction amount to the next line in the sub scanning direction with respect to the target pixel of a plurality of channels, and is output by this error filtering unit. Storage means for storing the error correction amount to the next line in the sub-scanning direction for the target pixel of the plurality of channels, and error correction to the next line in the sub-scanning direction for the target pixel of the plurality of channels stored in this storage means Quantity and the target pixel of a plurality of channels output by the error filtering means The error filtering means is composed of control means for correcting the image data of the target pixel of the plurality of channels by the correction amount of the next pixel in the main scanning direction, and the error filtering means is at least one of the plurality of channels. Error diffusion is performed using a filter with a fixed coefficient, and every other pixel or every other pixel in the main scanning direction, or every other pixel or multiple pixels in the next line in the sub scanning direction with respect to other channels. Every
Alternatively, error diffusion is performed every other pixel or every other plurality of pixels in the next line in the main scanning direction or the sub-scanning direction, and a filter group including a plurality of filters having different pixels for diffusing the error is provided. By performing error diffusion every other pixel or every plurality of pixels in the line, the number of accesses to the storage means is reduced and a plurality of pixels in the main scanning direction are simultaneously filtered.

【0029】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における注目画素の画像データを2値/多値
化誤差拡散に基づく誤差補正量によって補正した補正画
像データを出力する補正手段、この補正手段による補正
画像データを2値/多値化する2値/多値化手段、この
2値/多値化手段により2値/多値化された2値/多値
化画像データと上記補正手段による補正画像データとの
誤差を算出する算出手段、フィルタパラメータを発生す
る発生手段、この発生手段により発生されるフィルタパ
ラメータと上記算出手段により算出された誤差との演算
により周辺画素への多値誤差を拡散するフィルタリング
を行い、注目画素に対する主走査方向の次の画素への誤
差補正量と注目画素に対する副走査方向の次のラインへ
の誤差補正量とを出力する誤差フィルタリング手段、こ
の誤差フィルタリング手段により出力される注目画素に
対する副走査方向の次のラインへの誤差補正量を記憶す
る記憶手段、およびこの記憶手段に記憶されている注目
画素に対する副走査方向の次のラインへの誤差補正量と
上記誤差フィルタリング手段により出力される注目画素
に対する主走査方向の次の画素の誤差補正量とにより、
上記補正手段による注目画素の画像データの補正を行う
制御手段から構成され、誤差フィルタリング手段は、誤
差を拡散する画素の異なる複数のフィルタからなるフィ
ルタ群を設け、副走査方向のラインごとに、画素ごとあ
るいは複数画素ごとに異なった順番で選択的にフィルタ
を切り替えることによりフィルタリングを行うものであ
る。
According to the image processing apparatus of the present invention, the image data of the target pixel in the image to be processed which is composed of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction is used as an error based on binary / multi-valued error diffusion. A correction means for outputting the corrected image data corrected by the correction amount, a binary / multivalued means for binarizing / multivalued the corrected image data by the correction means, and a binary / multivalued by the binary / multivalued means. Calculation means for calculating an error between the binarized binary / multi-valued image data and the correction image data by the correction means, a generation means for generating a filter parameter, a filter parameter generated by the generation means and the calculation means. Filtering that diffuses multi-valued errors to surrounding pixels is performed by calculation with the error calculated by, and the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the target image Error filtering means for outputting the error correction amount to the next line in the sub-scanning direction with respect to, and storage means for storing the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, And the error correction amount to the next line in the sub-scanning direction for the pixel of interest stored in this storage means and the error correction amount of the next pixel in the main scanning direction for the pixel of interest output by the error filtering means,
The error filtering means is provided with a filter group including a plurality of filters having different pixels for diffusing an error, and the pixel group is provided for each line in the sub-scanning direction. The filtering is performed by selectively switching the filters in a different order for each or a plurality of pixels.

【0030】この発明の画像処理装置は、主走査方向に
複数の画素でかつ副走査方向に複数のラインからなる処
理対象画像における注目画素の画像データを2値/多値
化誤差拡散に基づく誤差補正量によって補正した補正画
像データを出力する補正手段、この補正手段による補正
画像データを2値/多値化する2値/多値化手段、この
2値/多値化手段により2値/多値化された2値/多値
化画像データと上記補正手段による補正画像データとの
誤差を算出する算出手段、フィルタパラメータを発生す
る発生手段、この発生手段により発生されるフィルタパ
ラメータと上記算出手段により算出された誤差との演算
により周辺画素への多値誤差を拡散するフィルタリング
を行い、注目画素に対する主走査方向の次の画素への誤
差補正量と注目画素に対する副走査方向の次のラインへ
の誤差補正量とを出力する誤差フィルタリング手段、こ
の誤差フィルタリング手段により出力される注目画素に
対する副走査方向の次のラインへの誤差補正量を記憶す
る記憶手段、およびこの記憶手段に記憶されている注目
画素に対する副走査方向の次のラインへの誤差補正量と
上記誤差フィルタリング手段により出力される注目画素
に対する主走査方向の次の画素の誤差補正量とにより、
上記補正手段による注目画素の画像データの補正を行う
制御手段から構成され、誤差フィルタリング手段は、主
走査方向の1画素おきあるいは複数画素おきに誤差拡散
を行い、かつ誤差を拡散する画素の異なる複数のフィル
タからなる第1のフィルタ群と、主走査方向の1画素お
きあるいは複数画素おき、または副走査方向の次のライ
ンにおける1画素おきあるいは複数画素おきに誤差拡散
を行い、かつ誤差を拡散する画素の異なる複数のフィル
タからなる第2のフィルタ群と、主走査方向の1画素お
きあるいは複数画素おき、または副走査方向の次のライ
ンにおける1画素おきあるいは複数画素おき、または主
走査方向あるいは副走査方向の次のラインにおける1画
素おきあるいは複数画素おきに誤差拡散を行い、かつ誤
差を拡散する画素の異なる複数のフィルタからなる第3
のフィルタ群とを設け、第1、第2、第3のフィルタ群
を副走査方向のラインごとに周期的またはランダムに切
り替えて用いることによりフィルタリングを行うもので
ある。
The image processing apparatus of the present invention uses the binary / multi-valued error diffusion based error of the image data of the pixel of interest in the image to be processed which is composed of a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. A correction means for outputting the corrected image data corrected by the correction amount, a binary / multivalued means for binarizing / multivalued the corrected image data by the correction means, and a binary / multivalued by the binary / multivalued means. Calculation means for calculating an error between the binarized binary / multi-valued image data and the correction image data by the correction means, a generation means for generating a filter parameter, a filter parameter generated by the generation means and the calculation means. Filtering that diffuses multi-valued errors to surrounding pixels is performed by calculation with the error calculated by, and the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the target image Error filtering means for outputting the error correction amount to the next line in the sub-scanning direction with respect to, and storage means for storing the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, And the error correction amount to the next line in the sub-scanning direction for the pixel of interest stored in this storage means and the error correction amount of the next pixel in the main scanning direction for the pixel of interest output by the error filtering means,
The error filtering means is composed of a control means for correcting the image data of the pixel of interest by the correction means, and the error filtering means performs error diffusion every other pixel or every plurality of pixels in the main scanning direction, and a plurality of different pixels for diffusing the error. Error diffusion is performed every 1 pixel or every 2 pixels in the main scanning direction, or every 1 pixel or every 2 pixels in the next line in the sub scanning direction, and the error is diffused. A second filter group composed of a plurality of filters having different pixels, and every other pixel or every other pixel in the main scanning direction, every other pixel or every other pixel in the next line in the sub scanning direction, or in the main scanning direction or the sub scanning direction. Pixels that perform error diffusion every other pixel or every plurality of pixels in the next line in the scanning direction, and diffuse the error Third made from different filters
Is provided, and filtering is performed by switching the first, second, and third filter groups periodically or randomly for each line in the sub-scanning direction.

【0031】[0031]

【発明の実施の形態】以下、この発明の実施例について
図面を参照しながら説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0032】なお、この発明は、主に、出力画像として
2値化データを得る目的のものとして説明をするが、こ
の場合に限らず、出力画像として多値化データを得る目
的のものとしても可能である。
Although the present invention will be described mainly for the purpose of obtaining binarized data as an output image, the present invention is not limited to this case, and may be for obtaining multi-valued data as an output image. It is possible.

【0033】図1はこの発明に係わる画像処理装置の構
成を概略的に示したものである。
FIG. 1 schematically shows the structure of an image processing apparatus according to the present invention.

【0034】図1において、例えば、スキャナにより読
み取られた画像(入力画像)について、複数ビット(例
えば8ビット)の画像データである入力画像データ1A
が、この画像処理装置の入力画像変換手段2Aに入力さ
れる。入力画像変換手段2Aは、その後施す画像処理
(階調処理)に応じて入力画像データ1Aを変換するも
のである。この変換は入力方法、処理方法等によって異
なるので、実施例の詳細説明時に詳しく述べる。例え
ば、後述の誤差バッファ13のメモリ低減フィルタリン
グ方法を用いて階調処理を行う場合、入力画像変換手段
2Aは、入力画像データ1Aをそのまま、変換後の入力
画像データ1として出力する。また、高速階調処理の場
合、主走査方向または副走査方向の複数画素を同時処理
を行うので、主走査方向または副走査方向の画素をまと
めて出力するものである(主走査方向の2画素並列処理
の場合は、処理対象ラインの画素ストリーム1、2、
3、4、…等を2画素単位で(1、2)、(3、4)、
…などとまとめて出力する)。
In FIG. 1, for example, with respect to an image (input image) read by a scanner, input image data 1A which is image data of a plurality of bits (for example, 8 bits).
Are input to the input image conversion means 2A of this image processing apparatus. The input image conversion means 2A is for converting the input image data 1A according to the image processing (gradation processing) to be performed thereafter. Since this conversion differs depending on the input method, the processing method, etc., it will be described in detail when the detailed description of the embodiment is given. For example, when gradation processing is performed using the memory reduction filtering method of the error buffer 13 described below, the input image conversion unit 2A outputs the input image data 1A as it is as the converted input image data 1. Further, in the case of high-speed gradation processing, since a plurality of pixels in the main scanning direction or the sub-scanning direction are simultaneously processed, pixels in the main scanning direction or the sub-scanning direction are collectively output (two pixels in the main scanning direction). In the case of parallel processing, the pixel streams 1, 2 of the processing target line,
, 3, etc. in units of two pixels (1, 2), (3, 4),
... and so on).

【0035】変換後の入力画像データ(以降入力画素デ
ータ)1は、まず、誤差補正手段2に入力される。する
と、誤差補正手段2では、画素毎の入力画素データ1を
後述する誤差フィルタリング手段10から出力される隣
の画素への誤差補正量11(以下は簡単に補正量eΤと
呼ぶ)と前ラインから拡散される誤差補正量14(以
下、簡単に補正量ePと呼ぶ)により補正するもので、
補正制御は、後述の制御信号発生手段15から発生され
る誤差補正制御信号17によって行われる。この誤差補
正手段2で補正された補正後の画像データ3は閾値処理
手段4及び誤差算出手段6に供給される。
The converted input image data (hereinafter referred to as input pixel data) 1 is first input to the error correction means 2. Then, in the error correction means 2, the input pixel data 1 for each pixel is output from the error filtering means 10 described later from the error correction amount 11 to the adjacent pixel (hereinafter simply referred to as the correction amount eT) and the previous line. The correction is performed by the diffused error correction amount 14 (hereinafter simply referred to as correction amount eP).
The correction control is performed by the error correction control signal 17 generated from the control signal generating means 15 described later. The corrected image data 3 corrected by the error correction unit 2 is supplied to the threshold value processing unit 4 and the error calculation unit 6.

【0036】閾値処理手段4は、補正後の画像データ3
が1ビットの2値化データまたは2ビット以上の多値化
データに変換されて出力画像データ5として出力するも
のである。この閾値処理手段4から出力される出力画像
データ5は、出力画像変換手段4Aを経て、外部のプリ
ンタ、ディスプレイ装置などの出力装置へ供給されて、
入力画像の複製画像を生成すると共に、誤差算出手段6
に供給されるようになっている。
The threshold value processing means 4 is used for the corrected image data 3
Is converted into 1-bit binary data or 2-bit or more multi-valued data and output as output image data 5. The output image data 5 output from the threshold processing means 4 is supplied to an output device such as an external printer or display device via the output image converting means 4A,
A duplicate image of the input image is generated and the error calculating means 6
It is supplied to.

【0037】出力画像変換手段4Aは入力画像変換手段
2Aと同様に画像を変換するもので、画像処理(階調処
理)手段とその後の出力手段に合わせて出力画像の変換
を行うものである。
The output image converting means 4A converts an image similarly to the input image converting means 2A, and converts an output image in accordance with the image processing (gradation processing) means and the subsequent output means.

【0038】例えば、画像処理が2画素を並行して行
い、出力機器として1画素毎に出力するプリンタを使用
する場合は、閾値処理から同時に2画素毎に出力される
出力画像データ5を1画素ストリームとして変換を行っ
た後、プリンタへの出力画像データ5Aとして出力す
る。このように、この画像処理機器の出力側の要求にあ
わせて変換を行う手段で、場合によって異なるので、実
施例の詳細説明時に詳しく述べることとする。
For example, when a printer that performs image processing on two pixels in parallel and outputs one pixel at a time is used as an output device, the output image data 5 output at every two pixels at the same time from the threshold process is output on one pixel. After conversion as a stream, it is output as output image data 5A to the printer. As described above, the means for performing conversion in accordance with the request from the output side of the image processing device differs depending on the case, and will be described in detail in the detailed description of the embodiment.

【0039】誤差算出手段6は、補正後の画像データ3
と出力画素データ5から注目画素に対して閾値処理を行
った、2値化データあるいは多値化データの誤差を算出
するものであり、誤差算出手段6で算出される誤差信号
7は誤差フィルタリング手段10に供給されるようにな
っている。
The error calculating means 6 calculates the corrected image data 3
And the output pixel data 5 is used to calculate the error of the binarized data or the multivalued data obtained by performing threshold processing on the pixel of interest. The error signal 7 calculated by the error calculating means 6 is the error filtering means. It is designed to be supplied to 10.

【0040】誤差フィルタリング手段10は、誤差算出
手段6からの誤差信号7と、フィルタパラメータ発生手
段8から出力されるフィルタパラメータ9を入力とし、
設定されたフィルタ構成に基づき、フィルタ(誤差フィ
ルタ)を画素毎、複数画素毎に切り替えることによりフ
ィルタリング処理を施すものであり、次のラインに対応
する誤差補正量12(以下、簡単にeNと呼ぶ)と、同
じラインの近傍画素に拡散する補正量eTを出力する。
フィルタ切り替え制御などは、後述の制御信号発生手段
15により発生されるフィルタ切り替え制御信号19に
よって行われる。
The error filtering means 10 receives the error signal 7 from the error calculating means 6 and the filter parameter 9 output from the filter parameter generating means 8, and
Based on the set filter configuration, the filter (error filter) is switched for each pixel and for every plurality of pixels to perform the filtering process, and the error correction amount 12 corresponding to the next line (hereinafter simply referred to as eN). ) And a correction amount eT that is diffused to neighboring pixels on the same line are output.
The filter switching control and the like are performed by the filter switching control signal 19 generated by the control signal generating means 15 described later.

【0041】フィルタパラメータ発生手段8は、設定に
応じて複数のフィルタパラメータを発生し、それを誤差
フィルタリング手段10に供給するものである。フィル
タパラメータのランダム化などにおける制御は、後述の
制御信号発生手段15により発生されるフィルタパラメ
ータ制御信号20により制御される。
The filter parameter generating means 8 generates a plurality of filter parameters according to the settings and supplies them to the error filtering means 10. Control such as randomization of filter parameters is controlled by a filter parameter control signal 20 generated by a control signal generating means 15 described later.

【0042】誤差バッファ13は、誤差フィルタリング
手段10から供給される次のラインヘ拡散すべき補正量
eΝを蓄える記憶手段であり、誤差補正手段2には処理
対象の注目画素に対応する前ラインからの補正量ePを
供給する。誤差バッファ13の書き込み/読み出し制御
は、後述の制御信号発生手段15により発生されるバッ
ファ制御信号18により制御される。
The error buffer 13 is a storage means for storing the correction amount eN to be diffused to the next line supplied from the error filtering means 10, and the error correction means 2 stores the correction amount eN from the previous line corresponding to the target pixel to be processed. The correction amount eP is supplied. Writing / reading control of the error buffer 13 is controlled by a buffer control signal 18 generated by a control signal generating means 15 described later.

【0043】制御信号発生手段15は、フィルタパラメ
ータ発生手段8、誤差補正手段2、誤差フィルタリング
手段10、および誤差バッファ13の書き込み、読み出
し等の制御ための制御信号を発生するものである。
The control signal generating means 15 generates a control signal for controlling writing, reading, etc. of the filter parameter generating means 8, the error correcting means 2, the error filtering means 10, and the error buffer 13.

【0044】外部インターフェース手段16は、処理速
度、コスト等を考慮して、閾値処理手段4やフィルタパ
ラメータ発生手段8や誤差フィルタリング手段10等の
設定を外部からできるような入出力インターフェースで
ある(例えば、タッチパネル、LCD表示、キーボー
ド、CRTディスプレイにより構成されている)。
The external interface means 16 is an input / output interface capable of externally setting the threshold value processing means 4, the filter parameter generating means 8, the error filtering means 10 and the like in consideration of processing speed, cost and the like (for example, , Touch panel, LCD display, keyboard, CRT display).

【0045】次に、各ブロックの詳細説明を幾つかの実
施例を通じて説明する。
Next, detailed description of each block will be given through some embodiments.

【0046】まず、フィルタ切り替えによる誤差バッフ
ァ13のアクセス回数(或いは誤差バッファ13のメモ
リ容量)の低減に関する実施例を図2を参照しながら説
明を行う。
First, an embodiment relating to the reduction of the access count of the error buffer 13 (or the memory capacity of the error buffer 13) by switching the filter will be described with reference to FIG.

【0047】図2においては、画像処理を1画素毎に行
うので、入力変換手段2Aが不要となり、図1の入力画
像データ1Aと変換後の入力画像データ1が同じものと
なる。同様に出力変換処理手段4Aも不要となるため、
図1の閾値処理後の出力画像データ5と変換後の出力画
像データ5Aが同じものとなる。
In FIG. 2, since the image processing is performed for each pixel, the input conversion means 2A is unnecessary, and the input image data 1A of FIG. 1 and the converted input image data 1 are the same. Similarly, since the output conversion processing means 4A is unnecessary,
The output image data 5 after the threshold processing and the output image data 5A after conversion in FIG. 1 are the same.

【0048】また、図1の外部インターフェース16
は、画像処理装置内部のフィルタパラメータ等のパラメ
ータや、処理選択などを外部から設定するための一般に
使われるインターフェースで、これ以降の実施例でも同
様に用いられる。
The external interface 16 shown in FIG.
Is an interface that is generally used for externally setting parameters such as filter parameters inside the image processing apparatus and processing selection, and is similarly used in the following embodiments.

【0049】それ以外に図2は、図1と同様に、誤差補
正手段2、閾値処理手段4、誤差算出手段6、フィルタ
パラメータ発生手段8、誤差フィルタリング手段10、
誤差バッファ13などから構成されており、その詳細に
ついて説明する。
2 is similar to FIG. 1, except that error correction means 2, threshold value processing means 4, error calculation means 6, filter parameter generation means 8, error filtering means 10,
The error buffer 13 and the like are provided, and the details thereof will be described.

【0050】図3は、誤差補正手段2の構成の具体例を
示す。
FIG. 3 shows a specific example of the configuration of the error correction means 2.

【0051】誤差補正手段2は、図3に示すように、加
算器100、102、フリップフロップ回路(F/F)
101、109、セレクタ103、104によって構成
されている。
The error correction means 2, as shown in FIG. 3, has adders 100 and 102 and a flip-flop circuit (F / F).
101, 109 and selectors 103, 104.

【0052】図3に示す、加算器100において、入力
画像データ1に、セレクタ103の出力105が加えら
れ、前ラインからの補正量により補正された入力画像1
06が出力される。
In the adder 100 shown in FIG. 3, the output 105 of the selector 103 is added to the input image data 1 and the input image 1 is corrected by the correction amount from the previous line.
06 is output.

【0053】セレクタ103は、後述の制御信号発生手
段15からの誤差補正制御信号17の一部であるセレク
ト信号17Aが0のとき0を出力105とし、セレクト
信号17Aが1のとき前ラインからの補正量ePを出力
105とし、それを加算器100の一つの入力として供
給する。
The selector 103 outputs 0 when the select signal 17A, which is a part of the error correction control signal 17 from the control signal generating means 15 described later, is 0, and when the select signal 17A is 1, the signal from the previous line is output. The correction amount eP is used as the output 105 and is supplied as one input to the adder 100.

【0054】前ラインの補正量により補正された入力画
像106は、フリップフロップ回路(F/F)101に
よって画像クロックに同期されて1クロック分遅延さ
れ、遅延されたデータ107として出力され、加算器1
02に供給される。
The input image 106 corrected by the correction amount of the previous line is delayed by one clock in synchronization with the image clock by the flip-flop circuit (F / F) 101, output as delayed data 107, and added by the adder. 1
02.

【0055】加算器102では、遅延された補正画像1
07にセレクタ104の出力108が加算され、補正後
の画像データ3が出力される。
In the adder 102, the delayed corrected image 1
The output 108 of the selector 104 is added to 07, and the corrected image data 3 is output.

【0056】セレクタ104は、後述の制御信号発生手
段15からの誤差補正制御信号17の一部であるセレク
ト信号17Βが、0のとき出力108を0とし、それ以
外は、前画素からの誤差補正量eTがフリップフロップ
109により1画素遅延された出力110を出力108
とする。
The selector 104 sets the output 108 to 0 when the select signal 17B, which is a part of the error correction control signal 17 from the control signal generating means 15 described later, is 0, and otherwise corrects the error from the previous pixel. The amount eT is delayed by one pixel by the flip-flop 109, and the output 110 is output 108.
And

【0057】次に、図2の閾値処理手段4の詳細につい
て図4〜図9を参照して説明する。
Next, details of the threshold value processing means 4 of FIG. 2 will be described with reference to FIGS.

【0058】図4は、比較演算による閾値処理手段で、
特に、出力画素データ5として多値化データを得るため
には、多値化データとして所望のビット数に対応する出
力レベル数(例えば、多値化データのビット数が4であ
れば、出力レベル数は16値)を設定すれば良い。出力
画像データ5として2値化データを得るためには、出力
レベル数を2とすれば良い。
FIG. 4 shows threshold value processing means by comparison calculation.
Particularly, in order to obtain multi-valued data as the output pixel data 5, the number of output levels corresponding to the desired number of bits as the multi-valued data (for example, if the number of bits of the multi-valued data is 4, The number may be 16 values. In order to obtain the binarized data as the output image data 5, the number of output levels may be set to 2.

【0059】図4では出力レベル数を(l+1)として
説明する。
In FIG. 4, the number of output levels will be described as (l + 1).

【0060】各出力レベル0、1、2、…、lに対応し
て比較器Η1、Η2、Η3、…、Ηlが設けられ、各比
較器には、誤差補正手段2からの補正後画像データ3が
入力されて、それぞれの比較器Η1、Η2、…、Ηlの
出力レベルに応じて予め定められた閾値Τh1〜Thl
とそれぞれ比較され、その比較結果ΗΟ1、ΗΟ2、
…、Ηolをそれぞれ出力する。
Comparing with the output levels 0, 1, 2, ..., 1, comparators Η1, Η2, Η3, ..., Ηl are provided, and each comparator has corrected image data from the error correcting means 2. 3 is input, and thresholds Τh1 to Thl predetermined according to the output levels of the respective comparators Η1, Η2, ..., Ηl are input.
Respectively, and the comparison results ΗΟ1, ΗΟ2,
…, Output Ηol respectively.

【0061】各比較器Η1、H2、…、Ηl(Ηi、i
=1〜l)では、補正補正後の画像データ3と、それぞ
れに設定された閾値とが比較され、補正後の画像データ
3が閾値Thiより小さい場合は比較結果Η0iとして
「0」を出力し、それ以外はΗ0iとして「1」を出力
する。
Each comparator Η1, H2, ..., Ηl (Ηi, i
= 1 to 1), the corrected image data 3 is compared with the threshold value set for each, and when the corrected image data 3 is smaller than the threshold value Thi, "0" is output as the comparison result Η0i. , Otherwise, outputs “1” as Η0i.

【0062】エンコーダ150は、比較結果Η0iをエ
ンコードするもので、比較結果Η0iに対応してl種類
の多値化データを出力画像データ5として出力する。そ
の際、比較結果Η0iとエンコーダ150から出力され
る多値化データ(出力画像データ)5の対応の具体例を
図5に示す。
The encoder 150 encodes the comparison result Η0i, and outputs 1 type of multi-valued data as output image data 5 corresponding to the comparison result Η0i. At that time, a specific example of the correspondence between the comparison result Η0i and the multi-valued data (output image data) 5 output from the encoder 150 is shown in FIG.

【0063】出力画像データ5として、2値化データを
得る場合は、「0」、「1」の2つのレベルしか存在し
ないので、図6に示すような構成が可能である。
When the binarized data is obtained as the output image data 5, there are only two levels "0" and "1", so that the configuration shown in FIG. 6 is possible.

【0064】図6において、比較器151は閾値Th1
と補正後の画像データ3を比較し、補正後の画像データ
3が閾値Τh1より小さい場合は「0」を出力し、それ
以外は「1」を出力するようになっている。
In FIG. 6, the comparator 151 has a threshold value Th1.
And the corrected image data 3 are compared with each other. If the corrected image data 3 is smaller than the threshold value Th1, "0" is output, and otherwise, "1" is output.

【0065】閾値処理手段4としては、これら以外にも
様々な構成が考えられる。例えば、図6に示すような2
値化データを得るための具体例について図7を参照して
説明する。
The threshold value processing means 4 may have various configurations other than these. For example, as shown in FIG.
A specific example for obtaining the binarized data will be described with reference to FIG. 7.

【0066】図7において、例えば1ビット×1KのR
AM152に、考えられるすべての補正後の画像データ
3に対応する2値化データを予め書き込み、補正後の画
像データ3をRAM152のアドレス信号として使うこ
とによって、2値化処理が可能である。なお、RAM1
52に書き込む変換情報は、例えば、図示しないCPU
が予め図示しない変換データが記憶されているROMか
ら読み出してRAM152に書き込むようにしても良
い。また、RAM152の代わりにROMを用いても良
い。
In FIG. 7, for example, 1 bit × 1K R
Binarization processing is possible by previously writing the binarized data corresponding to all possible post-correction image data 3 in the AM 152 and using the post-correction image data 3 as the address signal of the RAM 152. Note that RAM1
The conversion information written in 52 is, for example, a CPU not shown.
May be read from a ROM in which conversion data (not shown) is stored in advance and written in the RAM 152. A ROM may be used instead of the RAM 152.

【0067】図6、図7に示すような2値化データを得
るための閾値処理手段は、外部から閾値Τh1を設定で
きるようになっている。
The threshold value processing means for obtaining the binarized data as shown in FIGS. 6 and 7 can set the threshold value Th1 from the outside.

【0068】一方、閾値Th1が固定の場合は、図8に
示すような構成が可能である。
On the other hand, when the threshold value Th1 is fixed, a configuration as shown in FIG. 8 is possible.

【0069】図8は、論理回路を用いて、例えば、閾値
としてΤh1=7F(16進法による表示で、以下、7
Fhと表現する)と比較し、補正後の画像データ3が7
Fhより小さいときは、出力デ=タ5が「0」となり、
それ以外は「1」となるよう論理が組まれている。
FIG. 8 shows, using a logic circuit, for example, Τh1 = 7F as a threshold value (hexadecimal notation;
(Expressed as Fh), the corrected image data 3 is 7
When it is smaller than Fh, the output data 5 becomes "0",
Other than that, the logic is set to be "1".

【0070】例えば、図9に示すように、補正後の画像
データ3が符号1ビット(b9)と絶対値ビット(b0
〜b8)で構成されるものとし、閾値Th1=7Fhの
ビット展開は「01111111」であるので、図8に
示すように、アンド回路A1〜A3によって補正後の画
像データ3の下位ビット(b0〜b6)すべてが1の場
合はアンド回路A3の出力が「1」となり、それ以外は
「0」となる。さらに、オア回路A4には、アンド回路
A3の出力と、補正後の画像データ3の8ビット目(b
7)、補正後の画像データ3の9ビット目(b8)が入
力される。補正後の画像データ3がΤh1より大きい場
合は、オア回路A4の他の2つの入力のうち、どちらか
が「1」となる。
For example, as shown in FIG. 9, the corrected image data 3 has a sign 1 bit (b9) and an absolute value bit (b0).
To b8) and the bit expansion of the threshold value Th1 = 7Fh is “01111111”, the lower bits (b0 to b0) of the image data 3 corrected by the AND circuits A1 to A3 are shown in FIG. b6) The output of the AND circuit A3 is "1" when all are 1, and "0" otherwise. Further, the OR circuit A4 outputs the output of the AND circuit A3 and the 8th bit (b
7), the 9th bit (b8) of the corrected image data 3 is input. When the corrected image data 3 is larger than Τh1, one of the other two inputs of the OR circuit A4 becomes “1”.

【0071】また、補正後画像データ3のサインビット
と、オア回路A4の出力をアンド回路A5に入力して、
補正後の画像データ3が負の場合は、アンド回路A4の
出力を強制的に「0」とする。よって、補正後の画像デ
ータ3が7Fhに等しいか7Fhより大きい場合はアン
ド回路A5の出力が「1」となり、それ以外は「0」と
なる。
The sign bit of the corrected image data 3 and the output of the OR circuit A4 are input to the AND circuit A5,
When the corrected image data 3 is negative, the output of the AND circuit A4 is forcibly set to "0". Therefore, when the corrected image data 3 is equal to or greater than 7Fh, the output of the AND circuit A5 is "1", and otherwise is "0".

【0072】ここでは、閾値Th1が7Fhの場合につ
いて説明したが、閾値Τh1が7Fh以外の場合でも同
様に、比較回路を構成することが可能である。
Although the case where the threshold value Th1 is 7Fh has been described here, the comparison circuit can be similarly configured even when the threshold value Th1 is other than 7Fh.

【0073】このように論理回路による閾値処理手段は
回路規模が小さく、高速に比較演算力何能だが、欠点と
しては閾値が固定で、外部設定は不可能であるというこ
とである。
As described above, the threshold value processing means by the logic circuit has a small circuit scale and is capable of high-speed comparison operation, but the drawback is that the threshold value is fixed and external setting is impossible.

【0074】次に、図2の誤差算出手段6について、図
10を参照して説明する。
Next, the error calculating means 6 of FIG. 2 will be described with reference to FIG.

【0075】図10において、誤差算出手段6は、閾値
処理手段4から出力される出力画像データ5(2値化デ
ータ或いは多値化データ)を8ビットに変換するビット
変換手段6aと、このビット変換手段6aから供給され
る変換データと補正後の画像データ3との誤差を算出す
る減算器6bから構成され、減算器6bから誤差信号7
が出力されるようになっている。
In FIG. 10, the error calculating means 6 is a bit converting means 6a for converting the output image data 5 (binarized data or multi-valued data) output from the threshold processing means 4 into 8 bits, and this bit. It is composed of a subtractor 6b for calculating an error between the converted data supplied from the converting means 6a and the corrected image data 3, and the subtractor 6b outputs the error signal 7
Is output.

【0076】例えば、出力画像データ5が2値化データ
の場合、ビット変換手段6aは、8ビット×2のメモリ
(例えばROM)を用いて構成され、閾値Th(1)=
7Fhに対して2値化データが「0」の時、変換データ
を「00h」とし、2値化データが1の場合は変換デー
タを「FFh」とする(「h」は16進の値を示す)。
For example, when the output image data 5 is binarized data, the bit converting means 6a is constructed by using an 8 bit × 2 memory (eg ROM), and the threshold value Th (1) =
When the binary data is “0” for 7Fh, the converted data is “00h”, and when the binary data is 1, the converted data is “FFh” (“h” is a hexadecimal value). Shown).

【0077】出力画像データ5が多値化データの場合も
同様に出力レベルに対応して、複数のメモリを用いて、
それぞれの変換データを求めるようにすれば良い。
Similarly, when the output image data 5 is multi-valued data, a plurality of memories are used corresponding to the output levels.
It suffices to obtain each conversion data.

【0078】次に、フィルタパラメータ発生手段8につ
いて、図11から図18を参照しながら説明する。
Next, the filter parameter generating means 8 will be described with reference to FIGS. 11 to 18.

【0079】図11は従来の誤差拡散法の誤差フィルタ
のモデルである。*で示す注目画素の2値/多値化誤差
に対応して周辺画素A、Β、C、Dの値を補正すること
により全体の階調を保存する。フィルタの方式によって
A、Β、C、D画素に対応する係数値が変わるが、従来
の係数と誤差の乗算による方式では、A、Β、C、Dに
対応する係数ΚA、ΚΒ、KC、KDの総和は1となる
必要がある。
FIG. 11 shows a model of an error filter of the conventional error diffusion method. By correcting the values of the peripheral pixels A, B, C, and D corresponding to the binary / multi-valued error of the pixel of interest indicated by *, the entire gradation is preserved. The coefficient values corresponding to the A, B, C, and D pixels change depending on the filter method, but in the conventional method of multiplying the coefficient by the error, the coefficients K A, K, KC, and KD corresponding to A, B, C, and D, respectively. Must sum to 1.

【0080】つまり、ΚA+ΚΒ+ΚC+ΚD=1 一方、誤差と係数(この方式マスクと呼ぶ)の論理積に
よるフィルタリング方式ではマスク値をMA、MΒ、M
C、MDとすると、その総和は255(最大誤差は8ビ
ットに対応する場合)、つまり、MA+MΒ+MC+M
D=255で、MA、MΒ、MC、MDのすべてを総合
的に考察した場合は、各ビットが必ず1回だけ1となる
必要がある。
That is, K A + K K + K C + K D = 1 On the other hand, in the filtering method based on the logical product of the error and the coefficient (referred to as this method mask), the mask values are MA, M, M.
Assuming C and MD, the total sum is 255 (when the maximum error corresponds to 8 bits), that is, MA + M ++ MC + M
When D = 255 and MA, M, MC, and MD are all considered comprehensively, each bit must be 1 only once.

【0081】以降は、係数と誤差の乗算によるフィルタ
リング方法を「算術演算によるフィルタリング」と呼
び、マスクと誤差の論理積によるフィルタリングを「論
理演算によるフィルタリング」と呼ぶ。また各方法のフ
ィルタ値の設定条件は下記のとおりとなる。
Hereinafter, the filtering method by multiplication of the coefficient and the error will be called "filtering by arithmetic operation", and the filtering by logical product of the mask and error will be called "filtering by logical operation". The conditions for setting the filter value for each method are as follows.

【0082】A)算術演算によるフィルタリング 1)フィルタ係数の総和=1.0 Β)論理演算によるフィルタリング 1)マスク値の総和=255(最大誤差の絶対値=8ビ
ット) 2)すべてのマスクを総合てきに考察した場合は各ビッ
トが一回のみ1となっている。
A) Filtering by arithmetic operation 1) Sum of filter coefficients = 1.0 B) Filtering by logical operation 1) Sum of mask values = 255 (absolute value of maximum error = 8 bits) 2) Total of all masks In the case of consideration, each bit is 1 only once.

【0083】この発明では、従来と異なり、図12
(a)(b)、図23(a)〜(d)、図24(a)〜
(c)等に示すように複数のフィルタを用い、画素毎や
複数画素毎にフィルタを切り替えながら処理を行う。
In the present invention, unlike the prior art, FIG.
(A) and (b), FIG. 23 (a) to (d), and FIG. 24 (a) to
As shown in (c) and the like, a plurality of filters are used, and processing is performed while switching the filters for each pixel or for each plurality of pixels.

【0084】まず、誤差バッファ13の書込み読出し回
数およびメモリ容量の半減化に利用できる幾つかのフィ
ルタ構成について述べる。
First, some filter configurations that can be used to reduce the number of times of writing and reading of the error buffer 13 and the memory capacity will be described.

【0085】図12に示すフィルタF1とフィルタF2
を画素ごとに切り替えて処理を行うことにより誤差バッ
ファ13の書込み読出し回数(アクセス回数)およびメ
モリ容量の削減が可能である。図13においては、フィ
ルタF1を各ラインの画素1、3、5、…、等の奇数画
素に使用し、フィルタF2を2、4、6、…、等の偶数
画素に使用することにより、図に示すように、対応する
次のラインの奇数画素のみに誤差が拡散するため誤差バ
ッファの書込み読出し回数およびメモリ容量が半分にな
る。また、同様にフィルタF2を奇数画素、フィルタF
1を偶数画素に用いると、次ラインの偶数画素のみに誤
差が拡散するため、同じ効果が得られる。
Filter F1 and filter F2 shown in FIG.
It is possible to reduce the number of times of writing / reading (the number of times of access) of the error buffer 13 and the memory capacity by switching between each pixel for each pixel and performing the processing. In FIG. 13, the filter F1 is used for odd-numbered pixels such as pixels 1, 3, 5, ... Of each line, and the filter F2 is used for even-numbered pixels such as 2, 4, 6 ,. As shown in, since the error is diffused only to the odd-numbered pixels of the corresponding next line, the number of times of writing and reading of the error buffer and the memory capacity are halved. Similarly, the filter F2 is set to an odd number of pixels,
If 1 is used for even-numbered pixels, the error is diffused only to even-numbered pixels on the next line, so that the same effect can be obtained.

【0086】論理演算によるフィルタリングの場合は、
図12のフィルタ=F1の隣接画素AとCのマスク値M
AとMCの総和は255となり、条件Βの2)が満足さ
れ、フィルタF2の隣接する画素A、Β、とDのマスク
値MA、MΒ、とMDの総和は255となり、条件Βの
2)が満足される。同様に算術演算によるフィルタリン
グの場合はフィルタF1の係数の総和とフィルタF2の
係数の総和はそれぞれ1となる様に設定される。
In the case of filtering by logical operation,
Filter of FIG. 12 = mask value M of adjacent pixels A and C of F1
The sum of A and MC is 255, which satisfies the condition 2) of condition B, and the sum of mask values MA, M B, and MD of adjacent pixels A, B, and D of the filter F2 is 255, and condition 2) of condition B is satisfied. Is satisfied. Similarly, in the case of filtering by arithmetic operation, the sum of the coefficients of the filter F1 and the sum of the coefficients of the filter F2 are set to be 1, respectively.

【0087】次に、図12のフィルタF1とフィルタF
2において、論理演算に基づくマスク値発生についての
実施例を述べる。
Next, the filter F1 and the filter F in FIG.
In Example 2, an example of mask value generation based on a logical operation will be described.

【0088】一番簡単な例を図14(a)(b)に述べ
るように予め外部から上記の条件Βを満足するように設
定する。例えば、図14(a)に示すフィルタF1にお
けるマスク値の総和は255となっており、上記の条件
Βの1)を満足する。さらに、図14(a)のマスクM
A1、MC1を総合的に考察すると各ビットが一回のみ
1になっており、条件Βの2)も満足されている。同様
に図14(b)に示すフィルタF2が条件Βを満足する
ように設定されている。図14(a)のフィルタF1の
マスク値MCをフィルタF2のマスク値MAと同じ設定
としているが、その代わりに、全く別の値を設定しても
良い。その場合は最大誤差の値は閾値等によって多少多
くなる可能性があり、誤差バッファ13のメモリ容量
は、半分より若干増える可能性がある(誤差バッファ1
3のアドレス数は半減するが、各アドレスのビット数が
増える可能性がある)。
As shown in FIGS. 14A and 14B, the simplest example is externally set in advance so as to satisfy the above condition B. For example, the total sum of mask values in the filter F1 shown in FIG. 14A is 255, which satisfies the above condition 1). Furthermore, the mask M of FIG.
When A1 and MC1 are comprehensively considered, each bit is set to 1 only once, and the condition 2) of condition B is also satisfied. Similarly, the filter F2 shown in FIG. 14B is set to satisfy the condition B. Although the mask value MC of the filter F1 in FIG. 14A is set to be the same as the mask value MA of the filter F2, a completely different value may be set instead. In that case, the maximum error value may increase a little due to the threshold value and the like, and the memory capacity of the error buffer 13 may increase slightly more than half (error buffer 1
The number of addresses in 3 is halved, but the number of bits in each address may increase).

【0089】図14(a)(b)に示す設定以外にも上
記条件Βの1)とΒの2)を満足する様々な設定が考え
られる。また、同様に算術演算においては、マスク値の
代わりに係数を上記の条件A−1)が満足するように設
定を行えば良い。
In addition to the settings shown in FIGS. 14 (a) and 14 (b), various settings satisfying the above conditions B) 1) and B) 2) are possible. Similarly, in the arithmetic operation, the coefficient may be set instead of the mask value so that the above condition A-1) is satisfied.

【0090】算術演算による誤差フィルタリング法は、
テクスチャの発生と乗算によるフィルタリング等の問題
があったが、そのテクスチャの問題や回路の簡略化によ
るフィルタリングの改善等を行った処理が「論理演算に
よるフィルタリング法」である。テクスチャ問題のさら
なる改善案としてランダムマスクの発生などが考えられ
る。
The error filtering method by arithmetic operation is
Although there are problems such as texture generation and filtering due to multiplication, etc., the "logical operation filtering method" is a process that has improved the texture problem and improved filtering by simplifying the circuit. The generation of a random mask is considered as a further improvement plan for the texture problem.

【0091】次に、図12のフィルタにおけるマスク値
のランダム発生を図15に示す。図15(a)は、図1
2(a)のフィルタF1に対応するもので、図15
(b)は、図12(b)のフィルタF2に対応するもの
である。図15(a)、図15(b)においては、M
1、M2はM系列といわれる、次数mに対応して周期
(2m−1)となるような最大周期疑似ランダム系列で
ある。
Next, FIG. 15 shows random generation of mask values in the filter of FIG. FIG.
It corresponds to the filter F1 of FIG.
FIG. 12B corresponds to the filter F2 in FIG. In FIG. 15A and FIG. 15B, M
1 and M2 are so-called M sequences, which are maximum period pseudo-random sequences having a period (2m-1) corresponding to the degree m.

【0092】また、論理反転処理部N1、Ν2はビット
毎の論理反転処理を行い、論理積処理部L1は、ビット
毎の論理積を行う処理である。図15(a)に示す、M
A1、MC1は、フィルタF1の隣接画素AとCに対応
するマスク値であり、図15(b)に示すMA2、MΒ
2、とMD2は、フィルタF2の隣接画素A、Β、とD
に対応するマスク値である。図15では次数8のM系列
を用いているが、次数9以上のM系列を発生させ、その
中から、任意の8ビットのみを利用することも可能であ
る。
The logical inversion processing units N1 and N2 perform a logical inversion process for each bit, and the logical product processing unit L1 performs a logical product for each bit. M shown in FIG.
A1 and MC1 are mask values corresponding to the adjacent pixels A and C of the filter F1, and MA2 and MB shown in FIG.
2, and MD2 are adjacent pixels A, B, and D of the filter F2.
Is a mask value corresponding to. Although FIG. 15 uses the M-series of the order 8, it is also possible to generate the M-series of the order 9 or higher and use only any 8 bits from the M-series.

【0093】さらに、図16に示すように、8ビットを
M11(3次)、M12(3次)、M13(2次)のM
系列に分割して8より小さい次数の組み合わせとして利
用することも可能である。またM1、M2、などを別々
の次数のもの(例えば、次数8、9)或いは、同じ次数
で、後述する様な、別々の特性多項式(Charact
eristic Ρolynomials)を用いて発
生することもできれば、同じM系列で、互いに独立にな
るように2つのシフトによって発生させることも可能で
ある。
Further, as shown in FIG. 16, M bits of M11 (3rd order), M12 (3rd order), and M13 (2nd order) are set to 8 bits.
It is also possible to divide it into a series and use it as a combination of orders less than 8. In addition, M1, M2, and the like have different orders (for example, orders 8 and 9) or have the same order and different characteristic polynomials (Character) as described later.
It is also possible to generate them by using the elastic polynomials, or to generate them by two shifts so that they are independent of each other in the same M sequence.

【0094】図12(a)のフィルタF1に対応する、
図15(a)によって発生されるマスクMA1、MC1
と図12(b)のフィルタF2に対応する、図15
(b)によって発生されるマスクMA2、MΒ2、MC
2は、条件Βの1)と2)を満足するため漏れなく誤差
が拡散される。
Corresponding to the filter F1 of FIG.
Masks MA1 and MC1 generated by FIG.
And FIG. 15 corresponding to the filter F2 in FIG.
Masks MA2, M2, MC generated by (b)
In the case of No. 2, since the conditions 1) and 2) of Condition B are satisfied, the error is diffused without omission.

【0095】M系列(疑似ランダム系列)発生手段の具
体例を図17に示す。これは次式の特性多項式(Cha
racteristic Polynomial)を具
体化したものである。全ての演算は、ガルワ体(Gal
ois Field)2上の演算(簡単に述べるとバイ
ナリXOR演算)である。
A concrete example of the M-sequence (pseudo-random sequence) generating means is shown in FIG. This is the characteristic polynomial (Cha of
This is a concrete example of a racististic polynomial. All operations are Galwa
oisField) 2 operation (binary XOR operation in short).

【0096】X8=Χ5+X3+X1+Χ0 図17に示したM系列の発生手段は、シフトレジスタ
(フリップフロップ回路で構成される)170aから1
70hと、エクスクルーシブオア回路171a、171
b、171cから構成され、各シフトレジスタ170a
〜170hの初期値は「0」以外のものとし、制御クロ
ック発生手段、から入力される制御クロック信号に同期
して、それぞれのレジスタの各ビット(170a〜17
0h)を右へシフトすれば、各レジスタから出力される
値、すなわち、マスク値は、「01h」〜「Ffh」の
値について、1周期(255)クロック内に1回のみラ
ンダム(擬似的)に現れるように構成されている。また
別の多項式を用いると出力の現れ方の順番が変わる。
X8 = Δ5 + X3 + X1 + Δ0 The M-sequence generating means shown in FIG. 17 includes shift registers (composed of flip-flop circuits) 170a-1.
70h and exclusive OR circuits 171a and 171
b and 171c, each shift register 170a
The initial value of 170h to 170h is other than "0", and each bit (170a to 17a) of each register is synchronized with the control clock signal input from the control clock generating means.
0h) is shifted to the right, the value output from each register, that is, the mask value is random (pseudo) only once within one cycle (255) clocks for the values of “01h” to “Ffh”. Is configured to appear in. If another polynomial is used, the order of appearance of the output changes.

【0097】同様に前述の「算術演算によるフィルタリ
ング」方法においても条件Aの1)を満足するように係
数をランダムに発生することも可能である。
Similarly, in the above-mentioned "filtering by arithmetic operation" method, it is also possible to randomly generate coefficients so as to satisfy the condition 1) of condition A.

【0098】また、対応するフィルタの近傍画素の数だ
けの係数やマスク値を予め設定し、その値をランダムに
近傍画素のマスク値や係数として使うことも可能であ
る。
It is also possible to preset the coefficients and mask values as many as the number of neighboring pixels of the corresponding filter and use those values at random as the mask values and coefficients of neighboring pixels.

【0099】例えば、図12(a)のフィルタF1に対
応して、図14(a)に示す2つのマスク値をm1、m
2とし、図12(b)のフィルタF2に対応して、図1
4(b)に示す3つのマスク値m1、m2、m3とし、
図18(a)に示す(2×16)と図18(b)に示す
(6×24)のルックアップテーブルを作成し、それを
図18(a)の場合は2次以上疑似ランダム系列の任意
の1ビットをアドレスとして使用し、対応するテーブル
の内容をMA1とMC1とすることにより、予め設定し
たマスクの位置のランダム化が可能とする。同様に、図
18(b)の場合は、3次以上のM系列を発生させ、任
意の3ビットを選択し、その値を6で割り算したときの
余りをアドレスとして使用し、対応するテーブルの内容
をMA2、MΒ2、MD2とすることによりマスクの位
置をランダムに設定できる。
For example, the two mask values shown in FIG. 14A correspond to the filter F1 shown in FIG.
2 and corresponding to the filter F2 in FIG.
4 (b) has three mask values m1, m2, m3,
A lookup table of (2 × 16) shown in FIG. 18 (a) and (6 × 24) shown in FIG. 18 (b) is created, and in the case of FIG. By using an arbitrary 1 bit as an address and setting the contents of the corresponding table to MA1 and MC1, it is possible to randomize the position of the preset mask. Similarly, in the case of FIG. 18B, an M series of third order or higher is generated, any 3 bits are selected, and the remainder when the value is divided by 6 is used as an address, and the corresponding table By setting the contents to MA2, M2, and MD2, the position of the mask can be set randomly.

【0100】ここではマスクの位置のランダム化を説明
するが、係数の位置をランダムにする方法も同様なもの
である。同様にその他のランダム数値発生手段を用いる
ことも可能である。
Here, the randomization of the mask position will be described, but the method of randomizing the coefficient positions is also the same. Similarly, it is possible to use other random number generating means.

【0101】次は図2の制御信号発生手段15の詳細に
ついて説明する。制御信号発生手段15はフィルタパラ
メータのランダム化を制御する制御クロック発生する手
段である。
Next, details of the control signal generating means 15 of FIG. 2 will be described. The control signal generating means 15 is means for generating a control clock for controlling randomization of filter parameters.

【0102】図19にライン毎制御信号発生手段の実施
例を示し、対応するタイミング図を図20(a)〜
(g)に示す。図20(b)に示すライン同期信号22
のインバータ185aによる反転信号185d(図20
(c)に示す)と、ライン同期信号22をフリップフロ
ップ回路185bにより1画素遅延した遅延信号185
e(図20(d)に示す)のアンド回路185cによる
論理積によりライン毎のランダム化に必要なライン制御
クロック185fが出力される。
FIG. 19 shows an embodiment of the control signal generating means for each line, and the corresponding timing charts are shown in FIG.
(G). The line synchronization signal 22 shown in FIG.
Inverted signal 185d by inverter 185a of FIG.
(Shown in (c)), and the line synchronization signal 22 is delayed by one pixel by the flip-flop circuit 185b.
A line control clock 185f required for randomization for each line is output by the logical product of the AND circuit 185c of e (shown in FIG. 20D).

【0103】画素毎のライン制御クロック185fの発
生においては、図20(a)に示す入力される画素クロ
ック21そのものを画素毎制御クロックとして出力さ
れ、セレクタ185hによりセレクト信号185gが0
の場合はライン毎制御クロック185fがフィルタパラ
メータ制御信号20として出力され、セレクト信号18
5gが1の場合は、画素クロック21がフィルタパラメ
ータ制御信号20として出力される。セレクト信号18
5gが、外部インタフェースによって設定される。
In generating the line control clock 185f for each pixel, the input pixel clock 21 itself shown in FIG. 20A is output as the pixel control clock, and the selector 185h outputs the select signal 185g to 0.
In this case, the line-by-line control clock 185f is output as the filter parameter control signal 20, and the select signal 18
When 5g is 1, the pixel clock 21 is output as the filter parameter control signal 20. Select signal 18
5g is set by the external interface.

【0104】また、設定に応じて、画素クロック21を
ベースにした画素クロック21毎や複数画素クロック毎
のランダム化、またはライン同期信号22をベースにし
たライン毎や複数ライン毎のランダム化を行うための制
御信号を発生することも可能である。
Depending on the setting, randomization is performed for each pixel clock 21 based on the pixel clock 21 or for each multiple pixel clock, or for each line or multiple lines based on the line synchronization signal 22. It is also possible to generate a control signal for

【0105】フィルタパラメータをラインまたは複数ラ
イン毎にランダム化する一つの利点は、必要とする誤差
バッファ13のビット数が制御できる(例えば9ビット
のFIFΟ等)。
One advantage of randomizing the filter parameter for each line or a plurality of lines is that the required number of bits of the error buffer 13 can be controlled (for example, 9-bit FIFO).

【0106】セレクト信号17Βは、隣の画素からの補
正信号を制御するもので、図12(a)(b)のフィル
タでは、毎画素ごとに誤差拡散されてくるので、図20
(g)に示すように既にハイ(1或いはVcc)の状態
になっている。また、前ラインからのセレクト信号17
A、フィルタリング切り替え制御信号19、誤差バッフ
ァ13の書き込み/読み出し制御信号としてのバッファ
制御信号18等を1画素おきに行うので、図19の画素
クロック21を、ライン同期信号22に同期して分周し
たものを使用する。この場合、分周器185iとこの分
周器185iの分周出力185jを反転するインバータ
回路185kにより構成されている。そのタイミングを
図20(f)に示す。
The select signal 17B controls the correction signal from the adjacent pixel. In the filters of FIGS. 12 (a) and 12 (b), the error is diffused for each pixel.
As shown in (g), it is already in the high (1 or Vcc) state. In addition, select signal 17 from the previous line
A, the filtering switching control signal 19, the buffer control signal 18 as the write / read control signal of the error buffer 13 and the like are performed every other pixel, so that the pixel clock 21 of FIG. 19 is divided in synchronization with the line synchronization signal 22. Use what you did. In this case, it is composed of a frequency divider 185i and an inverter circuit 185k that inverts the frequency division output 185j of the frequency divider 185i. The timing is shown in FIG.

【0107】後述のように誤差フィルタの構成は様々だ
が、そのうち図12(a)(b)のフィルタを例にして
図2の誤差フィルタリング手段10を説明する。フィル
タリング手段10は、誤差算出手段6からの2値/多値
化誤差とフィルタパラメータ発生手段8から発生される
フィルタパラメータ9とを入力とし、誤差を補正量とし
て隣接画素に補正量を配分するものである。誤差フィル
タリング手段10は、前述の様に「算術演算によるフィ
ルタリング手段」と「論理演算によるフィルタリング手
段」等が考えられるが、ここでは誤差算出手段6から出
力される誤差量都市手の誤差信号7と、フィルタパラメ
ータ発生手段8からパラメータとして出力されるフィル
タマスク値としてのフィルタパラメータ9の論理演算に
よるフィルタリングについて説明する。
Although there are various error filter configurations as described later, the error filtering means 10 of FIG. 2 will be described by taking the filters of FIGS. 12 (a) and 12 (b) as an example. The filtering means 10 receives the binary / multi-valued error from the error calculating means 6 and the filter parameter 9 generated from the filter parameter generating means 8 and distributes the correction amount to adjacent pixels with the error as the correction amount. Is. The error filtering means 10 may be a “filtering means by arithmetic operation”, a “filtering means by logical operation” or the like as described above, but here, the error amount output from the error calculating means 6 is the error signal 7 of the city. The filtering by the logical operation of the filter parameter 9 as the filter mask value output as a parameter from the filter parameter generating means 8 will be described.

【0108】誤差とマスクの論理演算によるフィルタの
詳細を図21を参照しながら説明する。図21における
誤差フィルタリング手段10は、フィルタ切り替え手段
21、ビットマスク手段22、2っの遅延回路としてフ
リップフロップ回路23a、23b、および2つの加算
器24a、24bによって構成されている。また、フィ
ルタ切り替え手段21は4つのセレクタ21a〜21d
により構成されており、ビットマスク手段22は、4つ
のビットマスク演算手段22a〜22dにより構成され
ている。
The details of the filter based on the logical operation of the error and the mask will be described with reference to FIG. The error filtering means 10 in FIG. 21 is composed of a filter switching means 21, a bit masking means 22, two flip-flop circuits 23a and 23b as delay circuits, and two adders 24a and 24b. Further, the filter switching means 21 includes four selectors 21a to 21d.
The bit mask means 22 is composed of four bit mask operation means 22a to 22d.

【0109】図21の誤差バッファ13は、ラインバッ
ファ25により構成され、これはファーストイン−ファ
ーストアウトのバッファである。
The error buffer 13 of FIG. 21 is composed of a line buffer 25, which is a first-in-first-out buffer.

【0110】図21のフィルタ切り替え手段21は、前
述の制御信号発生手段15から発生される図22の
(h)に示すフィルタ切り替え制御信号19により図2
2(c)〜(f)に示すように、切り替えられる。つま
り、奇数画素の時、セレクタ21a〜21dを通じて隣
接する画素A、Β、C、Dにおいて、図12(a)に示
すフィルタF1に対応するマスク値MA1、MC1のみ
を出力し、それ以外を0とする。同様に、奇数画素の場
合、セレクタ21a〜21dを通じて隣接する画素、
A、Β、C、Dにおいて、図12(b)に示すフィルタ
F1に対応するマスク値MA2、MΒ2、とMD2のみ
を出力し、それ以外を0とする。
The filter switching means 21 shown in FIG. 21 is driven by the filter switching control signal 19 shown in FIG. 22 (h) generated by the control signal generating means 15 shown in FIG.
2 (c) to (f). That is, in the case of odd-numbered pixels, only the mask values MA1 and MC1 corresponding to the filter F1 shown in FIG. 12A are output to the adjacent pixels A, B, C, and D through the selectors 21a to 21d, and the other values are 0. And Similarly, in the case of odd-numbered pixels, adjacent pixels through the selectors 21a to 21d,
In A, B, C, and D, only the mask values MA2, MB2, and MD2 corresponding to the filter F1 shown in FIG. 12B are output, and the other values are set to 0.

【0111】逆に、制御信号19を反転させて使用する
ことによって、奇数画素に、図12(b)のフィルタF
2と、偶数画素の時、図12(a)フィルタF1を使用
することもできる。ここでは、すべてのラインの第1画
素において、同じフィルタを使用したが、それをライン
毎に切り替え、或いはランダムに切り替えることも可能
である。
On the contrary, by inverting and using the control signal 19, the odd number of pixels is applied to the filter F of FIG.
2 and an even number of pixels, the filter F1 in FIG. 12A can be used. Here, the same filter is used in the first pixels of all lines, but it is also possible to switch it for each line or randomly.

【0112】本実施例では、ビットとマスクの論理演算
による誤差フィルタリング手段10は、上記のように図
12のフィルタの構成を用いており、画素毎にフィルタ
を切り替える、つまり注目画素と同じラインのすぐ隣の
画素と、隣接する1ライン後の真下の画素に2値化誤差
補正量を算出するフィルタF1と、注目画素と同じライ
ンの次ぐ隣の画素と、隣接する1ライン後の左下と右し
たの画素に2値化誤差補正量を算出するフィルタF2を
画素毎に切り替えてフィルタリングを行い、対応する隣
接画素におけるマスク値MA1、MC1、MA2、MΒ
2、MD2(ファイルパラメータ9)が図2に示すフィ
ルタパラメータ発生手段8から入力される。
In this embodiment, the error filtering means 10 based on the logical operation of the bit and the mask uses the configuration of the filter shown in FIG. 12 as described above, and the filter is switched for each pixel, that is, on the same line as the target pixel. A filter F1 that calculates a binarization error correction amount for the pixel immediately next to it and the pixel immediately below it adjacent to the next line, the pixel next to the pixel next to the same line as the pixel of interest, and the lower left and right after the adjacent line. The filter F2 for calculating the binarization error correction amount is switched for each pixel to perform filtering, and the mask values MA1, MC1, MA2, MΒ in the corresponding adjacent pixels are filtered.
2, MD2 (file parameter 9) is input from the filter parameter generating means 8 shown in FIG.

【0113】各々の周辺画素に拡散すべき誤差はビット
マスク演算手段22a〜22dにより算出される。それ
は図22(g)に示すように誤差信号7とフィルタ切り
替え手段21の出力MA、MΒ、MC、MDとのビット
マスク演算により算出され、それぞれに拡散すべき誤差
eA、eΒ、eC、eDが得られる。それにより、誤差
eAが対応する次の画素における誤差補正量11(e
T)となり、誤差eDと誤差eCの1画素遅延されたも
のと誤差eBの2画素遅延されたものが1つにまとめて
次のラインの画素への誤差補正量12(eN)として出
力される。
The error to be diffused to each peripheral pixel is calculated by the bit mask calculating means 22a to 22d. It is calculated by a bit mask operation of the error signal 7 and the outputs MA, MΒ, MC, MD of the filter switching means 21 as shown in Fig. 22 (g), and the respective errors eA, eΒ, eC, eD to be diffused. can get. As a result, the error correction amount 11 (e
T) and the error eD and error eC delayed by one pixel and the error eB delayed by two pixels are combined into one and output as the error correction amount 12 (eN) to the pixel of the next line. .

【0114】そのタイミングなどの1例を図22(g)
のフィルタ出力として示す。また制御信号発生手段15
から発生されるバッファ制御信号18をバッファ書き込
み読みだし信号として使うと、例えば、バッファ制御信
号18がハイ(レベル1)の時のみラインバッファ25
の読み出しして書き込みを行うと、必要な誤差補正量1
2(eN)(つまり0を除いたデータ)を蓄えることが
でき、従来と比較して誤差バッファ13のメモリ容量の
半減ができる。
An example of the timing is shown in FIG. 22 (g).
Shown as the filter output of. Further, the control signal generating means 15
When the buffer control signal 18 generated from the buffer control signal 18 is used as the buffer write / read signal, for example, the line buffer 25 is output only when the buffer control signal 18 is high (level 1).
Read and write the required error correction amount 1
2 (eN) (that is, data excluding 0) can be stored, and the memory capacity of the error buffer 13 can be reduced by half compared to the conventional case.

【0115】上記は、誤差とマスクの論理演算によるフ
ィルタの詳細について説明したが、誤差と係数の算術演
算によるフィルタも同じ構成によって実現可能である。
しかし、図2のフィルタパラメータ発生手段8は、マス
ク値の代わりにフィルタF1において係数ΚA1、ΚC
1、フィルタF2において係数ΚA2、ΚΒ2、ΚD2
を発生する。また、誤差フィルタリング手段10におい
て、図21のビットマスク演算手段22a〜22dのビ
ットマスク演算の代わりに算術演算(乗算)によるフィ
ルタリングに置き換えれば良い。
The details of the filter based on the logical operation of the error and the mask have been described above, but the filter based on the arithmetic operation of the error and the coefficient can be realized by the same configuration.
However, the filter parameter generating means 8 in FIG. 2 uses the coefficients KA1 and KC in the filter F1 instead of the mask value.
1. Coefficients K2, K2, K2 in filter F2
Occurs. Further, in the error filtering means 10, filtering by arithmetic operation (multiplication) may be substituted for the bit mask operation of the bit mask operation means 22a to 22d of FIG.

【0116】上記の実施例では図12(a)(b)のフ
ィルタを例にして詳細を説明したが、フィルタの構成と
してこれ以外にも様々な構成が考えられる。それを図2
3(a)〜(d)、図24(a)〜(c)に示す。
In the above embodiment, the details have been described by taking the filters of FIGS. 12 (a) and 12 (b) as an example, but various configurations other than this are conceivable. Figure 2
3 (a)-(d) and FIGS. 24 (a)-(c).

【0117】図23のフィルタは、図23(a)〜
(d)に示す4つフィルタF1〜F4から構成されてお
り、各フィルタF1〜F4を4画素おきに繰り返すこと
により誤差バッファ13のアクセス回数およびそのメモ
リ容量の半減を達成できる。
The filter shown in FIG. 23 has the same structure as that shown in FIG.
It is composed of four filters F1 to F4 shown in (d), and by repeating each filter F1 to F4 every four pixels, the number of accesses to the error buffer 13 and the half of its memory capacity can be achieved.

【0118】例えば、誤差とマスクの論理演算によるフ
ィルタリングを考えると、主走査方向の画素1、5、
9、…、などにマスクMA1、MC1のフィルタF1、
画素2、6、10、…、などにマスクMA2、MD2の
フィルタF2、画素3、7、11、…、等にマスクMA
3、MΒ3のフィルタF3、画素4、8、12、…、な
どにマスクMA4、MC4のフィルタF4を使用するこ
とによりフィルタリングを行う。そのタイリングを図2
5、図26、図27に示す。
For example, considering filtering by a logical operation of an error and a mask, pixels 1, 5 in the main scanning direction,
, ..., and the like, with the filters F1 of the masks MA1 and MC1,
The mask MA2 for the pixels 2, 6, 10, ..., And the mask F2 for the filter F2 of the MD2, and the mask MA for the pixels 3, 7, 11 ,.
3. Filtering is performed by using the filter F3 of M3 and the filter F4 of the masks MA4 and MC4 for the pixels 4, 8, 12 ,. The tiling is shown in Figure 2.
5, FIG. 26 and FIG.

【0119】図25のタイリングは、上記のようにフィ
ルタF1〜フィルタF4を各ライン(副走査)に用いる
ことによりフィルタリングを行う。従って、各主走査方
向の画素、1、4、5、8、9、12、13、…などに
その前のラインから誤差が拡散され、その画素における
情報のみを書き込み、読み出しすればバッファが半減さ
れる。上記では、画素1に関するフィルタをF1とした
が、F1の代わりにF2を使用し、フィルタF2、F
3、F4、F1の順に切り替えても良い。
The tiling in FIG. 25 performs filtering by using the filters F1 to F4 for each line (sub-scan) as described above. Therefore, the error is diffused from the previous line to the pixels 1, 4, 5, 8, 9, 12, 13, ... In each main scanning direction, and the buffer is halved if only the information in that pixel is written and read. To be done. In the above, the filter for pixel 1 is F1, but F2 is used instead of F1, and filters F2, F
You may switch in order of 3, F4, and F1.

【0120】しかしこの場合は、各主走査方向の画素
3、4、7、8、11、12、…などにその前のライン
から誤差が拡散される。また、F1の代わりにフィルタ
F3を使用し、フィルタF3、F4、F1、F2の順の
切り替え、或いは、F1の代わりにフィルタF4を使用
し、フィルタF4、F1、F2、F3の順に切り替える
ことも可能である。対応して、この二つの場合、それぞ
れ、各主走査方向の画素2、3、6、7、10、1
1、、…など、或いは、各主走査方向の画素1、2、
5、6、9、10、13、14…などにその前のライン
から誤差が拡散される。
However, in this case, the error is diffused from the previous line to the pixels 3, 4, 7, 8, 11, 12, ... In each main scanning direction. It is also possible to use the filter F3 instead of F1 and switch the order of the filters F3, F4, F1 and F2, or use the filter F4 instead of F1 and switch the order of the filters F4, F1, F2 and F3. It is possible. Correspondingly, in these two cases, the pixels 2, 3, 6, 7, 10, 1 in the respective main scanning directions are respectively provided.
, Etc., or pixels 1, 2 in each main scanning direction,
The error is diffused to the lines 5, 6, 9, 10, 13, 14, ...

【0121】図26のタイリングでは、上記と同様に第
1ライン、第5ライン、第9ライン、…などにおいて
は、フィルタF1を画素1、5、9、…等に使用し、フ
ィルタF2を画素2、6、10、…等に使用し、フィル
タF3を画素3、7、11、…等に使用し、フィルタF
4を画素4、8、12、…等に使用するが、第2ライ
ン、第6ライン、第10ライン、…等においては、フィ
ルタF2を画素1、5、9、…等に使用し、フィルタF
3を画素2、6、10、…等に使用し、フィルタF4を
画素3、7、11、…等に使用し、フィルタF1を画素
4、8、12、…等に使用し、第3ライン、第7ライ
ン、第11ライン…等においては、フィルタF3を画素
1、5、9、…等に使用し、フィルターF4を画素2、
6、10、…等に使用し、フィルタF1を画素3、7、
11、…等に使用し、フィルタF2画素を4、8、1
2、…等に使用し、第4ライン、第8ライン、第12ラ
イン…等においては、フィルタF4を画素1、5、9、
…等に使用し、フィルターF1を画素2、6、10、…
等に使用し、フィルタF2を画素3、7、11、…等に
使用し、フィルタF3を画素4、8、12、…等に使用
することにより、副走査方向のフィルタ開始順番変える
ことも可能である。
In the tiling of FIG. 26, similarly to the above, in the first line, the fifth line, the ninth line, ..., The filter F1 is used for the pixels 1, 5, 9 ,. , Etc., and the filter F3 is used for pixels 3, 7, 11 ,.
4 is used for the pixels 4, 8, 12, ..., But in the second line, the sixth line, the tenth line, ..., the filter F2 is used for the pixels 1, 5, 9 ,. F
3 is used for pixels 2, 6, 10, ..., The filter F4 is used for pixels 3, 7, 11, ..., And the like, and the filter F1 is used for pixels 4, 8, 12 ,. , The seventh line, the eleventh line, etc., the filter F3 is used for the pixels 1, 5, 9, ..., And the filter F4 is used for the pixel 2,
, 10, etc., and the filter F1 is used for pixels 3, 7,
11, etc., and filter F2 pixels are 4, 8, 1
, Etc., and in the fourth line, the eighth line, the twelfth line, etc., the filter F4 is used for the pixels 1, 5, 9,
... and so on, and the filter F1 is used for pixels 2, 6, 10, ...
, Etc., the filter F2 is used for the pixels 3, 7, 11, ..., And the filter F3 is used for the pixels 4, 8, 12, .. Is.

【0122】つまり、副走査方向に第1画素におけるフ
ィルタをF1、F2、F3、F4として4ライン毎に繰
り返すことができる。この場合は、第1、5、9、…等
のラインからそれぞれ第2、6、10、…等ラインの画
素1、4、5、8、9、12、13、…等に誤差が拡散
され、第2、6、10、…等のラインからそれぞれ第
3、7、11、…等のラインの画素3、4、7、8、1
1、12、…等に誤差が拡散され、第3、7、11、…
等のラインからそれぞれ第4、8、12、…等のライン
の画素2、3、6、7、10、11、…等に誤差が拡散
され、第4、8、12、…等からそれぞれ第5、9、1
3、…等の画素1、2、5、6、9、10、…に誤差が
拡散される。従って、図25と異なり、4ライン周期
で、ライン毎に、誤差の書き込み、読み出し位置が変わ
るが、誤差バッファ13のメモリ容量は半減される。
That is, the filters in the first pixel can be repeated every four lines as F1, F2, F3, and F4 in the sub-scanning direction. In this case, the error is diffused from the first, fifth, ninth, ... Lines to the pixels 1, 4, 5, 8, 9, 12, 13 ,. , 2nd, 6th, 10th, ..., etc. lines to 3rd, 7th, 11th ,.
The error is diffused to 1, 12, ...
The error is diffused to the pixels 2, 3, 6, 7, 10, 11, ... Of the lines of the fourth, eighth, 12, ... 5, 9, 1
The error is diffused to the pixels 1, 2, 5, 6, 9, 10 ,. Therefore, unlike FIG. 25, the error writing and reading positions change line by line in a 4-line cycle, but the memory capacity of the error buffer 13 is halved.

【0123】ここでは、副走査方向の第1画素における
フィルタをF1、F2、F3、F4としてライン毎に図
25と同様にフィルタを繰り返すことを説明したが、副
走査方向の第1画素のフィルタを(F2、F3、F4、
F1)の順、(F3、F4、F1、F2)の順、或いは
(F4、F1、F2、F3)の順で行うことが可能であ
る。しかし、各ラインの拡散される画素位置も対応して
変わる。
Although it has been described here that the filters in the first pixel in the sub-scanning direction are F1, F2, F3, and F4 and the filter is repeated for each line in the same manner as in FIG. 25, the filter for the first pixel in the sub-scanning direction is described. (F2, F3, F4,
It is possible to perform in the order of (F1), the order of (F3, F4, F1, F2), or the order of (F4, F1, F2, F3). However, the diffused pixel position of each line also changes correspondingly.

【0124】同様に、図27を使用すると副走査方向
に、フィルタF1、F3から開始するフィルタの切り替
えを2ラインごとに繰り返して行うことが可能である。
この場合は、第1、3、5、…等のラインからそれぞれ
第2、4、6、…等のラインの画素1、4、5、8、
9、…等の画素に誤差が拡散され、第2、4、6、…等
のラインからそれぞれ第3、5、7、…等の画素2、
3、6、7、10、11、…等に誤差が拡散される。従
って、2ライン周期で、ライン毎に誤差の書き込み、読
み出し位置が変わる。
Similarly, using FIG. 27, it is possible to repeatedly switch the filters starting from the filters F1 and F3 every two lines in the sub-scanning direction.
In this case, the pixels 1, 4, 5, 8 from the first, 3, 5, ... Lines to the second, 4, 6 ,.
The error is diffused to the pixels of 9, ..., And the like, and from the lines of the second, 4, 6 ,,.
The error is diffused to 3, 6, 7, 10, 11 ,. Therefore, the error writing and reading positions change line by line in a two-line cycle.

【0125】また、副走査方向にフィルタ(F3、F
1)順、フィルタ(F2、F4)或いはフィルタ(F
4、F2)の順でも繰り返してフィルタリングを行うこ
とができ、対応して拡散される画素位置も変わる。
Further, the filters (F3, F
1) In order, filter (F2, F4) or filter (F
The filtering can be repeated in the order of 4, F2), and the pixel positions to be diffused correspondingly also change.

【0126】図26のタイリングを使うと副走査方向に
周期的にフィルタの開始を決めているが、それをランダ
ム化することにより、開始フィルタをランダムに設定す
ることも可能である。例えば、図26の例では第1、
5、9、…等のラインにおいてはフィルタ(F1、F
2、F3、F4)の順に、第2、6、10、…等のライ
ンにおいては、フィルタ(F2、F3、F4、F1)の
順に、第3、7、11、…等のラインにおいては、フィ
ルタ(F3、F4、F1、F2)の順と、第4、8、1
2、…等のラインにおいては、フィルタ(F4、F1、
F2、F3)の順にフィルタの切り替えを行うので周期
性がある。その周期性を崩すために、各ライン毎に上記
の4つの切り替え順から1つをランダムに選ぶことも可
能である。しかし、この場合は、フィルタの選択によっ
て次のラインにどの画素順に誤差が拡散されるかが変わ
るので、それを記憶しておく必要がある。
When the tiling of FIG. 26 is used, the start of the filter is determined periodically in the sub-scanning direction, but the start filter can be set randomly by randomizing it. For example, in the example of FIG.
In the lines such as 5, 9, ..., The filters (F1, F
2, F3, F4) in the order of the second, sixth, tenth, ..., etc. lines, in the order of filters (F2, F3, F4, F1), in the third, 7, 11, ... Filter (F3, F4, F1, F2) order, and fourth, eighth, first
For lines such as 2, ..., Filters (F4, F1,
Since the filters are switched in the order of F2 and F3), there is periodicity. In order to break the periodicity, it is possible to randomly select one from the above four switching orders for each line. However, in this case, it is necessary to store the error because the pixel order in which the error is diffused to the next line changes depending on the selection of the filter.

【0127】例えば、フィルタ(F1、F2、F3、F
4)を00、フィルタ(F2、F3、F4、F1)は0
1、フィルタ(F3、F4、F1、F2)を02、フィ
ルタ(F4、F1、F2、F3)を03とラベル付け、
3次以上のM系列を使用し、その中から任意の2ビッ
ト、或いは、出力のΜodul0−3演算(出力割る3
の余り)をフィルタ選択とすれば、上記のなかから一つ
が選択される。もしランダム発生は00、03、01、
…等とすれば、第1ラインから第2ラインへの拡散され
る箇所は、1、4、5、8、9…画素となり、第2ライ
ンから第3ラインへの拡散される箇所は、1、2、5、
6、…画素となり、第3ラインから第4ラインへの拡散
される箇所は、3、4、7、8、11、…画素となる。
ランダム発生方法、初期値等によって乱数が変わるの
で、処理対象ラインの誤差読み出しに関しては、1ライ
ン前の対応する書き込み順を再発生する必要がある。
For example, filters (F1, F2, F3, F
4) is 00, filters (F2, F3, F4, F1) are 0
Label 1, filter (F3, F4, F1, F2) 02, filter (F4, F1, F2, F3) 03.
An M sequence of 3rd order or more is used, and arbitrary 2 bits or output of the M sequence 0-3 operation (output divide 3
If the remainder) is selected as a filter, one of the above is selected. If random occurrence is 00, 03, 01,
, Etc., the diffusion points from the first line to the second line are 1, 4, 5, 8, 9 ... Pixels, and the diffusion points from the second line to the third line are 1. 2, 5,
6, ... Pixels, and the diffusion points from the third line to the fourth line are 3, 4, 7, 8, 11, ... Pixels.
Since the random number changes depending on the random generation method, the initial value, etc., it is necessary to regenerate the corresponding writing order of the preceding line for error reading of the processing target line.

【0128】上記のフィルタ(F1、F2、F3、F
4)の順の切り替えの組み合わせとして図28のテーブ
ルに示すように24の組み合わせが可能である。その中
でフィルタF3を施した後フィルタF2を施す組み合わ
せ(NGと示す)以外は全て利用可能であるが、その場
合のタイリング等が各ケースによって異なってくる。ま
た使用可能な組み合わせをライン毎に周期的或いはラン
ダムに変えることも可能である。
The above filters (F1, F2, F3, F
As a combination of switching in the order of 4), 24 combinations are possible as shown in the table of FIG. All of them can be used except the combination (shown as NG) in which the filter F3 is applied and then the filter F2 is applied, but the tiling and the like in that case differ depending on each case. It is also possible to change the usable combination for each line periodically or randomly.

【0129】今までは誤差バッファ13のアクセス回数
およびメモリ容量を半減できるフィルタ構成を説明した
が、図24の(a)〜(c)に示すような構成を用いる
と誤差バッファ13のアクセス回数およびメモリ容量を
1/3にすることが可能である。図24の(a)〜
(c)に示すフィルタF1、フィルタF2、フィルタF
3をフィルタ(F1、F2、F3)の順の切り替え、フ
ィルタ(F2、F3、F1)の順の切り替え、フィルタ
(F3、F1、F2)の順の切り替えの組み合わせで利
用可能である。図24の(a)〜(c)に示すフィルタ
におけるタイリングの例を図29、図30、図31に示
す。
Up to now, the filter configuration capable of reducing the number of accesses of the error buffer 13 and the memory capacity to half has been described, but if the configurations as shown in (a) to (c) of FIG. The memory capacity can be reduced to 1/3. 24 (a)-
Filter F1, filter F2, and filter F shown in (c)
3 can be used by a combination of switching the order of filters (F1, F2, F3), switching the order of filters (F2, F3, F1), and switching the order of filters (F3, F1, F2). Examples of tiling in the filters shown in (a) to (c) of FIG. 24 are shown in FIGS. 29, 30, and 31.

【0130】図29のタイリングΤ1においては、図2
4の(a)〜(c)に示す各フィルタを各ライン毎にフ
ィルタ(F1、F2、F3)の順に切り替えてフィルタ
リングを行う。つまり、副走査方向の各ラインにおい
て、フィルタF1を画素1、4、7、10、…の順に使
用し、フィルタF2を画素2、5、8、…の順に使用
し、フィルタF3を画素3、6、9、…の順に使用する
ことにより、フィルタリングを行う。この場合は、各ラ
インの画素2、5、8、11、…に前ラインから誤差が
拡散されてくる。
In the tiling Τ1 shown in FIG. 29, as shown in FIG.
Each of the filters shown in (a) to (c) of 4 is switched in the order of filters (F1, F2, F3) for each line to perform filtering. That is, in each line in the sub-scanning direction, the filter F1 is used in the order of pixels 1, 4, 7, 10, ..., The filter F2 is used in the order of pixels 2, 5, 8 ,. Filtering is performed by using 6, 9, ... In this order. In this case, the error is diffused from the previous line to the pixels 2, 5, 8, 11, ... Of each line.

【0131】また、上記のように、フィルタの順番をフ
ィルタ(F1、F2、F3)からフィルタ(F2、F
3、F1)の順に変えても良い。しかしこの場合、各ラ
インの画素1、4、7、10、…に前ラインから誤差が
拡散されてくる。同様にフィルタの順番をフィルタ(F
3、F1、F2)の順に変えると、各ラインの画素3、
6、9、12、…に前ラインから誤差が拡散される。
Further, as described above, the order of filters is from filter (F1, F2, F3) to filter (F2, F).
3, F1) may be changed in this order. However, in this case, the error is diffused from the previous line to the pixels 1, 4, 7, 10, ... Of each line. Similarly, change the order of filters to filter (F
3, F1, F2) in that order, the pixels 3,
The error is diffused from the previous line to 6, 9, 12, ....

【0132】図30と図31は各ライン毎にフィルタの
開始順を変えたもので図26と図27のタイリングと同
様なものである。
30 and 31 are different from each other in the starting order of the filter for each line and are similar to the tiling in FIGS. 26 and 27.

【0133】図30においては、副走査方向の第1、
4、7、…ラインからそれぞれ第2、5、8、…ライン
の画素2、5、8、…に誤差が拡散され、第2、5、
8、…ラインからそれぞれ第3、6、9、…の画素1、
4、7、…に誤差が拡散され、第3、6、9、…ライン
からそれぞれライン4、7、10、…の画素3、6、
9、…に画素が拡散される。
In FIG. 30, the first in the sub-scanning direction,
The error is diffused from the 4, 7, ... Lines to the pixels 2, 5, 8 ,.
Pixel 1 of the third, sixth, ninth, ...
The error is diffused to 4, 7, ..., From the third, 6, 9, ... Line to the pixels 3, 6 ,, of the lines 4, 7, 10 ,.
Pixels are diffused to 9, ...

【0134】同様に、図31においては、副走査方向の
第1、4、7、…ラインからそれぞれ第2、5、8、…
ラインの画素2、5、8、…に誤差が拡散され、第2、
5、8、…ラインからそれぞれ第3、6、9、…の画素
3、6、9、…に誤差が拡散され、第3、6、9、…ラ
インからそれぞれライン4、7、10、…の画素1、
4、7、…に画素が拡散される。
Similarly, in FIG. 31, from the first, fourth, seventh, ... Lines in the sub-scanning direction, the second, fifth, eighth, ...
The error is diffused to the pixels 2, 5, 8, ... Of the line, and the second,
The error is diffused from the 5, 8, ... Lines to the third, 6, 9, ... Pixels 3, 6, 9 ,. Pixel 1 of
Pixels are diffused to 4, 7, ....

【0135】図29、図30、図31においても図2
5、図26、図27の説明と同様に副走査方向のフィル
タ切り替えの順番のランダム化等も可能である。
Also in FIGS. 29, 30, and 31, FIG.
5, randomization of the order of filter switching in the sub-scanning direction is possible as in the description of FIG.

【0136】フィルタ切り替えによる誤差バッファ13
のアクセス回数およびメモリ容量の低減に関する第1の
実施例の動作を図2を参照しながらまとめて説明する
と、誤差補正手段2により処理対象画素の読み取り値が
前ラインまたは前画素から拡散される誤差補正量をもと
に補正され、補正後の画素データ3が閾値処理手段4に
より外部から予め設定された閾値をもとに2値/多値化
が行われ、画像処理装置の出力画像データ5として出力
される。2値/多値化された出力画像データ5と補正後
の画素データ3から閾値処理による誤差信号7が誤差算
出手段6により算出される。
Error buffer 13 by filter switching
The operation of the first embodiment regarding the reduction of the number of times of access and the memory capacity will be collectively described with reference to FIG. 2. An error in which the reading value of the pixel to be processed is diffused by the error correction unit 2 from the previous line or the previous pixel. The corrected pixel data 3 is binarized / multi-valued on the basis of a preset threshold value from the outside by the threshold processing means 4, and the output image data 5 of the image processing apparatus is corrected. Is output as. The error calculation means 6 calculates an error signal 7 by threshold processing from the binary / multi-valued output image data 5 and the corrected pixel data 3.

【0137】誤差フィルタリング手段10は、閾値処理
による誤差信号7と、フィルタパラメータ発生手段8に
より発生されるフィルタパラメータ9を入力とし、制御
信号発生手段15により発生されるフィルタ切り替え制
御信号19をもとにフィルタを切り替えながら周辺画素
における誤差補正量11、12を算出し、次ぐ隣りの画
素への誤差補正量11を次の画素にフィードバックし、
次のラインへの誤差補正量12を誤差バッファ13に制
御信号発生手段15より発生されるバッファ制御信号1
8をもとに書き込みを行う。さらに、バッファ制御信号
18をもとに、前ラインからの誤差補正量14(eP)
が誤差バッファ13から読み込まれる。
The error filtering means 10 receives the error signal 7 by the threshold processing and the filter parameter 9 generated by the filter parameter generating means 8 as input, and based on the filter switching control signal 19 generated by the control signal generating means 15. The error correction amounts 11 and 12 in the peripheral pixels are calculated while switching the filter to, and the error correction amount 11 to the next adjacent pixel is fed back to the next pixel,
The error correction amount 12 for the next line is sent to the error buffer 13 as the buffer control signal 1 generated by the control signal generating means 15.
Write based on 8. Further, based on the buffer control signal 18, the error correction amount 14 (eP) from the previous line
Is read from the error buffer 13.

【0138】また誤差補正手段2は、制御信号発生手段
15より発生される、誤差補正制御信号17のセレクト
信号17A、17により、補正を行うか否かの補正制御
を行う。制御信号発生手段15は、外部入出力インター
フェース手段16より指定された、フィルタ等の内容に
基づいて、補正、フィルタ切り替え、誤差バッファ13
へのデータの書き込み、誤差バッファ13からのデータ
の読み出しまたは、フィルタパラメータのランダム化等
の制御を行う。
Further, the error correction means 2 performs correction control as to whether or not correction is to be performed by the select signals 17A, 17 of the error correction control signal 17 generated by the control signal generation means 15. The control signal generating means 15 corrects, switches the filter, and the error buffer 13 based on the contents of the filter or the like designated by the external input / output interface means 16.
Data writing to the error buffer 13, data reading from the error buffer 13, or randomization of filter parameters.

【0139】上記のフィルタ切り替え方法を用いること
により、誤差バッファ13のアクセス回数およびメモリ
容量の低減が可能であり、コストダウンにつながる。例
えば、解像度を400dpiから600dpiに上げた
場合でも同じコストで同等以上の階調処理が得られると
考えられる。さらに、領域判定等を行い、階調処理が必
要な領域のみにこの方法を用い、解像度を必要とする領
域にはそれにあった処理を適応的に施すことにより解像
度と階調性の両立も考えられる。
By using the above filter switching method, the number of accesses to the error buffer 13 and the memory capacity can be reduced, leading to cost reduction. For example, it is considered that even if the resolution is increased from 400 dpi to 600 dpi, equal or higher gradation processing can be obtained at the same cost. In addition, it is also possible to consider the compatibility of resolution and gradation by performing area determination and using this method only for areas that require gradation processing, and by adaptively performing processing that is appropriate for areas that require resolution. To be

【0140】また、多値出力の場合は、2値の場合と比
較して誤差量が少ないため、従来のフィルタを用いても
全ての近傍に拡散される可能性が少ない。従って、この
方法を用いて、従来と同じレベルの画質をより少ない誤
差バッファのメモリで実現可能である。
Further, in the case of multi-value output, the error amount is smaller than that in the case of binary output, and therefore there is little possibility of diffusion to all the neighborhoods even if a conventional filter is used. Therefore, this method can be used to realize the same level of image quality as that of the related art with a smaller error buffer memory.

【0141】次は、この発明の第2の実施例としてフィ
ルタ切り替えによる高速処理について図32を参照しな
がら説明する。図32の高速処理構成におけるフィルタ
の例を図33(a)(b)または図34(a)(b)に
示す。図35(a)(b)のフィルタは、高速処理およ
び誤差バッファ13のメモリ容量の低減が得ることが可
能な構成となっている。
Next, high-speed processing by switching filters will be described as a second embodiment of the present invention with reference to FIG. An example of the filter in the high-speed processing configuration of FIG. 32 is shown in FIG. 33 (a) (b) or FIG. 34 (a) (b). The filters of FIGS. 35 (a) and 35 (b) are configured so that high-speed processing and reduction of the memory capacity of the error buffer 13 can be obtained.

【0142】図33(a)(b)、図34(a)
(b)、図35(a)(b)のフィルタの構成を考え、
図32の画像処理装置の動作をまとめて説明する。
33 (a) (b) and 34 (a)
Considering the configurations of the filters shown in FIGS. 35 (a) and 35 (b),
The operation of the image processing apparatus in FIG. 32 will be collectively described.

【0143】図32の基本構成は図1と同様なものであ
り、入力画像変換手段2Aは画素毎に入力される主走査
方向の画素ストリームを2画素同時処理できるように変
換するもので、入力画素ストリーム1Aを制御信号発生
手段15により発生される入力画素変換制御信号23に
基づいて2画素にまとめて変換する。
The basic configuration of FIG. 32 is the same as that of FIG. 1, and the input image converting means 2A converts a pixel stream input in the main scanning direction for each pixel so that two pixels can be simultaneously processed. The pixel stream 1A is collectively converted into two pixels based on the input pixel conversion control signal 23 generated by the control signal generating means 15.

【0144】変換後の2画素ストリーム1が誤差補正手
段2で2画素並列に補正され、補正後の画像データ3は
閾値処理手段4で2画素並行して閾値処理される。閾値
処理の出力画像データ5が2画素単位で出力され、この
画像処理機器の出力側に接続される出力機器に応じて出
力画素変換手段4Aにより、出力画素変換制御信号24
に基づいて変換され、変換後の出力画像データ5Aが出
力される。例えば、1画素ごとに出力するプリンタを接
続した場合は、2画素ストリームを1画素ストリームに
変換して(つまり入力画像変換手段2Aの逆変換)出力
する。
The two-pixel stream 1 after conversion is corrected in parallel by two pixels by the error correction means 2, and the corrected image data 3 is thresholded in parallel by two pixels by the threshold processing means 4. The output image data 5 of the threshold processing is output in units of 2 pixels, and the output pixel conversion means 4A outputs the output pixel conversion control signal 24 according to the output device connected to the output side of this image processing device.
And output image data 5A after the conversion is output. For example, when a printer that outputs each pixel is connected, the two-pixel stream is converted into a one-pixel stream (that is, the inverse conversion of the input image conversion unit 2A) and output.

【0145】出力画像データ5と補正後の画像データ3
から誤差算出手段6により、閾値処理による誤差が算出
され、その誤差がフィルタ切り替えによる誤差フィルタ
リング手段10により、フィルタパラメータ発生手段8
から発生されるフィルタパラメータ9を元に処理対象画
素の周辺画素に誤差補正量として拡散される。制御信号
発生手段15は、外部インターフェース手段3により設
定された情報元に、入力画素変換制御信号23、出力画
素変換制御信号24、誤差補正制御信号17、バッファ
制御信号18、フィルタ切り替え制御信号19、フィル
タパラメータランダム化のフィルタパラメータ制御信号
20等を発生するものである。
Output image data 5 and corrected image data 3
From the above, the error calculation means 6 calculates an error due to the threshold processing, and the error is filtered by the error filtering means 10 due to the filter switching, and the filter parameter generation means 8 is obtained.
The error correction amount is diffused to the peripheral pixels of the pixel to be processed based on the filter parameter 9 generated from. The control signal generation means 15 uses the information source set by the external interface means 3 to input the pixel conversion control signal 23, the output pixel conversion control signal 24, the error correction control signal 17, the buffer control signal 18, the filter switching control signal 19, A filter parameter control signal 20 for randomizing filter parameters is generated.

【0146】図32においては、図1の入力画像変換手
段2Aは図36に示すようなもので、画素毎に入力され
るものをフィルタに対応して2画素毎に同時出力するも
のである。図33(a)(b)のフィルタの場合は2画
素を並行して処理するので、制御信号発生手段15から
入力画素変換制御信号23として、図37(d)に示す
ように画素クロック21(図37(a)に示す)を2分
周したものが入力される。
In FIG. 32, the input image converting means 2A shown in FIG. 1 is as shown in FIG. 36, and the input image for each pixel is simultaneously output for every two pixels corresponding to the filter. In the case of the filters of FIGS. 33 (a) and 33 (b), two pixels are processed in parallel, so that the pixel clock 21 (as shown in FIG. 37 (shown in FIG. 37 (a)) is input by dividing the frequency by two.

【0147】フリップフロップ回路302は図37
(c)に示すように画素クロック21に同期して図37
(b)に示す入力画像データDi(G1、…)を1画素
遅延して出力D(i−1)を出力するものである。フリ
ップフロップ回路303は、入力画素変換制御信号23
に同期してフリップフロップ回路302のセット出力D
(i−1)を出力D(i−3)として出力するものであ
る。フリップフロップ回路304は、入力画素変換制御
信号23に同期して図37(b)に示す入力画像データ
Diを出力D(i−2)として出力するものでする。こ
れにより、フリップフロップ回路303、304から、
図37(e)に示すように、2画素(G1・G2、…)
まとめて出力される。また、その後の処理には処理クロ
ックとして画素クロック21の代わりに2分周クロック
(図37(d)に示す)を使用する。
The flip-flop circuit 302 is shown in FIG.
As shown in (c) of FIG.
The input image data Di (G1, ...) Shown in (b) is delayed by one pixel to output an output D (i-1). The flip-flop circuit 303 uses the input pixel conversion control signal 23
Set output D of the flip-flop circuit 302 in synchronization with
(I-1) is output as the output D (i-3). The flip-flop circuit 304 outputs the input image data Di shown in FIG. 37B as an output D (i-2) in synchronization with the input pixel conversion control signal 23. Thereby, from the flip-flop circuits 303 and 304,
As shown in FIG. 37 (e), two pixels (G1, G2, ...)
It is output collectively. Further, a divided-by-2 clock (shown in FIG. 37D) is used instead of the pixel clock 21 as a processing clock for the subsequent processing.

【0148】誤差補正手段2は、図3に示す誤差補正手
段2を2個、2画素それぞれに1個づつ、使用し、処理
クロックとして画素クロックの代わりに2分周したクロ
ックを使用する。また、誤差補正制御信号17のセレク
ト信号17Bは奇数画素1、3、5、…側の誤差補正手
段2にはすでに、ハイとなり(補正ありの状態)、偶数
画素2、4、6、…側の誤差補正手段2には既に、ロー
(補正なしの状態)となっている。
The error correction means 2 uses two error correction means 2 shown in FIG. 3, one for each of the two pixels, and uses a clock divided by two instead of the pixel clock as the processing clock. Further, the select signal 17B of the error correction control signal 17 has already become high (with correction) in the error correction means 2 on the odd-numbered pixels 1, 3, 5, ... Side, and the even-numbered pixels 2, 4, 6 ,. The error correction means 2 is already low (state without correction).

【0149】図32の閾値処理手段4、誤差算出手段6
は、図2の第1の実施例に説明した閾値処理手段4、誤
差算出手段6などと同様なものであり、この場合は奇数
画素1、3、5、…と偶数画素2、4、5…を並行して
処理するために2個づつ持つ。
Threshold processing means 4 and error calculating means 6 of FIG.
Are similar to the threshold value processing means 4, the error calculating means 6 and the like described in the first embodiment of FIG. 2, and in this case, the odd number pixels 1, 3, 5, ... And the even number pixels 2, 4, 5 Holds two in order to process ... in parallel.

【0150】フィルタパラメータ発生手段8も図2のフ
ィルタパラメータ発生手段8と同様なものであり、設定
された方法に基づき、フィルタパラメータ9を発生し、
誤差フィルタリング手段10に供給する。
The filter parameter generating means 8 is also similar to the filter parameter generating means 8 of FIG. 2, and generates the filter parameter 9 based on the set method.
The error filtering means 10 is supplied.

【0151】次に、フィルタ切り替えによる誤差フィル
タリング処理について説明する。フィルタリング処理は
図21に示す図2の第1の実施例におけるフィルタリン
グ処理とほぼ同様なものであるが、その構成を図38に
示す。
Next, the error filtering process by switching filters will be described. The filtering process is almost the same as the filtering process in the first embodiment of FIG. 2 shown in FIG. 21, but the configuration thereof is shown in FIG.

【0152】図38のビットマスク手段32−A、32
−Βは、図21のビットマスク演算手段22a〜22d
から構成されるビットマスク手段22と同じものであ
り、ここでは、奇数画素用ビットマスク手段32−A、
と偶数画素用ビットマスク手段32−Βの2個を用い
る。また、フィルタパラメータMA1、MΒ1、MC
1、MD1等はフィルタF1のマスク値で、フィルタパ
ラメータMA2、MΒ2、MC2、MD2等はフィルタ
F2のマスク値である。ea1、eb1、ec1、ed
1はビットマスク手段32−Aの出力で、奇数画素の閾
値処理による誤差信号を周辺画素に分配したものを表
し、ea2、eb2、ec2、ed2、はビットマスク
手段32−Βの出力で、偶数画素の閾値処理による誤差
信号を周辺画素に分配したものを表す。奇数画素にフィ
ルタF1を使用し、偶数画素にフィルタF2を使用す
る。
The bit mask means 32-A, 32 shown in FIG.
-Β is the bit mask calculation means 22a to 22d of FIG.
Is the same as the bit mask means 22 composed of
And bit mask means 32-B for even pixels are used. In addition, filter parameters MA1, M1 and MC
1, MD1, etc. are mask values for the filter F1, and filter parameters MA2, M2, MC2, MD2, etc. are mask values for the filter F2. ea1, eb1, ec1, ed
Reference numeral 1 denotes an output of the bit masking means 32-A, which represents an error signal distributed to the peripheral pixels by the threshold value processing of odd-numbered pixels, and ea2, eb2, ec2, and ed2 are outputs of the bit masking means 32-B and are even numbers. An error signal obtained by threshold processing of pixels is distributed to peripheral pixels. The filter F1 is used for odd pixels and the filter F2 is used for even pixels.

【0153】図33においては、フィルタF1のMA1
が0となり、フィルタF2のフィルタパラメータMΒ
2、MC2、MD2が0となる。同様に図34において
は、フィルタF1のフィルタパラメータMA1が0であ
り、また図35のフィルタにおいては、フィルタF1の
フィルタパラメータMA1、MC1が0で、フィルタF
2のフィルタパラメータMΒ2、MD2が0となる。e
Τは偶数画素からのすぐ隣りの画素(奇数画素)への誤
差で、奇数画素に対応する誤差補正手段2に入力され
る。対応する奇数画素からの誤差は常に0となってい
る。
In FIG. 33, MA1 of the filter F1
Becomes 0, and the filter parameter MΒ of the filter F2 is
2, MC2, MD2 become 0. Similarly, in FIG. 34, the filter parameter MA1 of the filter F1 is 0, and in the filter of FIG. 35, the filter parameters MA1 and MC1 of the filter F1 are 0 and the filter F
The filter parameters M2 and MD2 of 2 become 0. e
T is an error from the even pixel to the immediately adjacent pixel (odd pixel), and is input to the error correction means 2 corresponding to the odd pixel. The error from the corresponding odd pixel is always 0.

【0154】各画素から拡散される誤差、ea1、eb
1、ec1、ed1、ea2、eb2、ec2、ed2
などがフリップフロップ回路32−C、32−Dと加算
器32−F〜32−Iにより2画素単位の次のラインへ
の誤差補正量としてまとめられる。2画素単位の次のラ
インへの誤差がセレクタ32−Eにてフィルタ切り替え
制御信号19により、1画素単位の誤差補正量12(e
N)として出力される。そのタイミング等を図39
(a)〜(o)に示す。従って、誤差バッファ13への
書き込み制御として画素クロック21を利用することが
できる。また誤差バッファ13から画素クロック21を
もとに読み込んだ誤差を図36に示した入力画素変換手
段2Aと同様に2画素単位にまとめて誤差補正手段2に
入力することができる。
Error diffused from each pixel, ea1, eb
1, ec1, ed1, ea2, eb2, ec2, ed2
The flip-flop circuits 32-C and 32-D and the adders 32-F to 32-I are combined as an error correction amount for the next line in units of two pixels. The error to the next line in units of 2 pixels is corrected by the filter switching control signal 19 in the selector 32-E and the error correction amount 12 (e
N) is output. Figure 39 shows the timing etc.
It shows in (a)-(o). Therefore, the pixel clock 21 can be used as the write control to the error buffer 13. Further, the errors read from the error buffer 13 based on the pixel clock 21 can be collectively input to the error correction unit 2 in units of two pixels as in the input pixel conversion unit 2A shown in FIG.

【0155】さらに、図35のフィルタにおいては、フ
ィルタF1のフィルタパラメータMA1、MC1と、フ
ィルタF2のフィルタパラメータMΒ2、MD2が0と
なっているので、ビットマスク手段32A、32Bの出
力ea1、ec1、eb2、ed2は、誤差に関係なく
0となり、図38と図39で示す加算器32−Iの出力
である信号32−Lがいつも0の状態となる。従ってこ
の場合は、図38に示すセレクタ32−Eは不要で、加
算器32−Hの出力である信号32−Kを誤差補正量1
2(eΝ)とする。また、画素クロック21の2分周で
ある処理クロックを誤差バッファ13の書き込み/読み
出しに使用することにより、誤差バッファ13のメモリ
容量の半減で、2倍速の処理が可能となる。
Further, in the filter of FIG. 35, since the filter parameters MA1 and MC1 of the filter F1 and the filter parameters MB2 and MD2 of the filter F2 are 0, the outputs ea1 and ec1 of the bit mask means 32A and 32B, eb2 and ed2 are 0 regardless of the error, and the signal 32-L output from the adder 32-I shown in FIGS. 38 and 39 is always 0. Therefore, in this case, the selector 32-E shown in FIG. 38 is unnecessary and the signal 32-K which is the output of the adder 32-H is set to the error correction amount 1
2 (eΝ). Further, by using the processing clock which is the frequency divided by 2 of the pixel clock 21 for writing / reading of the error buffer 13, the memory capacity of the error buffer 13 is halved, and the double speed processing is possible.

【0156】また、図40(a)〜(d)、図41
(a)〜(d)に示すフィルタF1からフィルタF4を
主走査方向の画素に順に繰り返して使用すると並列処理
による高速化と図23(a)〜(d)のフィルタの説明
と同様に誤差バッファ13の半減が可能となる。
Further, FIGS. 40 (a) to 40 (d) and FIG.
When the filters F1 to F4 shown in (a) to (d) are repeatedly used for the pixels in the main scanning direction in order, the speed is increased by parallel processing, and the error buffer is similar to the description of the filters in FIGS. 23 (a) to (d). 13 can be halved.

【0157】上記は2画素単位の並行処理について述べ
たが、図42(a)〜(c)、図43(a)〜(c)、
図44(a)〜(c)、図45(a)〜(c)のフィル
タ群を同様に使用する3画素並行処理ができ、誤差バッ
ファ13のメモリ容量を1/3に低減することが可能で
ある。この場合は、図42(a)〜(c)、図43
(a)〜(c)、図44(a)〜(c)、図45(a)
〜(c)のフィルタ群を副走査方向の各ライン毎周期
的、或いはランダムに選択することも可能である。
The parallel processing in units of two pixels has been described above, but FIGS. 42 (a) to 42 (c), 43 (a) to 43 (c),
The pixel groups of FIGS. 44 (a) to (c) and FIGS. 45 (a) to (c) can be used in the same manner for three-pixel parallel processing, and the memory capacity of the error buffer 13 can be reduced to 1/3. Is. In this case, FIGS. 42 (a) to 42 (c) and FIG.
(A)-(c), FIG. 44 (a)-(c), FIG. 45 (a)
It is also possible to select the filter groups (c) to (c) periodically or randomly for each line in the sub-scanning direction.

【0158】また、図46(a)〜(f)のフィルタ群
を使用することにより2画素並行処理、誤差バッファ1
3のメモリ容量の1/3に低減することができれば、図
47(a)〜(d)を使用することにより4画素並行処
理と、誤差バッファ13のメモリ容量の1/4化も可能
となる。このように、フィルタの組み合わせ等により、
誤差バッファ13のメモリ容量の低減また処理速度の様
々な組合わせが可能となる。
Further, by using the filter group of FIGS. 46 (a) to (f), the two-pixel parallel processing, the error buffer 1
If it can be reduced to 1/3 of the memory capacity of 3, it is possible to perform parallel processing of 4 pixels and to reduce the memory capacity of the error buffer 13 to 1/4 by using FIGS. 47 (a) to (d). . In this way, by combining the filters, etc.
It is possible to reduce the memory capacity of the error buffer 13 and to combine various processing speeds.

【0159】制御信号発生手段15は図2の第1の実施
例の制御信号発生手段15と同様な機能をもっており、
図20(f)(g)に示すタイミングで制御信号を発生
するものである。
The control signal generating means 15 has the same function as the control signal generating means 15 of the first embodiment shown in FIG.
The control signal is generated at the timings shown in FIGS.

【0160】次に複数チャネルにより入力される入力画
像データ、例えばR、G、Β(レッド、グリーン、ブル
ー)のラインセンサ(スキャナ)で読まれた画像をY
(イエロー)、M(マゼンタ)、C(シアン)、Κ(ブ
ラック)に変換したものなど、を同時処理する実施例に
ついて説明する。図48にその構成を述べる。
Next, input image data input by a plurality of channels, for example, an image read by a line sensor (scanner) of R, G, B (red, green, blue) is read as Y.
An example will be described in which (yellow), M (magenta), C (cyan), and K (black) are simultaneously processed. The structure is described in FIG.

【0161】図48においては4チャネル(以降はチャ
ネル1、チャネル2チャネル3、チャネル4と呼ぶ、)
の信号が同時入力され、前記の実施例に述べたように、
誤差補正手段2にて前に処理された画素から拡散される
誤差が4チャネル同時に補正され、閾値処理手段4では
補正された複数チャネルの画素が同時に2値化処理さ
れ、出力画像データ5が得られる。誤差算出手段6にて
各々のチャネルの閾値処理による誤差が算出され、その
誤差がフィルタリング手段10にて周辺画素に拡散され
ることにより階調性の優れた出力が得られる。この場合
は、図49に示すフィルタとチャネルの組み合わせを例
にして説明する。
In FIG. 48, 4 channels (hereinafter, referred to as channel 1, channel 2 channel 3 and channel 4)
Signals are simultaneously input, and as described in the above embodiment,
The error correction means 2 corrects the error diffused from the previously processed pixels in four channels simultaneously, and the threshold value processing means 4 simultaneously binarizes the corrected pixels in a plurality of channels to obtain output image data 5. To be The error calculation means 6 calculates the error due to the threshold value processing of each channel, and the filtering means 10 diffuses the error to the peripheral pixels, whereby an output with excellent gradation is obtained. In this case, a combination of filters and channels shown in FIG. 49 will be described as an example.

【0162】図48に示す第3の実施例において、誤差
フィルタリング手段10以外は図2の第1の実施例に対
応する各々の手段と同様なものであり、チャネル数だけ
の個数を持てば良い。誤差フィルタリング手段10の構
成を図50に示す。図50のチャネル毎のフィルタ41
a〜41dは図2の第1の実施例における図21に示す
誤差フィルタリング手段10と同様なものである。この
場合の異なる点は、マスク値が0か1かであるため図2
1のマスク用のセレクタ21a、…の代わりに図51
(d)〜(g)のタイミング図に示すフィルタパラメー
タとしての制御信号Sa、Sb、Sc、Sdをそのまま
マスク信号として使用している。
In the third embodiment shown in FIG. 48, the error filtering means 10 is the same as the respective means corresponding to the first embodiment of FIG. 2 except for the error filtering means 10. . The structure of the error filtering means 10 is shown in FIG. Filter 41 for each channel in FIG.
a to 41d are the same as the error filtering means 10 shown in FIG. 21 in the first embodiment of FIG. The difference in this case is that the mask value is 0 or 1,
51 instead of the selectors 21a, ...
The control signals Sa, Sb, Sc and Sd as the filter parameters shown in the timing charts of (d) to (g) are used as they are as mask signals.

【0163】図48の制御信号発生手段15により図5
1(c)〜(g)に示すフィルタ切り替え制御信号19
と制御信号Sa、Sb、Sc、Sdが作られる。その1
例は、図52に述べるようにカウンタ15a、フリップ
フロップ回路15c、15d、15e、ノア回路15b
によって構成される。図52のカウンタ15aは0、
1、2、3を繰り返しカウントする2ビットのカウンタ
で、フリップフロップ回路15c、15d、15eは画
素クロック21に同期して遅延を行うものである。これ
により、4チャネルの誤差拡散処理が同時にでき、誤差
バッファ13のメモリ容量の低減が可能となる。例えば
この例では、従来の誤差拡散では、4チャネル分の誤差
バッファのメモリ容量が必要であったのに対し、ここで
は、それを1チャネル分つまり1/4に低減できる。
The control signal generating means 15 shown in FIG.
Filter switching control signal 19 shown in 1 (c) to (g)
And control signals Sa, Sb, Sc, Sd are generated. Part 1
As an example, as shown in FIG. 52, a counter 15a, flip-flop circuits 15c, 15d, 15e, and NOR circuit 15b.
Composed of The counter 15a in FIG. 52 has 0,
This is a 2-bit counter that repeatedly counts 1, 2, and 3, and the flip-flop circuits 15c, 15d, and 15e perform delay in synchronization with the pixel clock 21. As a result, the error diffusion processing of four channels can be performed simultaneously, and the memory capacity of the error buffer 13 can be reduced. For example, in this example, while the conventional error diffusion required the memory capacity of the error buffer for four channels, it can be reduced to one channel, that is, ¼ here.

【0164】また、図2に示した第1の実施例のフィル
タの組み合わせなどを使用すると誤差バッファ13のメ
モリ容量の1/2化などと言った他の組み合わせも可能
である。さらに、図32の第2の実施例の複数画素同時
処理の考え方を取り入れると、複数チャネル、各チャネ
ルの複数画素の同時処理ができるようになり、コストパ
フォーマンスの良い高速処理が可能となる。また、マル
チチャネル入力の場合は、幾つかのチャネルをこの発明
のフィルタ切り替え処理にして、残りのチャネルは従来
の誤差拡散処理等に分ける構成も考えられる。
Other combinations such as halving the memory capacity of the error buffer 13 are possible by using the filter combination of the first embodiment shown in FIG. Further, if the concept of simultaneous processing of a plurality of pixels in the second embodiment shown in FIG. 32 is incorporated, simultaneous processing of a plurality of channels and a plurality of pixels of each channel becomes possible, and high-speed processing with good cost performance becomes possible. Further, in the case of multi-channel input, a configuration in which some of the channels are subjected to the filter switching processing of the present invention and the remaining channels are divided into the conventional error diffusion processing and the like can be considered.

【0165】高速処理のもう一つ構成は図53に示すよ
うなもので、図32に示すものとほぼ同じであるが、異
なる点は入力画像変換手段2Aが主走査方向の複数画素
をまとめる変換ではなく、複数のラインをまとめる手段
となっている。それと対応して、出力画像変換手段4A
は、複数画素を元の1画素ストリームに変換するもので
はなく、同時に入ってくる複数ラインの画素を分割して
ライン画素に変換して出力ものである。またこの画像処
理につながる出力機器に対応して変換なしで出力するこ
とも考えられる。例えば、CCD等のラインセンサで1
ライン毎に入力される画像データを複数ライン(例えば
4ライン)を同時処理し、マルチチャネル出力(4ライ
ン同時出力)する出力機器にそのまま出力する。ここ
で、図53の入力変換手段2Aの2ライン同時処理向け
の1例を図54に示し、詳細を説明するが、その他の処
理は、上記の実施例と同様な考え方で構成できるの説明
を省略する。
Another structure of the high-speed processing is as shown in FIG. 53, which is almost the same as that shown in FIG. 32, except that the input image converting means 2A converts the plurality of pixels in the main scanning direction. Instead, it's a way of putting together multiple lines. Correspondingly, the output image conversion means 4A
Does not convert a plurality of pixels into an original one-pixel stream, but divides pixels of a plurality of lines that are simultaneously input and converts them into line pixels, and outputs the line pixels. It is also possible to output without conversion corresponding to the output device connected to this image processing. For example, 1 with a line sensor such as CCD
The image data input for each line is simultaneously processed for a plurality of lines (for example, 4 lines) and is output as it is to an output device for multi-channel output (simultaneous output of 4 lines). Here, one example for the two-line simultaneous processing of the input conversion means 2A of FIG. 53 is shown in FIG. 54, and the details will be described. However, other processing can be configured in the same way as the above-described embodiment. Omit it.

【0166】図54の45−1〜45−4(FIFΟ1
〜FIFO4)は、入力画像を1次的に蓄えるためのラ
インバッファであり、FIFΟ1、FIFΟ2は1つの
組でFIFO3とFIFO4はもう一つに組みとなって
いる。FIFO1とFIFΟ3の入力はスイッチS1の
切り替え状態によって1画素毎に入力される画像データ
に接続される。FIFΟ2の入力はFIFO1の出力に
接続されており、FIFΟ4の入力はFIFO3の出力
に接続されている。
In FIG. 54, 45-1 to 45-4 (FIFΟ1
..- FIFO4) are line buffers for temporarily storing the input image. The FIFO1 and the FIFO2 are one set, and the FIFO3 and the FIFO4 are another set. The inputs of the FIFO1 and the FIFO3 are connected to the image data input for each pixel depending on the switching state of the switch S1. The input of FIFO2 is connected to the output of FIFO1, and the input of FIFO4 is connected to the output of FIFO3.

【0167】スイッチS2、S3により、FIFΟ1、
FIFΟ2、またはFIFO3、FIFΟ4がぺアで2
ライン画像として出力される。スイッチS1が、端子A
1に接続されてFIFO1に画像を入力している場合は
スイッチS2はΒ2、スイッチS3はΒ3に接続され
て、FIFO3とFIFO4の内容が、2ライン画像と
して出力され、逆に、スイッチS1は端子Β1に接続さ
れた場合は、FIFO3に読み取り機器から画像が入力
され、スイッチS2は端子A2、スイッチS3が端子A
3に接続されて、FIFΟ1、FIFΟ2のデータが2
ライン画像として出力される。
By means of the switches S2 and S3, the FIFI1,
FIFO2, or FIFO3, FIFO4 are 2 in pairs
It is output as a line image. Switch S1 has terminal A
If the switch S1 is connected to 1 and the image is input to the FIFO1, the switch S2 is connected to B2, the switch S3 is connected to B3, and the contents of the FIFO3 and the FIFO4 are output as a two-line image. Conversely, the switch S1 is connected to the terminal. When connected to B1, an image is input from the reading device to the FIFO3, the switch S2 has a terminal A2, and the switch S3 has a terminal A.
3 is connected, and the data of FIFΟ1 and FIFΟ2 is 2
It is output as a line image.

【0168】図53の構成を用いて従来の誤差拡散を高
速に実施することだけではなく、上記のフィルタ切り替
え手段等と組み合わせて誤差バッファ13のメモリ容量
の低減と処理のさらなる高速化を図ることもできる。ま
た、1ライン分の誤差バッファだけで、図55(a)
(b)に示す周辺の1画素以上の距離を持つフィルタも
取り入れることが可能である。図55(a)(b)のフ
ィルタ構成を用い、副走査方向の奇数ラインに対応する
主走査方向にフィルタF1からはじめ、画素毎にフィル
タF1とフィルタF2を切り替え、副走査方向の偶数ラ
インに対応する主走査方向にフィルタF2からはじめ、
画素毎にフィルタF2とフィルタF1の順に切り替える
ことにより1ラインの分の誤差バッファだけで、誤差拡
散処理を行うことができる。
Not only is the conventional error diffusion performed at high speed using the configuration of FIG. 53, but the memory capacity of the error buffer 13 is reduced and the processing speed is further increased in combination with the above-mentioned filter switching means and the like. You can also Also, with only the error buffer for one line, FIG.
A filter having a distance of 1 pixel or more in the periphery shown in (b) can also be incorporated. Using the filter configuration of FIGS. 55 (a) and 55 (b), starting from the filter F1 in the main scanning direction corresponding to the odd lines in the sub-scanning direction, switching the filter F1 and the filter F2 for each pixel to set the even-numbered lines in the sub-scanning direction. Starting from the filter F2 in the corresponding main scanning direction,
By switching between the filter F2 and the filter F1 for each pixel, the error diffusion process can be performed only with the error buffer for one line.

【0169】上記したすべての実施例では、フィルタ切
り替えによる誤差バッファのメモリ容量の低減や処理の
高速化をできるような構成を述べたが、フィルタ切り替
えのもう一つの効果は、従来のフィルタ構成の幾つかを
用い、或いは、パラメータの係数の異なるものを幾つか
を用い、それらを画素毎や複数画素毎にランダムに切り
替えなどにより、従来の誤差拡散の斜め方向のテクスチ
ャの問題が解決できると考えられる。
In all of the above-mentioned embodiments, the configuration has been described in which the memory capacity of the error buffer can be reduced and the processing speed can be increased by switching the filters, but another effect of switching the filters is that of the conventional filter configuration. It is considered that the problem of the conventional diagonal texture of error diffusion can be solved by using some of them, or by using some with different parameter coefficients and switching them randomly for each pixel or for every multiple pixels. To be

【0170】上記したように、フィルタのランダム切り
替えによりテクスチャの低減が図れる。
As described above, the texture can be reduced by randomly switching the filters.

【0171】副走査方向において各画素や複数画素おき
に拡散ができるようなフィルタ群を用いそれを画素毎や
複数画素毎に切り替えることにより誤差記憶手段のアク
セス回数が削減でき、処理の高速化を図ることができ
る。
By using a filter group capable of diffusing every pixel or every plural pixels in the sub-scanning direction and switching it for each pixel or every plural pixels, the number of accesses of the error storage means can be reduced and the processing speed can be increased. Can be planned.

【0172】主走査方向において各画素や複数画素おき
に拡散できるようなフィルタ群を用い、それを画素毎や
複数画素毎に切り替えることにより複数画素の同時処理
が可能となり、処理の高速化を図ることができる。
By using a filter group capable of diffusing every pixel or every plural pixels in the main scanning direction and switching it for each pixel or every plural pixels, simultaneous processing of plural pixels becomes possible, and the processing speed is increased. be able to.

【0173】副走査方向の誤差拡散において1画素や複
数画素おきの誤差拡散による誤差バッファのアクセス回
数の削減、主走査方向の複数画素の同時処理、両方を同
時に実現することにより、処理の高速化を図ることがで
きる。
In the error diffusion in the sub-scanning direction, the number of access times of the error buffer is reduced by the error diffusion for every one pixel or every plural pixels, the simultaneous processing of a plurality of pixels in the main scanning direction is realized at the same time, and the processing speed is increased. Can be achieved.

【0174】上述したような種々のフィルタ群を設け、
その内1つが用途に応じて外部から指示できる柔軟なも
のとすることができる。
By providing various filter groups as described above,
One of them can be flexible and can be instructed from the outside according to the application.

【0175】副走査方向の複数ラインの複数画素を同時
に処理することにより、処理の高速化を図ることができ
る。
By simultaneously processing a plurality of pixels on a plurality of lines in the sub-scanning direction, the processing speed can be increased.

【0176】複数チャネル同時処理による処理の高速化
が可能となる。
It is possible to speed up the processing by simultaneously processing a plurality of channels.

【0177】複数チャネルの内幾つかのチャネルを従来
の誤差拡散、それ以外はフィルタ切り替え方式を用いる
ことにより、従来の誤差拡散はマルチライン同時処理、
それ以外は、複数画素同時処理などのハイブリッド形式
により、処理の高速化が図れる。
By using the conventional error diffusion for some of the plurality of channels and using the filter switching method for the other channels, the conventional error diffusion is performed by the multi-line simultaneous processing,
Other than that, the processing speed can be increased by a hybrid format such as simultaneous processing of a plurality of pixels.

【0178】フィルタ繰り返しの初期状況副走査方向の
各ライン毎にランダム或いは周期的に変えることによる
拡散の方向性の均一化またはランダム化が図れる。
Initial situation of filter repetition It is possible to make the directionality of diffusion uniform or random by changing randomly or periodically for each line in the sub-scanning direction.

【0179】複数のフィルタ群を用いて、それを副走査
方向に周期的またはランダムに変えることにより、拡散
の方向性の均一化またはランダム化が図れる。
By using a plurality of filter groups and changing them periodically or randomly in the sub-scanning direction, the directionality of diffusion can be made uniform or random.

【0180】[0180]

【発明の効果】以上詳述したように、この発明によれ
ば、フィルタの切り替えにより、誤差バッファのアクセ
ス回数およびメモリ容量の低減が可能となり、特に、高
解像度、多階調の処理に関してはコストパフォーマンス
の良い高速処理処理が可能である。
As described in detail above, according to the present invention, it is possible to reduce the number of times the error buffer is accessed and the memory capacity by switching the filter. Especially, for high resolution and multi-gradation processing, the cost is reduced. High-speed processing with good performance is possible.

【0181】複数画素の同時処理が可能となり、高速処
理が実現できる。
Simultaneous processing of a plurality of pixels is possible, and high speed processing can be realized.

【0182】マルチチャネル同時処理に関しても、誤差
バッファのアクセス回数およびメモリ容量の低減、処理
の高速化が可能となる。
Regarding the multi-channel simultaneous processing, it is possible to reduce the number of accesses to the error buffer and the memory capacity, and to speed up the processing.

【0183】また、フィルタ切り替えによる従来の誤差
拡散のテクスチャもある程度改善できる。
Further, the conventional error diffusion texture by switching filters can be improved to some extent.

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

【図1】この発明の説明するための画像処理装置の概略
構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus for explaining the present invention.

【図2】第1の実施例における画像処理装置の概略構成
を示すブロック図。
FIG. 2 is a block diagram showing a schematic configuration of an image processing apparatus according to the first embodiment.

【図3】誤差補正手段の構成を示すブロック図。FIG. 3 is a block diagram showing a configuration of error correction means.

【図4】閾値処理手段の構成を示すブロック図。FIG. 4 is a block diagram showing a configuration of threshold processing means.

【図5】閾値処理手段のエンコーダ部の処理を説明する
ための図。
FIG. 5 is a diagram for explaining the processing of the encoder unit of the threshold processing means.

【図6】閾値処理手段の比較器の例を示す図。FIG. 6 is a diagram showing an example of a comparator of threshold processing means.

【図7】閾値処理手段の他の構成例を示す図。FIG. 7 is a diagram showing another configuration example of threshold processing means.

【図8】閾値処理手段の他の構成例を示す図。FIG. 8 is a diagram showing another configuration example of threshold processing means.

【図9】補正処理後の入力画像のビット展開の一例を示
す図。
FIG. 9 is a diagram showing an example of bit expansion of an input image after correction processing.

【図10】誤差算出手段の構成例を示す図。FIG. 10 is a diagram showing a configuration example of error calculation means.

【図11】従来の誤差拡散法のフィルタのモデルを説明
するための図。
FIG. 11 is a diagram for explaining a filter model of a conventional error diffusion method.

【図12】フィルタの構成例を示す図。FIG. 12 is a diagram showing a configuration example of a filter.

【図13】フィルタを用いることによる誤差拡散の例を
示す図。
FIG. 13 is a diagram showing an example of error diffusion by using a filter.

【図14】フィルタをビットマスクで実施するためのマ
スクの一例を示す図。
FIG. 14 is a diagram showing an example of a mask for implementing a filter with a bit mask.

【図15】フィルタにおけるマスク値のランダム発生を
説明するための図。
FIG. 15 is a diagram for explaining random generation of mask values in a filter.

【図16】低次の疑似ランダム系列から高次の疑似ラン
ダム系列を説明するための図。
FIG. 16 is a diagram for explaining a low-order pseudo-random sequence to a high-order pseudo-random sequence.

【図17】疑似ランダム系列(M系列)発生手段の具体
例を示す図。
FIG. 17 is a diagram showing a specific example of a pseudo random sequence (M sequence) generating means.

【図18】マスクの位置をランダムにする方法の1例を
示す図。
FIG. 18 is a diagram showing an example of a method for randomly setting the position of a mask.

【図19】制御信号発生手段の構成例を示す図。FIG. 19 is a diagram showing a configuration example of control signal generating means.

【図20】制御信号発生手段の要部の信号を示すタイミ
ングチャート。
FIG. 20 is a timing chart showing signals of main parts of control signal generating means.

【図21】誤差フィルタリング手段の構成例を示す図。FIG. 21 is a diagram showing a configuration example of error filtering means.

【図22】誤差フィルタリング手段の要部の信号を示す
タイミングチャート。
FIG. 22 is a timing chart showing signals of the main parts of the error filtering means.

【図23】フィルタの構成例を示す図。FIG. 23 is a diagram showing a configuration example of a filter.

【図24】フィルタの構成例を示す図。FIG. 24 is a diagram showing a configuration example of a filter.

【図25】図23のフィルタ構成におけるタイリング
(副走査方向の初期値変更)例を示す図。
25 is a diagram showing an example of tiling (changing the initial value in the sub-scanning direction) in the filter configuration of FIG.

【図26】図23のフィルタ構成におけるタイリング例
を示す図。
FIG. 26 is a diagram showing an example of tiling in the filter configuration of FIG. 23.

【図27】図23のフィルタ構成におけるタイリング例
を示す図。
FIG. 27 is a diagram showing an example of tiling in the filter configuration of FIG. 23.

【図28】図23の全ての組み合わせの中でフィルタ切
り替えできる組み合わせを示す図。
FIG. 28 is a view showing combinations that can switch filters among all the combinations shown in FIG. 23;

【図29】図24のフィルタ構成におけるタイリング例
を示す図。
FIG. 29 is a diagram showing an example of tiling in the filter configuration of FIG. 24.

【図30】図24のフィルタ構成におけるタイリング例
を示す図。
30 is a diagram showing an example of tiling in the filter configuration of FIG.

【図31】図24のフィルタ構成におけるタイリング例
を示す図。
31 is a diagram showing an example of tiling in the filter configuration of FIG. 24. FIG.

【図32】第2の実施例(高速処理)における画像処理
装置の概略構成を示すブロック図。
FIG. 32 is a block diagram showing a schematic configuration of an image processing apparatus in a second embodiment (high speed processing).

【図33】2画素同時処理に利用できるフィルタの構成
例を示す図。
FIG. 33 is a diagram showing a configuration example of a filter that can be used for two-pixel simultaneous processing.

【図34】2画素同時処理に利用できるフィルタの構成
例を示す図。
FIG. 34 is a diagram showing a configuration example of a filter that can be used for two-pixel simultaneous processing.

【図35】2画素同時処理、誤差バッファのメモリ容量
の半減に利用できるフィルタの構成例を示す図。
FIG. 35 is a diagram showing a configuration example of a filter that can be used for two-pixel simultaneous processing and half the memory capacity of the error buffer.

【図36】主走査方向の画素を2画素毎にまとめる入力
画像変換手段の構成例を示す図。
FIG. 36 is a view showing an example of the arrangement of an input image conversion unit that collects pixels in the main scanning direction every two pixels.

【図37】入力画像変換手段の要部の信号を示すタイミ
ングチャート。
FIG. 37 is a timing chart showing signals of main parts of the input image converting means.

【図38】誤差フィルタリング手段の構成例を示す図。FIG. 38 is a diagram showing a configuration example of error filtering means.

【図39】誤差フィルタリング手段の要部の信号を示す
タイミングチャート。
FIG. 39 is a timing chart showing the signals of the essential parts of the error filtering means.

【図40】2画素同時処理、誤差バッファのメモリ容量
の半減に利用できるフィルタの構成例を示す図。
FIG. 40 is a diagram showing a configuration example of a filter that can be used for two-pixel simultaneous processing and half the memory capacity of the error buffer.

【図41】2画素同時処理、誤差バッファのメモリ容量
の半減に利用できるフィルタの構成例を示す図。
FIG. 41 is a diagram showing a configuration example of a filter that can be used for two-pixel simultaneous processing and half the memory capacity of the error buffer.

【図42】3画素同時処理、誤差バッファのメモリ容量
の1/3化に利用できるフィルタの構成例を示す図。
FIG. 42 is a diagram showing a configuration example of a filter that can be used for simultaneous processing of three pixels and ⅓ of the memory capacity of the error buffer.

【図43】3画素同時処理、誤差バッファのメモリ容量
の1/3化に利用できるフィルタの構成例を示す図。
FIG. 43 is a diagram showing a configuration example of a filter that can be used for simultaneous processing of three pixels and ⅓ of the memory capacity of the error buffer.

【図44】3画素同時処理、誤差バッファのメモリ容量
の1/3化に利用できるフィルタの構成例を示す図。
FIG. 44 is a diagram showing a configuration example of a filter that can be used for simultaneous processing of three pixels and ⅓ of the memory capacity of the error buffer.

【図45】3画素同時処理、誤差バッファのメモリ容量
の1/3化に利用できるフィルタの構成例を示す図。
FIG. 45 is a diagram showing a configuration example of a filter that can be used for simultaneous processing of three pixels and ⅓ of the memory capacity of the error buffer.

【図46】2画素同時処理、誤差バッファのメモリ容量
の1/3化に利用できるフィルタの構成例を示す図。
FIG. 46 is a diagram showing a configuration example of a filter that can be used for simultaneous two-pixel processing and ⅓ of the memory capacity of the error buffer.

【図47】4画素同時処理、誤差バッファのメモリ容量
の1/4化に利用できるフィルタの構成例を示す図。
FIG. 47 is a diagram showing a configuration example of a filter that can be used for simultaneous processing of four pixels and quadrupling the memory capacity of the error buffer.

【図48】第3の実施例(マルチチャネル同時処理)に
おける画像処理装置の概略構成を示すブロック図。
FIG. 48 is a block diagram showing a schematic configuration of an image processing apparatus in a third embodiment (multi-channel simultaneous processing).

【図49】チャネル毎のフィルタの切り替えを説明する
ための図。
FIG. 49 is a diagram for explaining switching of filters for each channel.

【図50】誤差フィルタリング手段の構成例を示す図。FIG. 50 is a diagram showing a configuration example of error filtering means.

【図51】誤差フィルタリング手段の要部の信号を示す
タイミングチャート。
FIG. 51 is a timing chart showing signals of the essential parts of the error filtering means.

【図52】制御信号発生手段の構成例を示す図。FIG. 52 is a diagram showing a configuration example of control signal generating means.

【図53】第4の実施例(複数ライン同時処理)におけ
る画像処理装置の概略構成を示すブロック図。
FIG. 53 is a block diagram showing a schematic configuration of an image processing apparatus in a fourth embodiment (simultaneous processing of a plurality of lines).

【図54】複数ライン画像に変換する入力画像変換手段
の概略構成を示すブロック図。
FIG. 54 is a block diagram showing a schematic configuration of input image conversion means for converting into a multi-line image.

【図55】複数ライン(2ライン)にまたがるフィルタ
の構成例を示す図。
FIG. 55 is a diagram showing a configuration example of a filter that extends over a plurality of lines (2 lines).

【図56】従来の誤差拡散法を説明するための2値化処
理の構成図。
FIG. 56 is a configuration diagram of binarization processing for explaining the conventional error diffusion method.

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

2…誤差補正手段 4…閾値処理手段 6…誤差算出手段 8…フィルタパラメータ発生手段 10…誤差フィルタリング手段 13…誤差バッファ 15…制御信号発生手段 2 ... Error correcting means 4 ... Threshold processing means 6 ... Error calculating means 8 ... Filter parameter generating means 10 ... Error filtering means 13 ... Error buffer 15 ... Control signal generating means

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における注目画
素の画像データを2値/多値化誤差拡散に基づく誤差補
正量によって補正した補正画像データを出力する補正手
段と、 この補正手段による補正画像データを2値/多値化する
2値/多値化手段と、 この2値/多値化手段により2値/多値化された2値/
多値化画像データと上記補正手段による補正画像データ
との誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなるフィルタ群を設け、画素ごと
あるいは複数画素ごとに選択的にフィルタを切り替える
ことによりフィルタリングを行うことを特徴とする画像
処理装置。
1. A correction in which image data of a pixel of interest in a processing target image including a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction is corrected by an error correction amount based on binary / multivalued error diffusion. Correction means for outputting image data; binary / multivalued means for binarizing / multivalued corrected image data by the correction means; and binary / multivalued by the binary / multivalued means Binary /
Calculating means for calculating an error between the multi-valued image data and the corrected image data by the correcting means, generating means for generating a filter parameter, filter parameter generated by the generating means, and an error calculated by the calculating means. By performing the filtering to diffuse the multi-valued error to the peripheral pixels, the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the error correction amount to the next line in the sub scanning direction with respect to the target pixel are calculated. Error storage means for outputting the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, and a sub-pixel for the pixel of interest stored in this storage means. The error correction amount to the next line in the scanning direction and the pixel of interest output by the error filtering means And a control unit that corrects the image data of the pixel of interest by the correction unit according to the error correction amount of the next pixel in the main scanning direction. The error filtering unit includes a plurality of filters having different pixels that diffuse the error. An image processing apparatus, comprising: a filter group having the above configuration, and performing filtering by selectively switching filters for each pixel or for each of a plurality of pixels.
【請求項2】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における注目画
素の画像データを2値/多値化誤差拡散に基づく誤差補
正量によって補正した補正画像データを出力する補正手
段と、 この補正手段による補正画像データを2値/多値化する
2値/多値化手段と、 この2値/多値化手段により2値/多値化された2値/
多値化画像データと上記補正手段による補正画像データ
との誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、主走査方向の誤差を拡散す
る画素の異なる複数のフィルタからなるフィルタ群を設
け、画素ごとあるいは複数画素ごとに選択的にフィルタ
を切り替えることにより主走査方向の複数画素を同時に
フィルタリングを行うことを特徴とする画像処理装置。
2. A correction in which image data of a pixel of interest in a processing target image including a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction is corrected by an error correction amount based on binary / multi-valued error diffusion. Correction means for outputting image data; binary / multivalued means for binarizing / multivalued corrected image data by the correction means; and binary / multivalued by the binary / multivalued means Binary /
Calculating means for calculating an error between the multi-valued image data and the corrected image data by the correcting means, generating means for generating a filter parameter, filter parameter generated by the generating means, and an error calculated by the calculating means. By performing the filtering to diffuse the multi-valued error to the peripheral pixels, the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the error correction amount to the next line in the sub scanning direction with respect to the target pixel are calculated. Error storage means for outputting the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, and a sub-pixel for the pixel of interest stored in this storage means. The error correction amount to the next line in the scanning direction and the pixel of interest output by the error filtering means And a control unit that corrects the image data of the pixel of interest by the correction unit according to the error correction amount of the next pixel in the main scanning direction, and the error filtering unit has different pixels that diffuse the error in the main scanning direction. An image processing apparatus, wherein a filter group including a plurality of filters is provided and a plurality of pixels in the main scanning direction are simultaneously filtered by selectively switching the filters for each pixel or for each plurality of pixels.
【請求項3】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における主走査
方向に1画素ごとのストリームで入力される画像データ
を複数画素ごとの画像データに変換する変換手段と、 この変換手段により変換された複数画素の注目画素の画
像データに対する2値/多値化誤差拡散に基づく誤差補
正量によって補正した複数の補正画像データを出力する
補正手段と、 この補正手段による複数の補正画像データをそれぞれ2
値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化された複数の
2値/多値化画像データを主走査方向に1画素ごとのス
トリームに変換して出力する出力手段と、 上記2値/多値化手段による複数の2値/多値化画像デ
ータと上記補正手段による複数の補正画像データとのそ
れぞれの誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなるフィルタ群を設け、画素ごと
あるいは複数画素ごとに選択的にフィルタを切り替える
ことにより主走査方向の複数画素を同時にフィルタリン
グを行うことを特徴とする画像処理装置。
3. Image data input in a stream for each pixel in the main scanning direction in a processing target image including a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction is converted into image data for each plurality of pixels. Conversion means for converting, and correction means for outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by the conversion means, Each of a plurality of corrected image data by this correction means is set to 2
Binary / multi-value conversion means for converting values / multi-values and a plurality of binary / multi-valued image data binarized / multi-valued by the binary / multi-value conversion means for each pixel in the main scanning direction. Output means for converting and outputting to the stream, calculation for calculating respective errors between the plurality of binary / multivalued image data by the binary / multivalued means and the plurality of corrected image data by the correction means Means, a generating means for generating a filter parameter, and a filtering for diffusing a multi-valued error to peripheral pixels by calculating the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting the error correction amount to the next pixel in the main scanning direction and the error correction amount to the next line in the sub scanning direction for the pixel of interest; Storage means for storing the error correction amount for the next line in the sub-scanning direction with respect to the pixel of interest output, and the error correction amount for the next line in the sub-scanning direction for the pixel of interest stored in this storage means. The error filtering means includes a control means for correcting the image data of the pixel of interest by the correction means based on the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering means. Image processing characterized by providing a filter group consisting of a plurality of filters with different pixels for diffusing an error, and selectively filtering the filters for each pixel or for each plurality of pixels to simultaneously filter a plurality of pixels in the main scanning direction apparatus.
【請求項4】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における主走査
方向に1画素ごとのストリームで入力される画像データ
を複数画素ごとの画像データに変換する変換手段と、 この変換手段により変換された複数画素の注目画素の画
像データに対する2値/多値化誤差拡散に基づく誤差補
正量によって補正した複数の補正画像データを出力する
補正手段と、 この補正手段による複数の補正画像データをそれぞれ2
値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化された複数の
2値/多値化画像データを主走査方向に1画素ごとのス
トリームに変換して出力する出力手段と、 上記2値/多値化手段による複数の2値/多値化画像デ
ータと上記補正手段による複数の補正画像データとのそ
れぞれの誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなるフィルタ群を設け、画素ごと
あるいは複数画素ごとに選択的にフィルタを切り替える
ことにより上記記憶手段のアクセス回数が削減されかつ
主走査方向の複数画素を同時にフィルタリングを行うこ
とを特徴とする画像処理装置。
4. Image data input in a stream for each pixel in the main scanning direction in a processing target image including a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction is converted into image data for each plurality of pixels. Conversion means for converting, and correction means for outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by the conversion means, Each of a plurality of corrected image data by this correction means is set to 2
Binary / multi-value conversion means for converting values / multi-values and a plurality of binary / multi-valued image data binarized / multi-valued by the binary / multi-value conversion means for each pixel in the main scanning direction. Output means for converting and outputting to the stream, calculation for calculating respective errors between the plurality of binary / multivalued image data by the binary / multivalued means and the plurality of corrected image data by the correction means Means, a generating means for generating a filter parameter, and a filtering for diffusing a multi-valued error to peripheral pixels by calculating the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting the error correction amount to the next pixel in the main scanning direction and the error correction amount to the next line in the sub scanning direction for the pixel of interest; Storage means for storing the error correction amount for the next line in the sub-scanning direction with respect to the pixel of interest output, and the error correction amount for the next line in the sub-scanning direction for the pixel of interest stored in this storage means. The error filtering means includes a control means for correcting the image data of the pixel of interest by the correction means based on the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering means. By providing a filter group consisting of a plurality of filters with different pixels for diffusing the error and selectively switching the filters for each pixel or for each of the plurality of pixels, the number of accesses to the storage means is reduced and a plurality of pixels in the main scanning direction are simultaneously processed. An image processing apparatus characterized by performing filtering.
【請求項5】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における主走査
方向に1画素ごとのストリームで入力される画像データ
を複数画素ごとの画像データに変換する変換手段と、 この変換手段により変換された複数画素の注目画素の画
像データに対する2値/多値化誤差拡散に基づく誤差補
正量によって補正した複数の補正画像データを出力する
補正手段と、 この補正手段による複数の補正画像データをそれぞれ2
値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化された複数の
2値/多値化画像データを主走査方向に1画素ごとのス
トリームに変換して出力する出力手段と、 上記2値/多値化手段による複数の2値/多値化画像デ
ータと上記補正手段による複数の補正画像データとのそ
れぞれの誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなる第1のフィルタ群と、主走査
方向の1画素おきあるいは複数画素おき、または副走査
方向の次のラインにおける1画素おきあるいは複数画素
おきに誤差拡散を行い、かつ誤差を拡散する画素の異な
る複数のフィルタからなる第2のフィルタ群と、主走査
方向の1画素おきあるいは複数画素おき、または副走査
方向の次のラインにおける1画素おきあるいは複数画素
おき、または主走査方向あるいは副走査方向の次のライ
ンにおける1画素おきあるいは複数画素おきに誤差拡散
を行い、かつ誤差を拡散する画素の異なる複数のフィル
タからなる第3のフィルタ群とを設け、第1、第2、第
3のフィルタ群のいずれかを選択的に用いることにより
フィルタリングを行うことを特徴とする画像処理装置。
5. Image data input in a stream for each pixel in the main scanning direction in a processing target image including a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction is converted into image data for each plurality of pixels. Conversion means for converting, and correction means for outputting a plurality of corrected image data corrected by an error correction amount based on binary / multi-valued error diffusion for image data of a plurality of pixels of interest converted by the conversion means, Each of a plurality of corrected image data by this correction means is set to 2
Binary / multi-value conversion means for converting values / multi-values and a plurality of binary / multi-valued image data binarized / multi-valued by the binary / multi-value conversion means for each pixel in the main scanning direction. Output means for converting and outputting to the stream, calculation for calculating respective errors between the plurality of binary / multivalued image data by the binary / multivalued means and the plurality of corrected image data by the correction means Means, a generating means for generating a filter parameter, and a filtering for diffusing a multi-valued error to peripheral pixels by calculating the filter parameter generated by the generating means and the error calculated by the calculating means, Error filtering means for outputting the error correction amount to the next pixel in the main scanning direction and the error correction amount to the next line in the sub scanning direction for the pixel of interest; Storage means for storing the error correction amount for the next line in the sub-scanning direction with respect to the pixel of interest output, and the error correction amount for the next line in the sub-scanning direction for the pixel of interest stored in this storage means. The error filtering means includes a control means for correcting the image data of the pixel of interest by the correction means based on the error correction amount of the next pixel in the main scanning direction with respect to the pixel of interest output by the error filtering means. A first filter group including a plurality of filters having different pixels for diffusing an error, and error diffusion every other pixel or every plural pixels in the main scanning direction, or every other pixel or every plural pixels in the next line in the sub scanning direction. And a second filter group consisting of a plurality of filters having different pixels for diffusing the error and every other pixel or a plurality of pixels in the main scanning direction. Error diffusion is performed every pixel or every other pixel or every plural pixels in the next line in the sub-scanning direction, or every one pixel or every plural pixels in the next line in the main scanning direction or the sub-scanning direction, and the error is diffused. And a third filter group including a plurality of filters having different pixels, and performing filtering by selectively using any one of the first, second, and third filter groups. .
【請求項6】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における主走査
方向に1画素ごとのストリームで入力される画像データ
を複数ラインで複数画素のマトリクスごとの画像データ
に変換する変換手段と、 この変換手段により変換されたマトリクスの画素ごとの
画像データに対する2値/多値化誤差拡散に基づく誤差
補正量によって補正したマトリクスの画素の補正画像デ
ータを出力する補正手段と、 この補正手段によるマトリクスの画素の補正画像データ
をそれぞれ2値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化されたマトリ
クスの画素の2値/多値化画像データを主走査方向に1
画素ごとのストリームに変換して出力する出力手段と、 上記2値/多値化手段によるマトリクスの画素の2値/
多値化画像データと上記補正手段によるマトリクスの画
素の補正画像データとのそれぞれの誤差を算出する算出
手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなるフィルタ群を設け、画素ごと
あるいは複数画素ごとに選択的にフィルタを切り替える
ことにより上記記憶手段のアクセス回数が削減されかつ
複数ラインで複数画素のマトリクスを同時にフィルタリ
ングを行うことを特徴とする画像処理装置。
6. A matrix of a plurality of pixels for a plurality of lines of image data input in a stream for each pixel in a main scanning direction in an image to be processed which includes a plurality of pixels in the main scanning direction and a plurality of lines in the sub scanning direction. Conversion means for converting the image data for each pixel, and the corrected image data of the pixels of the matrix corrected by the error correction amount based on the binary / multi-valued error diffusion for the image data of each pixel of the matrix converted by this conversion means. Correction means for outputting, binary / multivalued means for binarizing / multivalued the corrected image data of the pixels of the matrix by the correcting means, and binarization / multivalued by the binary / multivalued means The binary / multi-valued image data of pixels of the created matrix in the main scanning direction
Output means for converting into a stream for each pixel and outputting the stream, and binary / pixel value of matrix of the binary / multi-value conversion means
Calculation means for calculating respective errors between the multi-valued image data and the correction image data of the pixels of the matrix by the correction means, a generation means for generating a filter parameter, a filter parameter generated by the generation means, and the above calculation. Filtering for diffusing a multi-valued error to peripheral pixels is performed by calculation with the error calculated by the means, and the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the next line in the sub scanning direction with respect to the target pixel. Error correction amount for outputting to the next line in the sub-scanning direction with respect to the pixel of interest output by the error filtering device, Error correction amount to the next line in the sub-scanning direction with respect to the target pixel being detected and the error filtering means. And an error correction amount of the next pixel in the main scanning direction with respect to the target pixel output from the target pixel, and a control unit that corrects the image data of the target pixel by the correction unit. The error filtering unit diffuses the error. By providing a filter group composed of a plurality of filters having different pixels and selectively switching the filters for each pixel or for each plurality of pixels, the number of times of access to the storage means is reduced and a matrix of a plurality of pixels is simultaneously filtered by a plurality of lines. An image processing device characterized by the above.
【請求項7】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における複数チ
ャネルからなる注目画素の画像データを2値/多値化誤
差拡散に基づく誤差補正量によって補正した複数チャネ
ルの補正画像データを出力する補正手段と、 この補正手段による複数チャネルの補正画像データを2
値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化された複数チ
ャネルの2値/多値化画像データと上記補正手段による
複数チャネルの補正画像データとの誤差を算出する算出
手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された複数チャネルの誤差との演
算により周辺画素への多値誤差を拡散するフィルタリン
グを行い、複数チャネルの注目画素に対する主走査方向
の次の画素への誤差補正量と複数チャネルの注目画素に
対する副走査方向の次のラインへの誤差補正量とを出力
する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される複数チャ
ネルの注目画素に対する副走査方向の次のラインへの誤
差補正量を記憶する記憶手段と、 この記憶手段に記憶されている複数チャネルの注目画素
に対する副走査方向の次のラインへの誤差補正量と上記
誤差フィルタリング手段により出力される複数チャネル
の注目画素に対する主走査方向の次の画素の誤差補正量
とにより、上記補正手段による複数チャネルの注目画素
の画像データの補正を行う制御手段とを具備し、 誤差フィルタリング手段は、各チャネルごとに、誤差を
拡散する画素の異なる複数のフィルタからなるフィルタ
群を設け、副走査方向の次のラインにおける1画素おき
あるいは複数画素おきの誤差拡散を行う場合に、少なく
とも1つ以上のチャネルにおいて、副走査方向に拡散さ
れる画素の箇所が異なるフィルタを用いることにより、
上記記憶手段のアクセス回数が削減されかつ主走査方向
の複数チャネルの複数画素を同時にフィルタリングを行
うことを特徴とする画像処理装置。
7. An error correction amount based on binary / multi-valued error diffusion for image data of a target pixel consisting of a plurality of channels in a processing target image consisting of a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction. Correction means for outputting corrected image data of a plurality of channels corrected by
Value / multi-valued binary / multi-valued means, binary / multi-valued image data of a plurality of channels binarized / multi-valued by the binary / multi-valued means and a plurality of channels by the correction means Calculation means for calculating an error from the corrected image data, generating means for generating a filter parameter, and calculation of the filter parameter generated by the generating means and the error of a plurality of channels calculated by the calculating means for surrounding pixels. The error correction amount to the next pixel in the main scanning direction for the target pixel of the multiple channels and the error correction amount to the next line in the sub-scanning direction for the target pixel of the multiple channels are And an error to the next line in the sub-scanning direction for the target pixel of a plurality of channels output by the error filtering means. A storage unit that stores the correction amount, and an error correction amount to the next line in the sub-scanning direction for the target pixel of the plurality of channels stored in the storage unit and the target pixel of the plurality of channels output by the error filtering unit. And a control unit for correcting the image data of the pixel of interest of the plurality of channels by the correction unit according to the error correction amount of the next pixel in the main scanning direction. The error filtering unit diffuses the error for each channel. When a filter group consisting of a plurality of filters with different pixels is provided and error diffusion is performed every other pixel or every other pixel in the next line in the sub-scanning direction, diffusion is performed in the sub-scanning direction in at least one or more channels. By using filters with different pixel locations,
An image processing apparatus, characterized in that the number of accesses to the storage means is reduced and a plurality of pixels of a plurality of channels in the main scanning direction are simultaneously filtered.
【請求項8】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における複数チ
ャネルからなる注目画素の画像データを2値/多値化誤
差拡散に基づく誤差補正量によって補正した複数チャネ
ルの補正画像データを出力する補正手段と、 この補正手段による複数チャネルの補正画像データを2
値/多値化する2値/多値化手段と、 この2値/多値化手段により2値/多値化された複数チ
ャネルの2値/多値化画像データと上記補正手段による
複数チャネルの補正画像データとの誤差を算出する算出
手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された複数チャネルの誤差との演
算により周辺画素への多値誤差を拡散するフィルタリン
グを行い、複数チャネルの注目画素に対する主走査方向
の次の画素への誤差補正量と複数チャネルの注目画素に
対する副走査方向の次のラインへの誤差補正量とを出力
する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される複数チャ
ネルの注目画素に対する副走査方向の次のラインへの誤
差補正量を記憶する記憶手段と、 この記憶手段に記憶されている複数チャネルの注目画素
に対する副走査方向の次のラインへの誤差補正量と上記
誤差フィルタリング手段により出力される複数チャネル
の注目画素に対する主走査方向の次の画素の誤差補正量
とにより、上記補正手段による複数チャネルの注目画素
の画像データの補正を行う制御手段とを具備し、 誤差フィルタリング手段は、複数のチャネルの内少なく
とも1つのチャネルに対して、固定係数のフィルタを用
いて誤差拡散を行い、他のチャネルに対して、主走査方
向の1画素おきあるいは複数画素おき、または副走査方
向の次のラインにおける1画素おきあるいは複数画素お
き、または主走査方向あるいは副走査方向の次のライン
における1画素おきあるいは複数画素おきに誤差拡散を
行い、かつ誤差を拡散する画素の異なる複数のフィルタ
からなるフィルタ群を設け、副走査方向の次のラインに
おける1画素おきあるいは複数画素おきの誤差拡散を行
うことにより、上記記憶手段のアクセス回数が削減され
かつ主走査方向の複数画素を同時にフィルタリングを行
うことを特徴とする画像処理装置。
8. An error correction amount based on binary / multi-valued error diffusion for image data of a pixel of interest in a processing target image including a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction. Correction means for outputting corrected image data of a plurality of channels corrected by
Value / multi-valued binary / multi-valued means, binary / multi-valued image data of a plurality of channels binarized / multi-valued by the binary / multi-valued means and a plurality of channels by the correction means Calculation means for calculating an error from the corrected image data, generating means for generating a filter parameter, and calculation of the filter parameter generated by the generating means and the error of a plurality of channels calculated by the calculating means for surrounding pixels. The error correction amount to the next pixel in the main scanning direction for the target pixel of the multiple channels and the error correction amount to the next line in the sub-scanning direction for the target pixel of the multiple channels are And an error to the next line in the sub-scanning direction for the target pixel of a plurality of channels output by the error filtering means. A storage unit that stores the correction amount, and an error correction amount to the next line in the sub-scanning direction for the target pixel of the plurality of channels stored in the storage unit and the target pixel of the plurality of channels output by the error filtering unit. And a control unit that corrects the image data of the target pixel of a plurality of channels by the correction unit according to the error correction amount of the next pixel in the main scanning direction. The error filtering unit includes at least one of the plurality of channels. Error diffusion is performed on a channel using a filter with a fixed coefficient, and for every other channel, every other pixel or every other pixel in the main scanning direction, or every other pixel or a plurality of pixels in the next line in the sub scanning direction. Error every other pixel or every other pixel or every other pixel in the next line in the main scanning direction or the sub scanning direction. Access to the storage means is performed by providing a filter group composed of a plurality of filters that perform diffusion and diffuse an error, and perform error diffusion every other pixel or every other pixel in the next line in the sub-scanning direction. An image processing apparatus, wherein the number of times is reduced and a plurality of pixels in the main scanning direction are simultaneously filtered.
【請求項9】 主走査方向に複数の画素でかつ副走査方
向に複数のラインからなる処理対象画像における注目画
素の画像データを2値/多値化誤差拡散に基づく誤差補
正量によって補正した補正画像データを出力する補正手
段と、 この補正手段による補正画像データを2値/多値化する
2値/多値化手段と、 この2値/多値化手段により2値/多値化された2値/
多値化画像データと上記補正手段による補正画像データ
との誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、誤差を拡散する画素の異な
る複数のフィルタからなるフィルタ群を設け、副走査方
向のラインごとに、画素ごとあるいは複数画素ごとに異
なった順番で選択的にフィルタを切り替えることにより
フィルタリングを行うことを特徴とする画像処理装置。
9. A correction in which image data of a target pixel in a processing target image including a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction is corrected by an error correction amount based on binary / multi-valued error diffusion. Correction means for outputting image data; binary / multivalued means for binarizing / multivalued corrected image data by the correction means; and binary / multivalued by the binary / multivalued means Binary /
Calculating means for calculating an error between the multi-valued image data and the corrected image data by the correcting means, generating means for generating a filter parameter, filter parameter generated by the generating means, and an error calculated by the calculating means. By performing the filtering to diffuse the multi-valued error to the peripheral pixels, the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the error correction amount to the next line in the sub scanning direction with respect to the target pixel are calculated. Error storage means for outputting the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, and a sub-pixel for the pixel of interest stored in this storage means. The error correction amount to the next line in the scanning direction and the pixel of interest output by the error filtering means And a control unit that corrects the image data of the pixel of interest by the correction unit according to the error correction amount of the next pixel in the main scanning direction. The error filtering unit includes a plurality of filters having different pixels that diffuse the error. An image processing apparatus, wherein a filter group is provided, and filtering is performed by selectively switching filters in different order for each pixel or for each plurality of pixels for each line in the sub-scanning direction.
【請求項10】 主走査方向に複数の画素でかつ副走査
方向に複数のラインからなる処理対象画像における注目
画素の画像データを2値/多値化誤差拡散に基づく誤差
補正量によって補正した補正画像データを出力する補正
手段と、 この補正手段による補正画像データを2値/多値化する
2値/多値化手段と、 この2値/多値化手段により2値/多値化された2値/
多値化画像データと上記補正手段による補正画像データ
との誤差を算出する算出手段と、 フィルタパラメータを発生する発生手段と、 この発生手段により発生されるフィルタパラメータと上
記算出手段により算出された誤差との演算により周辺画
素への多値誤差を拡散するフィルタリングを行い、注目
画素に対する主走査方向の次の画素への誤差補正量と注
目画素に対する副走査方向の次のラインへの誤差補正量
とを出力する誤差フィルタリング手段と、 この誤差フィルタリング手段により出力される注目画素
に対する副走査方向の次のラインへの誤差補正量を記憶
する記憶手段と、 この記憶手段に記憶されている注目画素に対する副走査
方向の次のラインへの誤差補正量と上記誤差フィルタリ
ング手段により出力される注目画素に対する主走査方向
の次の画素の誤差補正量とにより、上記補正手段による
注目画素の画像データの補正を行う制御手段とを具備
し、 誤差フィルタリング手段は、主走査方向の1画素おきあ
るいは複数画素おきに誤差拡散を行い、かつ誤差を拡散
する画素の異なる複数のフィルタからなる第1のフィル
タ群と、主走査方向の1画素おきあるいは複数画素お
き、または副走査方向の次のラインにおける1画素おき
あるいは複数画素おきに誤差拡散を行い、かつ誤差を拡
散する画素の異なる複数のフィルタからなる第2のフィ
ルタ群と、主走査方向の1画素おきあるいは複数画素お
き、または副走査方向の次のラインにおける1画素おき
あるいは複数画素おき、または主走査方向あるいは副走
査方向の次のラインにおける1画素おきあるいは複数画
素おきに誤差拡散を行い、かつ誤差を拡散する画素の異
なる複数のフィルタからなる第3のフィルタ群とを設
け、第1、第2、第3のフィルタ群を副走査方向のライ
ンごとに周期的またはランダムに切り替えて用いること
によりフィルタリングを行うことを特徴とする画像処理
装置。
10. A correction in which image data of a pixel of interest in a processing target image including a plurality of pixels in a main scanning direction and a plurality of lines in a sub scanning direction is corrected by an error correction amount based on binary / multi-valued error diffusion. Correction means for outputting image data; binary / multivalued means for binarizing / multivalued corrected image data by the correction means; and binary / multivalued by the binary / multivalued means Binary /
Calculating means for calculating an error between the multi-valued image data and the corrected image data by the correcting means, generating means for generating a filter parameter, filter parameter generated by the generating means, and an error calculated by the calculating means. By performing the filtering to diffuse the multi-valued error to the peripheral pixels, the error correction amount to the next pixel in the main scanning direction with respect to the target pixel and the error correction amount to the next line in the sub scanning direction with respect to the target pixel are calculated. Error storage means for outputting the error correction amount to the next line in the sub-scanning direction for the pixel of interest output by the error filtering means, and a sub-pixel for the pixel of interest stored in this storage means. The error correction amount to the next line in the scanning direction and the pixel of interest output by the error filtering means And a control unit that corrects the image data of the pixel of interest by the correction unit according to the error correction amount of the next pixel in the main scanning direction. The error filtering unit includes every one pixel or every plural pixels in the main scanning direction. A first filter group consisting of a plurality of filters having different pixels for performing error diffusion and for diffusing the error, every other pixel in the main scanning direction or every plurality of pixels, or every other pixel in the next line in the sub scanning direction Alternatively, a second filter group including a plurality of filters that perform error diffusion for every plurality of pixels and which diffuse the error and every other pixel in the main scanning direction or every plurality of pixels, or the next line in the sub-scanning direction Every 1 pixel or every 2 pixels, or every 1 pixel or every 2 pixels in the next line in the main scanning direction or sub scanning direction Is provided with a third filter group including a plurality of filters having different pixels for performing error diffusion, and the first, second, and third filter groups are periodically or line by line in the sub-scanning direction. An image processing apparatus characterized in that filtering is performed by randomly switching and using.
JP32271695A 1995-12-12 1995-12-12 Image processing device Expired - Fee Related JP3782146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32271695A JP3782146B2 (en) 1995-12-12 1995-12-12 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32271695A JP3782146B2 (en) 1995-12-12 1995-12-12 Image processing device

Publications (2)

Publication Number Publication Date
JPH09163140A true JPH09163140A (en) 1997-06-20
JP3782146B2 JP3782146B2 (en) 2006-06-07

Family

ID=18146832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32271695A Expired - Fee Related JP3782146B2 (en) 1995-12-12 1995-12-12 Image processing device

Country Status (1)

Country Link
JP (1) JP3782146B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003110861A (en) * 2001-09-28 2003-04-11 Seiko Instruments Inc Method and device for tone reproduction of color gradation image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003110861A (en) * 2001-09-28 2003-04-11 Seiko Instruments Inc Method and device for tone reproduction of color gradation image

Also Published As

Publication number Publication date
JP3782146B2 (en) 2006-06-07

Similar Documents

Publication Publication Date Title
EP0734153B1 (en) Image processing apparatus for performing random mask process
US5835687A (en) Methods and apparatus for providing digital halftone images with random error diffusion dithering
JPH11243490A (en) Method for processing error diffusion value
US7623270B2 (en) Method of processing a digital image by means of ordered dithering technique description
JPH0393354A (en) Pseudo gradation generator
JP3782146B2 (en) Image processing device
JPH0638031A (en) Image density reproducing method
JPH01312671A (en) Picture processor
JP2003110852A (en) Halftone processing method and processor
JPH10145592A (en) Method and device for generating halftone image
JP3461247B2 (en) Image processing apparatus and image processing method
JP4135605B2 (en) Image processing device
JPH03243063A (en) Method for binarizing multilevel image
JPH09311669A (en) Image processor and image processing method therefor
JP2635306B2 (en) Image processing device
JP2701310B2 (en) Halftone image generation method and apparatus
JP2714140B2 (en) Pixel density converter
JPH06113125A (en) Picture processor
JP2714141B2 (en) Pixel density converter
JPH0476262B2 (en)
AU673556B2 (en) Colour display system
JPH07295527A (en) Processor for image signal binarization processing and method therefor
JPS62245862A (en) Picture processor
JPH0670138A (en) Method and device for image processing
JP2002010080A (en) Apparatus and method for pseudo gray scale conversion

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050719

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051024

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: 20060307

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060309

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees