JPH09307759A - Error storage control method for image processing unit and error storage controller - Google Patents

Error storage control method for image processing unit and error storage controller

Info

Publication number
JPH09307759A
JPH09307759A JP8121514A JP12151496A JPH09307759A JP H09307759 A JPH09307759 A JP H09307759A JP 8121514 A JP8121514 A JP 8121514A JP 12151496 A JP12151496 A JP 12151496A JP H09307759 A JPH09307759 A JP H09307759A
Authority
JP
Japan
Prior art keywords
error
pixels
image signal
signal
weighting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8121514A
Other languages
Japanese (ja)
Inventor
Atsushi Kubota
敦 久保田
Hiromoto Umezawa
浩基 梅澤
Hidehiro Watanabe
英博 渡邉
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.)
TEC CORP
Original Assignee
TEC 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 TEC CORP filed Critical TEC CORP
Priority to JP8121514A priority Critical patent/JPH09307759A/en
Publication of JPH09307759A publication Critical patent/JPH09307759A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make the memory size of an error signal storage means small and to reduce the cost of the means. SOLUTION: An image signal correction section 11 adds an image correction signal Ec to an input image signal Din to obtain a corrected image signal, it is compared with a threshold level Th at a binarization circuit 12, and converted to a binarized image signal Dout. Furthermore, an error calculation section 13 calculates the difference between the corrected image signal and the binarized image signal to provide an output of an error signal Er, a weighted error calculation section 14 multiplies a weighting coefficient from a weighting coefficient storage section 15 with the error signal to obtain a weighted error signal Erh and the weighted error signal is accumulated in an error storage section 17 storing the signal corresponding to one line of N-pixels via an error storage control section 16. In the case of binarizing a multilevel image signal with M-pixels in one line, M being larger than N, the N-pixels in the error storage section is arranged to optional pixels in the M-pixels in advance, the error storage control section 16 allocates the weighted errors at corresponding positions of the error storage section 17 with respect to the positions at which the N-pixels are arranged and allocates the weighted errors to the positions adjacent to the corresponding positions of the error storage section 17 with respect to other positions.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、ラスタス
キャンして得た多値画像信号を誤差拡散法を用いて2値
化画像信号又は多値化画像信号に変換する画像処理装置
の誤差記憶制御方法及び誤差記憶制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error storage of an image processing apparatus for converting a multi-valued image signal obtained by raster scanning into a binarized image signal or a multi-valued image signal using an error diffusion method. The present invention relates to a control method and an error storage control device.

【0002】[0002]

【従来の技術】一般に、イメージ情報を扱える文書画像
処理においてはスキャナなどの読取手段で読み取った画
像情報に対して、文字や線画などの画像情報は固定閾値
により単純2値化を行い、写真などの階調を有する画像
情報はディザ法、誤差拡散法などの疑似階調手段により
2値化を行っている。これは、読み取った画像情報を固
定閾値により単純2値化処理を行うと、文字、線画の領
域は解像性が保存されるために画質劣化は生じないが、
写真画像の領域では階調性が保存されないために画質劣
化が生じるという問題があり、また、読み取った画像情
報を組織的ディザ法などの疑似階調処理を行うと、写真
画像の領域は階調性が保存されるため画質劣化は生じな
いが、文字、線画の領域では解像性が低下するため画質
劣化が生じるという問題があるからである。
2. Description of the Related Art Generally, in document image processing capable of handling image information, image information read by a reading means such as a scanner is simply binarized by a fixed threshold for image information such as characters and line drawings, and photographs are taken. The image information having the gradation is binarized by a pseudo gradation means such as a dither method or an error diffusion method. This is because when the read image information is subjected to a simple binarization process with a fixed threshold value, the resolution of the character and line drawing areas is preserved, so that the image quality is not deteriorated.
There is a problem that the image quality is deteriorated because the gradation is not preserved in the area of the photographic image, and when the read image information is subjected to pseudo gradation processing such as the systematic dither method, the area of the photographic image becomes gradation. This is because the image quality is not deteriorated because the image quality is preserved, but there is a problem that the image quality is deteriorated because the resolution is deteriorated in the character and line drawing areas.

【0003】しかし、読み取った画像に対してこのよう
な単一の2値化処理を行ったのでは特徴の異なるそれぞ
れの領域の画質を満足することができないという問題が
ある。そこで、写真画像の領域の階調性を満足し、ま
た、文字、線画の領域についても組織的ディザ法に比べ
て解像性に優れてた方法として、誤差拡散法が知られて
いる。誤差拡散法は、例えば文献(An Adaptive Algori
thm for Spatial Grayscaleby R.W Floyd and L. Stein
berg, Proceeding of the S.I.D. Vol.17-2,pp.75-77
)に記載されているように、注目画素の濃度に、すで
に2値化した周辺画素の2値化誤差にある適当な重み係
数を乗じたものを加え、固定閾値で2値化するものであ
る。
However, if such a single binarization process is performed on the read image, the image quality of each region having different characteristics cannot be satisfied. Therefore, the error diffusion method is known as a method that satisfies the gradation of the area of the photographic image and is excellent in the resolution of the area of the character and the line drawing as compared with the systematic dither method. The error diffusion method is described in, for example, the literature (An Adaptive Algori
thm for Spatial Grayscaleby RW Floyd and L. Stein
berg, Proceeding of the SID Vol.17-2, pp.75-77
), The density of the pixel of interest is multiplied by an appropriate weighting coefficient, which is the binarization error of the already binarized peripheral pixels, and binarized with a fixed threshold value. .

【0004】図10は、誤差拡散法を使用して2値化処
理を行う画像処理装置の一例で、多値の入力画像信号D
inを画像信号補正部1に入力し、この画像信号補正部1
にて入力画像信号Dinに画像補正信号Ec を加算して補
正画像信号Dinc を得る。この補正画像信号Dinc を2
値化回路2で2値化閾値Th と比較し、この2値化回路
2から2値化画像信号Dout を出力する。2値化閾値T
h は、例えば、入力画像信号Dinが8bitであれば2
56の半分の128に設定される。2値化回路2は、補
正画像信号Dinc が2値化閾値Th 以上のときには2値
化画像信号Dout として「1」、すなわち黒画素の信号
を出力し、2値化閾値Th よりも小さいときには2値化
画像信号Dout として「0」、すなわち白画素の信号を
出力する。
FIG. 10 shows an example of an image processing apparatus for carrying out a binarization process using an error diffusion method, which is a multi-valued input image signal D.
Input in to the image signal correction unit 1
At, the image correction signal Ec is added to the input image signal Din to obtain the corrected image signal Dinc. This corrected image signal Dinc is set to 2
The binarization circuit 2 compares the binarization threshold Th with the binarization circuit 2 and outputs the binarized image signal Dout. Binarization threshold T
h is 2 if the input image signal Din is 8 bits, for example.
It is set to 128, which is half of 56. The binarization circuit 2 outputs "1", that is, a black pixel signal as the binarized image signal Dout when the corrected image signal Dinc is equal to or greater than the binarized threshold Th, and outputs 2 when the corrected image signal Dinc is smaller than the binarized threshold Th. As the binarized image signal Dout, "0", that is, a signal of a white pixel is output.

【0005】また、補正画像信号Dinc 及び2値化画像
信号Dout を2値化誤差算出部3に供給し、この2値化
誤差算出部3で補正画像信号Dinc と2値化画像信号D
outとの差を算出して2値化誤差信号Er を出力し、こ
の2値化誤差信号Er を重み誤差算出部4に供給する。
この場合の2値化画像信号Dout は、「0」のときは
「0」、「1」のときは「255」として2値化誤差を
算出する。5は、重み誤差を算出するための誤差フィル
タの重み係数を記憶する重み係数記憶部で、この重み係
数記憶部5から重み誤差算出部4に注目画素*の周囲画
素の重み係数A,B,C,Dを読出して供給している。
重み誤差算出部4は、2値化誤差信号Er に重み係数
A,B,C,Dを乗じてそれぞれ周囲画素位置に対する
重み誤差信号Erhを出力する。なお、重み係数A,B,
C,Dは、例えば、A=7/16、B=1/16、C=
5/16、D=3/16のように総和が1になるように
設定する。
Further, the corrected image signal Dinc and the binarized image signal Dout are supplied to the binarized error calculation unit 3, and the binarized error calculation unit 3 supplies the corrected image signal Dinc and the binarized image signal D.
The difference from out is calculated, the binarized error signal Er is output, and this binarized error signal Er is supplied to the weight error calculation unit 4.
The binarized image signal Dout in this case is "0" when it is "0" and "255" when it is "1", and the binarization error is calculated. Reference numeral 5 denotes a weight coefficient storage unit that stores the weight coefficient of the error filter for calculating the weight error. From the weight coefficient storage unit 5 to the weight error calculation unit 4, the weight coefficients A, B, and C and D are read and supplied.
The weighting error calculation unit 4 multiplies the binarization error signal Er by the weighting factors A, B, C and D, and outputs the weighting error signal Erh for the surrounding pixel positions. The weighting factors A, B,
C and D are, for example, A = 7/16, B = 1/16, C =
The sum is set to 1 such as 5/16 and D = 3/16.

【0006】重み誤差算出部4からの重み誤差信号Erh
を誤差記憶部6の該当画素位置に累積する。すなわち、
注目画素*の周囲4画素の重み誤差を対応する画素位置
に累積して累積値EA,EB,EC,EDを得る。そし
て、誤差記憶部6から画像信号補正部1に対して注目画
素*の重み誤差の累積値を画像補正信号Ec として出力
する。このような構成の画像処理装置は、入力画像信号
Dinを1画素ずつ画像信号補正部1にて画像補正信号E
c を加算して補正した後、2値化回路2で2値化し、こ
れを1ライン分繰り返すことで1ラインに対する2値化
処理を行う。そして、この1ライン毎の2値化処理を入
力画像信号Dinの総ライン数に対して繰り返すことで入
力画像に対する2値化処理を終了する。
The weight error signal Erh from the weight error calculation unit 4
Is accumulated in the relevant pixel position of the error storage unit 6. That is,
The weighting errors of four pixels around the pixel of interest * are accumulated at corresponding pixel positions to obtain accumulated values EA, EB, EC and ED. Then, the error storage unit 6 outputs the cumulative value of the weighting error of the pixel of interest * to the image signal correction unit 1 as an image correction signal Ec. In the image processing apparatus having such a configuration, the input image signal Din is input to the image signal correction unit 1 by the image signal correction unit 1 pixel by pixel.
After c is added and corrected, it is binarized by the binarization circuit 2, and this is repeated for one line to perform binarization processing for one line. Then, the binarization process for each input line is completed by repeating the binarization process for each line for the total number of lines of the input image signal Din.

【0007】また、特開昭63−155952号公報で
は、誤差拡散法を用いて2値化処理を行う画像処理装置
において、2値化誤差を注目画素の周辺の未処理画素に
配分する配分係数(重み係数)を、予め定めた変更周期
で複数組の配分係数セットの中から任意副走査ライン毎
に任意に初期設定された乱数発生に従って発生させる配
分係数発生手段を設け、配分係数を副走査ライン毎に変
化させてテクスチャの発生を防止している。
Further, in Japanese Patent Laid-Open No. 63-155952, a distribution coefficient for distributing a binarization error to unprocessed pixels around a pixel of interest in an image processing device for binarizing using an error diffusion method. A distribution coefficient generating means is provided for generating (weighting coefficient) in accordance with random number generation arbitrarily set for each arbitrary sub-scanning line from a plurality of distribution coefficient sets at a predetermined change cycle, and the distribution coefficient is sub-scanned. Textures are prevented by changing each line.

【0008】[0008]

【発明が解決しようとする課題】このような誤差拡散法
を用いて2値化処理を行う画像処理装置は、入力画像信
号と出力画像信号との誤差を補正する方式であるため、
算出した重み誤差を1画素ずつ累積する誤差記憶部とし
て1ライン分の記憶容量が必要となる。一方、取り扱う
イメージ情報としてA4サイズからB4、A3といった
大きなサイズのものが増え、また、解像度も大きくなっ
てきている。このため、大きなサイズや大きな解像度に
対処できる記憶容量を持った誤差記憶部が要求され記憶
部のメモリサイズが大きくなるとともにコストアップと
なる問題があった。
An image processing apparatus which performs a binarization process using such an error diffusion method is a system for correcting an error between an input image signal and an output image signal.
A storage capacity for one line is required as an error storage unit that accumulates the calculated weighting error pixel by pixel. On the other hand, as image information to be handled, large size information such as A4 size to B4 and A3 is increasing, and the resolution is also increasing. Therefore, there is a problem that an error storage unit having a storage capacity capable of coping with a large size and a large resolution is required, the memory size of the storage unit becomes large, and the cost increases.

【0009】そこで、請求項1記載の発明は、使用する
誤差記憶手段の記憶容量を大きくすることなく大きなサ
イズや大きな解像度の入力画像信号の誤差拡散法に基づ
く2値化又は多値化変換に対処でき、これにより、メモ
リサイズの小形化及びコスト低下を図ることができる画
像処理装置の誤差記憶制御方法を提供する。
Therefore, the invention described in claim 1 is a binarization or multi-value conversion based on an error diffusion method of an input image signal having a large size and a large resolution without increasing the storage capacity of the error storage means to be used. There is provided an error storage control method for an image processing apparatus which can deal with the problem and can reduce the memory size and the cost.

【0010】また、請求項2記載の発明は、使用する誤
差記憶手段の記憶容量を大きくすることなく大きなサイ
ズや大きな解像度の入力画像信号の誤差拡散法に基づく
2値化又は多値化変換に対処でき、これにより、メモリ
サイズの小形化及びコスト低下を図ることができる画像
処理装置の誤差記憶制御装置を提供する。
According to the second aspect of the present invention, the binarization or multi-valued conversion based on the error diffusion method of the input image signal having a large size or a large resolution can be performed without increasing the storage capacity of the error storage means used. Provided is an error storage control device of an image processing device which can cope with the problem and can reduce the memory size and the cost.

【0011】また、請求項3記載の発明は、使用する誤
差記憶手段の記憶容量を大きくすることなく大きなサイ
ズや大きな解像度の入力画像信号の誤差拡散法に基づく
2値化又は多値化変換に対処でき、これにより、メモリ
サイズの小形化及びコスト低下を図ることができ、さら
に、小さいサイズや小さい解像度の入力画像信号に対し
ては誤差補正精度を高めて誤差拡散法に基づく2値化又
は多値化変換ができる画像処理装置の誤差記憶制御方法
を提供する。
According to the third aspect of the present invention, the binarization or multi-valued conversion based on the error diffusion method of an input image signal having a large size or a large resolution can be performed without increasing the storage capacity of the error storage means to be used. This makes it possible to reduce the size of the memory and reduce the cost. Further, for an input image signal having a small size or a small resolution, the error correction accuracy is increased to perform binarization based on the error diffusion method or Provided is an error storage control method of an image processing device capable of multi-value conversion.

【0012】また、請求項4記載の発明は、使用する誤
差記憶手段の記憶容量を大きくすることなく大きなサイ
ズや大きな解像度の入力画像信号の誤差拡散法に基づく
2値化又は多値化変換に対処でき、これにより、メモリ
サイズの小形化及びコスト低下を図ることができ、さら
に、小さいサイズや小さい解像度の入力画像信号に対し
ては誤差補正精度を高めて誤差拡散法に基づく2値化又
は多値化変換ができる画像処理装置の誤差記憶制御装置
を提供する。
Further, the invention according to claim 4 is a binarization or multi-value conversion based on an error diffusion method of an input image signal having a large size and a large resolution without increasing the storage capacity of the error storage means to be used. This makes it possible to reduce the size of the memory and reduce the cost. Further, for an input image signal having a small size or a small resolution, the error correction accuracy is increased to perform binarization based on the error diffusion method or An error storage control device of an image processing device capable of multi-value conversion.

【0013】[0013]

【課題を解決するための手段】請求項1記載の発明は、
多値画像信号を画像補正信号により補正して補正画像信
号とした後、この補正画像信号を2値化画像信号又は多
値化画像信号に変換して出力し、一方、補正画像信号と
2値化画像信号又は多値化画像信号との誤差を算出し、
この誤差に注目画素の周辺画素に予め設定した重み係数
を乗じて注目画素の周辺画素に対する重み誤差を求め、
この重み誤差を1ラインN画素分記憶する誤差記憶手段
の該当画素位置に累積し、この誤差記憶手段の累積誤差
を使用して画像補正信号を生成する画像処理装置におい
て、1ラインがN画素より大きなM画素の多値画像信号
を2値化画像信号又は多値化画像信号に変換する場合
は、誤差記憶手段のN画素を予めM画素の任意の画素に
配置し、重み誤差をN画素を配置したM画素の任意の位
置に対しては誤差記憶手段の該当画素位置に累積し、そ
れ以外の位置に対しては誤差記憶手段の隣接する画素位
置に配分して累積することにある。
According to the first aspect of the present invention,
After correcting the multi-valued image signal with the image correction signal to form a corrected image signal, the corrected image signal is converted into a binarized image signal or a multi-valued image signal and output, while the corrected image signal and the binary image signal are output. Calculate the error with the digitized image signal or multi-valued image signal,
By multiplying this error by the weighting coefficient set in advance to the peripheral pixels of the target pixel, the weighting error with respect to the peripheral pixels of the target pixel is obtained,
In an image processing apparatus for accumulating the weighting error at the corresponding pixel position of the error storing means for storing N pixels of one line and generating an image correction signal by using the accumulated error of the error storing means, one line has more than N pixels. When converting a large M-valued multi-valued image signal into a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary M pixels and the weighting error is set to N pixels. The arbitrary position of the arranged M pixels is accumulated at the corresponding pixel position of the error storage means, and the other positions are distributed to the adjacent pixel positions of the error storage means and accumulated.

【0014】請求項2記載の発明は、多値画像信号を画
像補正信号により補正して補正画像信号とした後、この
補正画像信号を2値化画像信号又は多値化画像信号に変
換して出力し、一方、補正画像信号と2値化画像信号又
は多値化画像信号との誤差を算出し、この誤差に注目画
素の周辺画素に予め設定した重み係数を乗じて注目画素
の周辺画素に対する重み誤差を求め、この重み誤差を1
ラインN画素分記憶する誤差記憶手段の該当画素位置に
累積し、この誤差記憶手段の累積誤差を使用して画像補
正信号を生成する画像処理装置において、誤差記憶手段
のN画素を予めM画素の任意の画素に配置し、重み誤差
をN画素を配置したM画素の任意の位置に対して誤差記
憶手段の該当画素位置に累積する制御を行い、重み誤差
をN画素を配置したM画素の任意の位置以外の位置に対
して誤差記憶手段の隣接する画素位置に配分して累積す
る制御を行う累積制御手段と、この累積制御手段の累積
制御を、重み誤差を累積する位置がN画素を配置したM
画素の任意の位置か任意の位置以外の位置かにより切替
える切替手段を設けたものである。
According to a second aspect of the present invention, the multi-valued image signal is corrected by the image correction signal to be a corrected image signal, and the corrected image signal is converted into a binarized image signal or a multi-valued image signal. On the other hand, on the other hand, the error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by the weighting coefficient set in advance to the peripheral pixels of the pixel of interest, and the peripheral pixel of the pixel of interest is calculated. Obtain the weight error, and set this weight error to 1
In an image processing apparatus for accumulating at a corresponding pixel position of an error storage means for storing N pixels of a line and generating an image correction signal by using the accumulated error of this error storage means, the N pixels of the error storage means are preliminarily changed to M pixels. Arrangement is performed at an arbitrary pixel, and control is performed to accumulate a weighting error at an appropriate position of the M pixel where N pixels are arranged at a corresponding pixel position of the error storage unit, and an arbitrary weighting error is determined for the M pixels where N pixels are arranged. With respect to positions other than the position, the cumulative control means for performing control by distributing and accumulating to adjacent pixel positions of the error storage means, and the cumulative control of this cumulative control means, the position where the weighting error is accumulated is arranged by N pixels. M
A switching means for switching between arbitrary positions of pixels or positions other than arbitrary positions is provided.

【0015】請求項3記載の発明は、多値画像信号を画
像補正信号により補正して補正画像信号とした後、この
補正画像信号を2値化画像信号又は多値化画像信号に変
換して出力し、一方、補正画像信号と2値化画像信号又
は多値化画像信号との誤差を算出し、この誤差に注目画
素の周辺画素に予め設定した重み係数を乗じて注目画素
の周辺画素に対する重み誤差を求め、この重み誤差を1
ラインN画素分記憶する誤差記憶手段の該当画素位置に
累積し、この誤差記憶手段の累積誤差を使用して画像補
正信号を生成する画像処理装置において、1ラインがN
画素より大きなM画素の多値画像信号を2値化画像信号
又は多値化画像信号に変換する場合は、誤差記憶手段の
N画素を予めM画素の任意の画素に配置し、重み誤差を
N画素を配置したM画素の任意の位置に対しては誤差記
憶手段の該当画素位置に累積し、それ以外の位置に対し
ては誤差記憶手段の隣接する画素位置に配分して累積
し、1ラインがN画素以下のM画素の多値画像信号を2
値化画像信号又は多値化画像信号に変換する場合は、M
画素の全てを誤差記憶手段に配置し、重み誤差を誤差記
憶手段の該当画素位置に累積することにある。
According to a third aspect of the present invention, the multi-valued image signal is corrected by the image correction signal to form a corrected image signal, and the corrected image signal is converted into a binarized image signal or a multi-valued image signal. On the other hand, on the other hand, the error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by the weighting coefficient set in advance to the peripheral pixels of the pixel of interest, and the peripheral pixel of the pixel of interest is calculated. Obtain the weight error, and set this weight error to 1
In an image processing apparatus that accumulates at a corresponding pixel position of an error storage unit that stores N pixels of a line and generates an image correction signal using the accumulated error of the error storage unit, one line has N lines.
When converting a multi-valued image signal of M pixels larger than a pixel into a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary pixels of M pixels, and the weight error is N. For any position of the M pixels in which the pixels are arranged, it is accumulated at the corresponding pixel position of the error storage means, and for other positions, it is distributed to the adjacent pixel positions of the error storage means and accumulated, and one line 2 multi-valued image signals of M pixels with N pixels or less
When converting to a binarized image signal or a multi-valued image signal, M
All the pixels are arranged in the error storage means, and the weighting error is accumulated at the corresponding pixel position in the error storage means.

【0016】請求項4記載の発明は、多値画像信号を画
像補正信号により補正して補正画像信号とした後、この
補正画像信号を2値化画像信号又は多値化画像信号に変
換して出力し、一方、補正画像信号と2値化画像信号又
は多値化画像信号との誤差を算出し、この誤差に注目画
素の周辺画素に予め設定した重み係数を乗じて注目画素
の周辺画素に対する重み誤差を求め、この重み誤差を1
ラインN画素分記憶する誤差記憶手段の該当画素位置に
累積し、この誤差記憶手段の累積誤差を使用して画像補
正信号を生成する画像処理装置において、1ラインがN
画素より大きなM画素の多値画像信号を2値化画像信号
又は多値化画像信号に変換する場合は、誤差記憶手段の
N画素を予めM画素の任意の画素に配置して重み誤差を
N画素を配置したM画素の任意の位置に対して誤差記憶
手段の該当画素位置に累積する制御を行うとともに重み
誤差をN画素を配置したM画素の任意の位置以外の位置
に対して誤差記憶手段の隣接する画素位置に配分して累
積する制御を行い、1ラインがN画素以下のM画素の多
値画像信号を2値化画像信号又は多値化画像信号に変換
する場合は、M画素の全てを誤差記憶手段に配置して重
み誤差を誤差記憶手段の該当画素位置に累積する制御を
行う累積制御手段と、1ラインがN画素より大きなM画
素の多値画像信号を2値化画像信号又は多値化画像信号
に変換する場合は、累積制御手段の累積制御を重み誤差
を累積する位置がN画素を配置したM画素の任意の位置
か任意の位置以外の位置かにより切替え、1ラインがN
画素以下のM画素の多値画像信号を2値化画像信号又は
多値化画像信号に変換する場合は、累積制御手段の累積
制御を重み誤差を誤差記憶手段の該当画素位置に累積す
る制御のみに切替える切替手段を設けたものである。
According to a fourth aspect of the invention, the multi-valued image signal is corrected by the image correction signal to form a corrected image signal, and the corrected image signal is converted into a binarized image signal or a multi-valued image signal. On the other hand, on the other hand, the error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by the weighting coefficient set in advance to the peripheral pixels of the pixel of interest, and the peripheral pixel of the pixel of interest is calculated. Obtain the weight error, and set this weight error to 1
In an image processing apparatus that accumulates at a corresponding pixel position of an error storage unit that stores N pixels of a line and generates an image correction signal using the accumulated error of the error storage unit, one line has N lines.
When converting a multi-valued image signal of M pixels larger than pixels into a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary pixels of M pixels and the weight error is N. The control for accumulating the arbitrary position of the M pixel where the pixel is arranged at the corresponding pixel position of the error storage means is performed, and the weight storage error is performed for the position other than the arbitrary position of the M pixel where the N pixel is arranged. When the multi-valued image signal of M pixels in which one line is N pixels or less is converted into a binarized image signal or a multi-valued image signal by performing control for distributing and accumulating to adjacent pixel positions of A cumulative control unit for arranging all of them in the error storage unit and performing control for accumulating the weighting error at the corresponding pixel position of the error storage unit, and a multi-valued image signal of M pixels in which one line is larger than N pixels is a binarized image signal. Or when converting to a multi-valued image signal Position to accumulate weighted error accumulation control of the cumulative control means switched by one position other than the arbitrary position or any position M pixels arranged N pixels, one line N
When converting a multi-valued image signal of M pixels less than the pixel into a binarized image signal or a multi-valued image signal, the cumulative control of the cumulative control means is only the control of accumulating the weight error at the corresponding pixel position of the error storage means. The switching means for switching to is provided.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。なお、この実施の形態は多値の入
力画像信号を2値化画像信号に変換するものについて述
べる。 (第1の実施の形態)この実施の形態は、請求項1及び
2に対応した実施の形態で、図1に示すように、例え
ば、スキャナ等の入力装置で読み取った8ビットの入力
画像信号Dinを画像信号補正部11に入力し、この画像
信号補正部11にて入力画像信号Dinに画像補正信号E
c を加算して補正画像信号Dinc を得ている。そして、
この補正画像信号Dinc を2値化回路12で2値化閾値
Th と比較し、この2値化回路12から2値化画像信号
Dout を出力する。2値化閾値Th は、入力画像信号D
inが8bitなので256の半分の128に設定する。
前記2値化回路12は、補正画像信号Dinc が2値化閾
値Th 以上のときには2値化画像信号Dout として
「1」、すなわち黒画素の信号を出力し、2値化閾値T
h よりも小さいときには2値化画像信号Dout として
「0」、すなわち白画素の信号を出力する。
Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, a case where a multi-valued input image signal is converted into a binarized image signal will be described. (First Embodiment) This embodiment is an embodiment corresponding to claims 1 and 2, and as shown in FIG. 1, for example, an 8-bit input image signal read by an input device such as a scanner. Din is input to the image signal correction unit 11, and this image signal correction unit 11 converts the input image signal Din into the image correction signal E.
The corrected image signal Dinc is obtained by adding c. And
The binarized circuit 12 compares the corrected image signal Dinc with the binarized threshold value Th, and the binarized circuit 12 outputs the binarized image signal Dout. The binarization threshold Th is the input image signal D
Since in is 8 bits, set it to 128, which is half of 256.
The binarization circuit 12 outputs "1", that is, a black pixel signal as the binarized image signal Dout when the corrected image signal Dinc is equal to or greater than the binarized threshold Th, and outputs the binarized threshold T.
When it is smaller than h, "0", that is, a white pixel signal is output as the binarized image signal Dout.

【0018】また、補正画像信号Dinc 及び2値化画像
信号Dout を2値化誤差算出部13に供給し、この2値
化誤差算出部13で補正画像信号Dinc と2値化画像信
号Dout との差を算出して2値化誤差信号Er を出力
し、この2値化誤差信号Er を重み誤差算出部14に供
給している。この場合の2値化画像信号Dout は、
「0」のときは「0」、「1」のときは「255」とし
て2値化誤差を算出している。
Further, the corrected image signal Dinc and the binarized image signal Dout are supplied to the binarized error calculation unit 13, and the binarized error calculation unit 13 generates the corrected image signal Dinc and the binarized image signal Dout. The difference is calculated, the binarized error signal Er is output, and this binarized error signal Er is supplied to the weight error calculation unit 14. The binarized image signal Dout in this case is
The binarization error is calculated as "0" when it is "0" and "255" when it is "1".

【0019】15は、重み誤差を算出するための誤差フ
ィルタの重み係数を記憶する重み係数記憶部で、この重
み係数記憶部15から前記重み誤差算出部14に注目画
素*の周囲画素の重み係数A,B,C,Dを読出して供
給している。前記重み誤差算出部14は、2値化誤差信
号Er に重み係数A,B,C,Dを乗じてそれぞれ周囲
画素位置に対する重み誤差信号Erhを出力する。なお、
重み係数A,B,C,Dは、例えば、A=7/16、B
=1/16、C=5/16、D=3/16のように総和
が1になるように設定している。
Reference numeral 15 is a weighting coefficient storage unit for storing the weighting coefficient of the error filter for calculating the weighting error. From the weighting coefficient storage unit 15 to the weighting error calculation unit 14, the weighting coefficient of the peripheral pixel of the pixel of interest * is stored. A, B, C, D are read and supplied. The weighting error calculating section 14 multiplies the binarization error signal Er by the weighting factors A, B, C and D and outputs the weighting error signal Erh for the surrounding pixel positions. In addition,
The weighting factors A, B, C, D are, for example, A = 7/16, B
= 1/16, C = 5/16, D = 3/16, etc., so that the total sum is 1.

【0020】前記重み誤差算出部14からの重み誤差信
号Erhを累積制御手段を構成する誤差記憶制御部16を
介して誤差記憶手段を構成する誤差記憶部17の該当す
る画素位置に累積するようになっている。前記誤差記憶
部17は1ラインN画素の重み誤差信号Erhを累積でき
るメモリサイズになっている。
The weighting error signal Erh from the weighting error calculating unit 14 is accumulated in the corresponding pixel position of the error storing unit 17 forming the error storing unit via the error storing control unit 16 forming the accumulation controlling unit. Has become. The error storage unit 17 has a memory size capable of accumulating the weight error signal Erh of N pixels per line.

【0021】前記重み誤差算出部14及び誤差記憶制御
部16は図2に示す構成になっている。すなわち、前記
重み誤差算出部14は4個の乗算器14A,14B,1
4C,14Dを備え、前記重み係数記憶部15からの重
み係数Aを前記乗算器14Aに供給し、重み係数Bを前
記乗算器14Bに供給し、重み係数Cを前記乗算器14
Cに供給し、重み係数Dを前記乗算器14Dに供給して
いる。また、前記各乗算器14A,14B,14C,1
4Dに前記2値化誤差算出部13からの2値化誤差信号
Er をそれぞれ供給している。前記各乗算器14A,1
4B,14C,14Dは、2値化誤差信号Er にそれぞ
れ重み係数A,B,C,Dを乗じた重み誤差信号Erh
A,ErhB,ErhC,ErhDを前記誤差記憶制御部16
に供給している。
The weight error calculation unit 14 and the error storage control unit 16 have the configuration shown in FIG. That is, the weight error calculator 14 includes four multipliers 14A, 14B, 1
4C and 14D, the weight coefficient A from the weight coefficient storage unit 15 is supplied to the multiplier 14A, the weight coefficient B is supplied to the multiplier 14B, and the weight coefficient C is supplied to the multiplier 14.
C and the weighting coefficient D are supplied to the multiplier 14D. Also, each of the multipliers 14A, 14B, 14C, 1
The binarization error signal Er from the binarization error calculator 13 is supplied to 4D. Each of the multipliers 14A, 1
4B, 14C and 14D are weighted error signals Erh obtained by multiplying the binarized error signal Er by the weighting factors A, B, C and D, respectively.
A, ErhB, ErhC, ErhD are stored in the error memory control unit 16
To supply.

【0022】前記誤差記憶制御部16は、4個のセレク
タ21A,21B,21C,21D、4個の加算器22
A,22B,22C,22D及び3個のレジスタ23
B,23C,23Dからなり、前記乗算器14Aからの
重み誤差信号ErhAを前記セレクタ21AのA入力端子
に入力するとともに前記加算器22Aに入力し、前記乗
算器14Bからの重み誤差信号ErhBを前記加算器22
Bに入力し、前記乗算器14Cからの重み誤差信号Erh
Cを前記加算器22Cに入力し、前記乗算器14Dから
の重み誤差信号ErhDを前記セレクタ21DのA入力端
子に入力するとともに前記加算器22Dに入力してい
る。
The error storage control unit 16 includes four selectors 21A, 21B, 21C, 21D and four adders 22.
A, 22B, 22C, 22D and three registers 23
B, 23C, and 23D, the weight error signal ErhA from the multiplier 14A is input to the A input terminal of the selector 21A and the adder 22A, and the weight error signal ErhB from the multiplier 14B is input to the adder 22A. Adder 22
B is input to the weighting error signal Erh from the multiplier 14C.
C is input to the adder 22C, the weight error signal ErhD from the multiplier 14D is input to the A input terminal of the selector 21D, and is also input to the adder 22D.

【0023】前記加算器22Aは、また、前記誤差記憶
部17から読出した該当する画素位置の累積誤差EAを
入力し、この累積誤差EAに重み誤差信号ErhAを加算
した値を前記セレクタ21AのB入力端子に入力してい
る。前記加算器22Bは、また、前記セレクタ21Bの
出力を入力し、この出力に重み誤差信号ErhBを加算し
た値を前記レジスタ23Bに入力している。前記加算器
22Cは、また、前記セレクタ21Cの出力を入力し、
この出力に重み誤差信号ErhCを加算した値を前記レジ
スタ23Cに入力している。前記加算器22Dは、ま
た、前記レジスタ23Dのデータを入力し、このデータ
に重み誤差信号ErhDを加算した値を前記セレクタ21
DのB入力端子に入力している。
The adder 22A also receives the cumulative error EA of the corresponding pixel position read from the error storage unit 17, and adds the weighted error signal ErhA to the cumulative error EA to obtain the value of B of the selector 21A. Inputting to the input terminal. The adder 22B also inputs the output of the selector 21B, and inputs the value obtained by adding the weight error signal ErhB to the output to the register 23B. The adder 22C also receives the output of the selector 21C,
A value obtained by adding the weight error signal ErhC to this output is input to the register 23C. The adder 22D also inputs the data of the register 23D, and adds the weight error signal ErhD to this data to obtain the value of the selector 21D.
It is input to the B input terminal of D.

【0024】前記セレクタ21Bは、前記レジスタ23
CのデータをA入力端子に入力し、前記レジスタ23B
のデータをB入力端子に入力している。前記セレクタ2
1Cは、前記レジスタ23DのデータをA入力端子に入
力し、前記レジスタ23CのデータをB入力端子に入力
している。前記各セレクタ21A,21B,21C,2
1Dは、切替手段を構成するD形フリップフロップ24
のQ出力端子から出力する切替えタイミング信号によっ
て選択動作を行うようになっている。すなわち、前記D
形フリップフロップ24は、図5に示すように、入力画
像信号Dinを各画素毎に2値化画像信号Dout に変換す
るタイミングを取る画素クロックCLをCK入力端子に
入力し、この画素クロックCLに同期してQ出力端子か
ら出力する切替えタイミング信号をH(ハイ)レベル、
L(ロー)レベルに変化させている。そして、切替えタ
イミング信号がHレベルのときには各セレクタ21A,
21B,21C,21DはA入力端子に入力する信号を
選択して出力し、切替えタイミング信号がLレベルのと
きには各セレクタ21A,21B,21C,21DはB
入力端子に入力する信号を選択して出力するようになっ
ている。
The selector 21B includes the register 23.
Input the data of C to the A input terminal,
Data is input to the B input terminal. The selector 2
1C inputs the data of the register 23D into the A input terminal and the data of the register 23C into the B input terminal. Each of the selectors 21A, 21B, 21C, 2
1D is a D-type flip-flop 24 that constitutes switching means.
The selection operation is performed according to the switching timing signal output from the Q output terminal. That is, the D
As shown in FIG. 5, the flip-flop 24 inputs a pixel clock CL, which takes a timing of converting the input image signal Din into a binarized image signal Dout for each pixel, to a CK input terminal, and inputs the pixel clock CL to this pixel clock CL. The switching timing signal output from the Q output terminal in synchronization with the H (high) level,
It is changed to L (low) level. When the switching timing signal is at H level, each selector 21A,
21B, 21C, and 21D select and output a signal input to the A input terminal, and when the switching timing signal is at L level, each selector 21A, 21B, 21C, and 21D outputs B.
The signal input to the input terminal is selected and output.

【0025】このような構成において、例えば、1ライ
ンN画素の重み誤差信号Erhを累積できる誤差記憶部1
7に対し、1ラインがM画素(M=2N)の入力画像信
号Dinを2値化画像信号Dout に変換する場合は、誤差
記憶部17のN画素を入力画像信号DinのM画素の偶数
画素に対応させて配置する。今、注目画素*(=2n)
が図3の(a) に示す画素位置にあり、これが図3の(b)
に示すように偶数画素位置であったとすると、この注目
画素*(=2n)は画像信号補正部11で画像補正信号
Ec が加算されて誤差補正が行われ、この誤差補正した
注目画素2nを2値化回路12で2値化して2値化画像
信号Dout を出力する。なお、図3の(b) において斜線
の部分は誤差記憶部17のN画素を配置した偶数画素位
置を示し、空白の部分は誤差記憶部17のN画素を配置
しない奇数画素位置を示している。
In such a structure, for example, the error storage unit 1 capable of accumulating the weighting error signal Erh of N pixels in one line.
On the other hand, in the case of converting the input image signal Din in which one line has M pixels (M = 2N) into the binarized image signal Dout, the N pixels in the error storage unit 17 are even pixels of the M pixels in the input image signal Din. It is arranged corresponding to. Attention pixel * (= 2n)
Is at the pixel position shown in Fig. 3 (a), which is shown in Fig. 3 (b).
Suppose that the pixel of interest * (= 2n) is at an even pixel position as shown in FIG. 2, the image correction signal Ec is added to the pixel of interest * (= 2n) to perform error correction. The binarizing circuit 12 binarizes and outputs a binarized image signal Dout. In FIG. 3 (b), the shaded portion indicates the even pixel position where N pixels of the error storage unit 17 are arranged, and the blank portion indicates the odd pixel position where N pixel of the error storage unit 17 is not arranged. .

【0026】2値化誤差算出部13は補正画像信号Din
c と2値化画像信号Dout との差を算出して2値化誤差
信号Er (=E2n)を出力し、重み誤差算出部14は
この2値化誤差信号Er (=E2n)に注目画素*の周
囲画素の重み係数A,B,C,Dを乗じて重み誤差を算
出する。この重み誤差は図4の(a) に示すように配分さ
れる。すなわち、重み係数Aを乗じて得た重み誤差A×
E2nは、次画素(2n+1)の誤差に、重み係数Bを
乗じて得た重み誤差B×E2nは、次のラインの偶数画
素2(n−1)の誤差に、重み係数Cを乗じて得た重み
誤差C×E2nは、次のラインの偶数画素2nの誤差
に、重み係数Dを乗じて得た重み誤差D×E2nは、次
のラインの偶数画素2(n+1)の誤差にそれぞれ配分
される。この場合、次のラインの偶数画素2(n−
1)、2n、2(n+1)は誤差記憶部17のN画素に
対応している。
The binarization error calculation unit 13 calculates the corrected image signal Din.
The difference between c and the binarized image signal Dout is calculated to output a binarized error signal Er (= E2n), and the weighting error calculation unit 14 uses the binarized error signal Er (= E2n) as the pixel of interest *. The weighting error is calculated by multiplying the weighting factors A, B, C, and D of the surrounding pixels. This weight error is distributed as shown in FIG. That is, the weighting error A x obtained by multiplying the weighting factor A
E2n is obtained by multiplying the error of the next pixel (2n + 1) by the weighting coefficient B, and E × 2n is obtained by multiplying the error of the even pixel 2 (n−1) of the next line by the weighting coefficient C. The weighting error C × E2n obtained by multiplying the error of the even pixel 2n on the next line by the weighting coefficient D is distributed to the error of the even pixel 2 (n + 1) on the next line. It In this case, the even pixel 2 (n-
1), 2n, and 2 (n + 1) correspond to N pixels in the error storage unit 17.

【0027】注目画素*が図3の(c) に示すように次の
画素(2n+1)に移行すると、この注目画素*(=2
n+1)は画像信号補正部11で前回の誤差処理で求め
た次画素(2n+1)の誤差に該当する画像補正信号E
c が加算されて誤差補正が行われ、この誤差補正した注
目画素(2n+1)を2値化回路12で2値化して2値
化画像信号Dout を出力する。なお、図3の(c) におい
て斜線の部分は誤差記憶部17のN画素を配置した偶数
画素位置を示し、空白の部分は誤差記憶部17のN画素
を配置しない奇数画素位置を示している。
When the target pixel * shifts to the next pixel (2n + 1) as shown in FIG. 3C, this target pixel * (= 2
n + 1) is an image correction signal E corresponding to the error of the next pixel (2n + 1) obtained by the image signal correction unit 11 in the previous error processing.
Error correction is performed by adding c, and the pixel of interest (2n + 1) corrected for error is binarized by the binarization circuit 12 and the binarized image signal Dout is output. In FIG. 3 (c), the shaded area shows the even pixel positions where N pixels of the error storage unit 17 are arranged, and the blank areas show the odd pixel positions where N pixels of the error storage unit 17 are not arranged. .

【0028】2値化誤差算出部13は補正画像信号Din
c と2値化画像信号Dout との差を算出して2値化誤差
信号Er (=E2n+1)を出力し、重み誤差算出部1
4はこの2値化誤差信号Er (=E2n+1)に注目画
素*の周囲画素の重み係数A,B,C,Dを乗じて重み
誤差を算出する。この重み誤差は図4の(b) に示すよう
に配分される。すなわち、重み係数Aを乗じて得た重み
誤差A×E(2n+1)は、次画素2(n+1)の誤差
に、重み係数Bを乗じて得た重み誤差B×E(2n+
1)は、次のラインの偶数画素2(n−1)の誤差に、
重み係数Cを乗じて得た重み誤差C×E(2n+1)
は、次のラインの偶数画素2nの誤差に、重み係数Dを
乗じて得た重み誤差D×E(2n+1)は、次のライン
の偶数画素2(n+1)の誤差にそれぞれ配分される。
このように、注目画素*が奇数番目のときには誤差記憶
部17のN画素として存在する次のラインの隣接する画
素位置の偶数画素2(n−1)、2n、2(n+1)に
それぞれ配分されることになる。このような手順で算出
した重み誤差信号を累積した結果を誤差記憶制御部16
は誤差記憶部17の該当する画素位置に記憶することに
なる。
The binarization error calculation unit 13 calculates the corrected image signal Din.
The difference between c and the binarized image signal Dout is calculated to output the binarized error signal Er (= E2n + 1), and the weighting error calculation unit 1
Reference numeral 4 multiplies the binarized error signal Er (= E2n + 1) by the weighting factors A, B, C and D of the pixels surrounding the pixel of interest * to calculate the weighting error. This weight error is distributed as shown in FIG. 4 (b). That is, the weight error A × E (2n + 1) obtained by multiplying the weight coefficient A is the weight error B × E (2n +) obtained by multiplying the error of the next pixel 2 (n + 1) by the weight coefficient B.
1) is the error of the even pixel 2 (n-1) of the next line,
Weighting error C × E (2n + 1) obtained by multiplying the weighting coefficient C
Is a weighting error D × E (2n + 1) obtained by multiplying the error of the even pixel 2n on the next line by the weighting coefficient D is distributed to the error of the even pixel 2 (n + 1) on the next line.
Thus, when the pixel of interest * is an odd number, it is distributed to even pixels 2 (n−1), 2n, 2 (n + 1) of adjacent pixel positions of the next line existing as N pixels of the error storage unit 17, respectively. Will be. The result of accumulating the weighted error signals calculated by such a procedure is used as the error storage control unit 16
Will be stored in the corresponding pixel position of the error storage unit 17.

【0029】すなわち、注目画素*が偶数画素2nの場
合、D形フリップフロップ24はHレベルの切替えタイ
ミング信号を出力し、誤差記憶制御部16の各セレクタ
21A,21B,21C,21DはA入力端子を選択す
る。このとき、レジスタ23Dには、2値化誤差信号E
2nに重み誤差Dを乗じた重み誤差信号ErhDの値D×
E2nがセレクタ21Dを介して入力される。
That is, when the pixel of interest * is an even pixel 2n, the D-type flip-flop 24 outputs the switching timing signal of H level, and the selectors 21A, 21B, 21C and 21D of the error storage controller 16 have A input terminals. Select. At this time, the binary error signal E is stored in the register 23D.
The value D of the weight error signal ErhD obtained by multiplying 2n by the weight error D ×
E2n is input via the selector 21D.

【0030】また、レジスタ23Cには、2値化誤差信
号E2nに重み誤差Cを乗じた重み誤差信号ErhCの値
C×E2nとレジスタ23Dの値とを加算器22Cで加
算した値が入力される。また、レジスタ23Bには、2
値化誤差信号E2nに重み誤差Bを乗じた重み誤差信号
ErhBの値B×E2nとレジスタ23Cの値とを加算器
22Bで加算した値が入力される。このとき、レジスタ
23Dに予め入力されている値は前画素である画素2n
−1と画素2(n−1)を処理したときに発生した誤差
に重み係数Dを乗じた値である。
In addition, the value obtained by adding the value C × E2n of the weight error signal ErhC obtained by multiplying the binarization error signal E2n by the weight error C and the value of the register 23D by the adder 22C is input to the register 23C. . In addition, the register 23B has 2
A value obtained by adding the value B × E2n of the weight error signal ErhB obtained by multiplying the value error signal E2n by the weight error B and the value of the register 23C by the adder 22B is input. At this time, the value previously input to the register 23D is the pixel 2n which is the previous pixel.
−1 and the pixel 2 (n−1) are processed, and the error is a value obtained by multiplying the weight coefficient D.

【0031】また、レジスタ23Cに予め入力されてい
る値は前画素である画素2n−1と画素2(n−1)を
処理したときに発生した誤差に重み係数Cを乗じた値
と、さらに前画素である画素2n−3と画素2(n−
2)を処理したときに発生した誤差に重み係数Dを乗じ
た値とを加算した値である。また、セレクタ21Aの出
力、すなわち、重み誤差信号ErhAの値A×E2nはそ
のまま画像補正信号Ec として画像信号補正部11に供
給され、次画素2n+1の誤差補正に使用される。
The value previously input to the register 23C is a value obtained by multiplying an error generated when the pixels 2n-1 and 2 (n-1), which are the previous pixels, by the weighting coefficient C, and The previous pixel, pixel 2n-3 and pixel 2 (n-
This is a value obtained by adding the error generated when processing 2) is multiplied by the weighting coefficient D. Further, the output of the selector 21A, that is, the value A × E2n of the weight error signal ErhA is directly supplied to the image signal correction unit 11 as the image correction signal Ec and used for the error correction of the next pixel 2n + 1.

【0032】次画素2n+1を2値化処理するときに
は、すなわち、注目画素*が奇数画素2n+1の場合、
D形フリップフロップ24はLレベルの切替えタイミン
グ信号を出力し、誤差記憶制御部16の各セレクタ21
A,21B,21C,21DはB入力端子を選択する。
このとき、レジスタ23Dには、2値化誤差信号E2n
+1に重み誤差Dを乗じた重み誤差信号ErhDの値D×
E2n+1とレジスタ23Dの値とを加算器22Dで加
算した値がセレクタ21Dを介して入力される。
When the next pixel 2n + 1 is binarized, that is, when the target pixel * is an odd pixel 2n + 1,
The D-type flip-flop 24 outputs an L-level switching timing signal, and each selector 21 of the error storage controller 16
A, 21B, 21C and 21D select the B input terminal.
At this time, the binary error signal E2n is stored in the register 23D.
The value D of the weight error signal ErhD obtained by multiplying +1 by the weight error D ×
A value obtained by adding E2n + 1 and the value of the register 23D by the adder 22D is input via the selector 21D.

【0033】また、レジスタ23Cには、2値化誤差信
号E2n+1に重み誤差Cを乗じた重み誤差信号ErhC
の値C×E2n+1とレジスタ23Cの値とを加算器2
2Cで加算した値が入力される。また、レジスタ23B
には、2値化誤差信号E2n+1に重み誤差Bを乗じた
重み誤差信号ErhBの値B×E2n+1とレジスタ23
Bの値とを加算器22Bで加算した値が入力される。ま
た、2値化誤差信号E2n+1に重み誤差Aを乗じた重
み誤差信号ErhAの値A×E2n+1と誤差記憶部17
から読出した値とを加算器22Aで加算した値がセレク
タ21Aから画像補正信号Ec として画像信号補正部1
1に供給され、次画素2(n+1)の誤差補正に使用さ
れる。このとき、誤差記憶部17に対しては読出しと同
時にレジスタ23Bの値が書き込まれる。
The register 23C has a weight error signal ErhC obtained by multiplying the binarized error signal E2n + 1 by the weight error C.
Value of C × E2n + 1 and the value of the register 23C are added by the adder 2
The value added in 2C is input. In addition, the register 23B
Is the value B × E2n + 1 of the weight error signal ErhB obtained by multiplying the binarization error signal E2n + 1 by the weight error B, and the register 23.
A value obtained by adding the value of B and the value of the adder 22B is input. The value A × E2n + 1 of the weight error signal ErhA obtained by multiplying the binarization error signal E2n + 1 by the weight error A and the error storage unit 17 are also included.
The value added by the adder 22A with the value read from the image signal correction unit 1 is used as the image correction signal Ec from the selector 21A.
1 and is used for error correction of the next pixel 2 (n + 1). At this time, the value of the register 23B is written into the error storage unit 17 at the same time as the reading.

【0034】このようにして1ラインにおける偶数画素
を2値化処理する場合は、注目画素*の周囲4画素につ
いて求めた重み誤差を誤差記憶部17の該当する画素位
置に累積し、奇数画素を2値化処理する場合は、注目画
素*の周囲4画素について求めた重み誤差を隣接する誤
差記憶部17の該当する画素位置に累積して各注目画素
*に対する画像補正信号Ec を生成する。これにより、
記憶画素数がN画素の誤差記憶部17を使用して1ライ
ンがN画素の2倍のM画素の入力画像信号Dinを2値化
処理することができる。すなわち、M(=2N)画素の
入力画像信号Dinを2値化処理するのにN画素の2倍の
記憶容量をもつ誤差記憶部を設ける必要はなく、メモリ
サイズの小形化及びコスト低下を図ることができる。
When binarizing the even pixels in one line in this way, the weighting errors obtained for the four pixels surrounding the pixel of interest * are accumulated at the corresponding pixel positions in the error storage unit 17, and the odd pixels are When the binarization processing is performed, the weighting errors obtained for the four pixels around the target pixel * are accumulated at the corresponding pixel positions in the adjacent error storage unit 17 to generate the image correction signal Ec for each target pixel *. This allows
By using the error storage unit 17 in which the number of stored pixels is N pixels, the input image signal Din of M pixels in which one line is twice as many as N pixels can be binarized. That is, it is not necessary to provide an error storage unit having a storage capacity twice as large as N pixels in order to binarize the input image signal Din of M (= 2N) pixels, and the memory size can be reduced and the cost can be reduced. be able to.

【0035】なお、この実施の形態では、誤差記憶部1
7のN画素を入力画像信号DinのM画素の偶数画素に対
応させて配置した場合を例として述べたが必ずしもこれ
に限定するものではなく、誤差記憶部17のN画素を入
力画像信号DinのM画素の奇数画素に対応させて配置し
た場合でも同様の作用効果が得られるものである。
In this embodiment, the error storage unit 1
The case where the N pixels of 7 are arranged corresponding to the even pixels of the M pixels of the input image signal Din has been described as an example, but the present invention is not necessarily limited to this, and the N pixels of the error storage unit 17 are set to the pixels of the input image signal Din. Even when the pixels are arranged corresponding to odd-numbered pixels of M pixels, the same effect can be obtained.

【0036】(第2の実施の形態)この実施の形態は、
請求項3及び4に対応した実施の形態で、誤差記憶制御
部16のセククタ21A〜21Dを選択制御する切替手
段以外の構成は第1の実施の形態と同様である。切替手
段は、図6に示すように、D形フリップフロップ24の
Q出力端子からの出力を2入力アンドゲート25の一方
の入力端子に入力している。また、誤差記憶部17の記
憶画素数であるN画素と入力画像信号Dinの1ラインの
画素数であるM画素とを比較器26で比較し、N<Mの
ときにはハイレベルな出力を前記アンドゲート25の他
方の入力端子に入力し、N≧Mのときにはローレベルな
出力を前記アンドゲート25の他方の入力端子に入力し
ている。そして、前記アンドゲート25から切替えタイ
ミング信号を出力するようになっている。
(Second Embodiment) In this embodiment,
In the embodiment corresponding to claims 3 and 4, the configuration other than the switching means for selectively controlling the sectors 21A to 21D of the error storage control unit 16 is the same as that of the first embodiment. As shown in FIG. 6, the switching means inputs the output from the Q output terminal of the D-type flip-flop 24 to one input terminal of the 2-input AND gate 25. The comparator 26 compares N pixels, which is the number of pixels stored in the error storage unit 17, with M pixels, which is the number of pixels of one line of the input image signal Din, and when N <M, a high-level output is output from the AND gate. It is input to the other input terminal of the gate 25, and when N ≧ M, a low level output is input to the other input terminal of the AND gate 25. The AND gate 25 outputs a switching timing signal.

【0037】このような切替手段を使用すれば、N<M
のときには、図7の(a) に示すようにD形フリップフロ
ップ24のQ出力端子からの出力をそのまま切替えタイ
ミング信号として出力でき、N≧Mのときには、図7の
(b) に示すようにD形フリップフロップ24のQ出力端
子からの出力に関係なく、アンドゲート25の出力をL
レベルにして、常時Lベルの切替えタイミング信号を出
力するようになっている。
If such a switching means is used, N <M
7A, the output from the Q output terminal of the D flip-flop 24 can be directly output as the switching timing signal as shown in FIG. 7A, and when N ≧ M, the output of FIG.
As shown in (b), the output of the AND gate 25 is set to L regardless of the output from the Q output terminal of the D flip-flop 24.
The level is set so that the L-bell switching timing signal is always output.

【0038】このような構成においては、N<Mの場合
には切替手段はD形フリップフロップ24のQ出力端子
からの出力をそのまま切替えタイミング信号として出力
するので、第1の実施の形態と同様の2値化処理を行
う。従って、この場合には第1の実施の形態と同様の作
用効果が得られる。また、N≧Mの場合には切替手段は
常時Lベルとなる切替えタイミング信号を出力するの
で、各セレクタ21A〜21Dは常時A入力端子のみを
選択するようになる。
In such a configuration, when N <M, the switching means outputs the output from the Q output terminal of the D-type flip-flop 24 as it is as the switching timing signal, which is the same as in the first embodiment. The binarization process is performed. Therefore, in this case, the same effect as that of the first embodiment can be obtained. Further, when N ≧ M, the switching means always outputs the switching timing signal that is L level, so that each of the selectors 21A to 21D always selects only the A input terminal.

【0039】これにより、誤差記憶制御部16は、入力
画像信号Dinの1ラインの各画素全てを誤差記憶部17
の記憶画素位置に配置して、入力画像信号Dinの1ライ
ンの各画素を2値化処理する時に算出される重み誤差を
全て誤差記憶部17の該当する画素位置に累計するよう
になる。従って、入力画像信号Dinの1ラインの画素数
Mが誤差記憶部17の記憶画素数N以下の場合は、重み
誤差を隣接する画素位置に配分する処理を行う必要がな
く、入力画像信号Dinに対して誤差補正精度を高めて2
値化処理ができる。
As a result, the error storage control unit 16 stores all the pixels of one line of the input image signal Din in the error storage unit 17.
All the weighting errors calculated when binarizing each pixel of one line of the input image signal Din are arranged at the corresponding pixel position of the error storage unit 17. Therefore, when the number M of pixels in one line of the input image signal Din is less than or equal to the number N of pixels stored in the error storage unit 17, there is no need to perform a process of distributing the weight error to adjacent pixel positions, and the input image signal Din On the other hand, increase the error correction accuracy to 2
Value processing is possible.

【0040】なお、前述した各実施の形態では、入力画
像信号Dinの1ラインの画素数Mが誤差記憶部17の記
憶画素数Nの2倍の場合、ライン数に関係なく、誤差記
憶部17のN画素を入力画像信号Dinの偶数画素又は奇
数画素に配置したが必ずしもこれに限定するものではな
く、例えば奇数ライン目は誤差記憶部17のN画素を入
力画像信号Dinの奇数画素に配置し、偶数ライン目は誤
差記憶部17のN画素を入力画像信号Dinの偶数画素に
配置する構成であってもよい。
In each of the above-described embodiments, when the number M of pixels in one line of the input image signal Din is twice the number N of pixels stored in the error storage unit 17, the error storage unit 17 is irrespective of the number of lines. The N pixels of the input image signal Din are arranged in the even pixels or the odd pixels of the input image signal Din, but the present invention is not limited to this. For example, in the odd line, the N pixels of the error storage unit 17 are arranged in the odd pixels of the input image signal Din. The even-numbered line may have a configuration in which N pixels of the error storage unit 17 are arranged in even-numbered pixels of the input image signal Din.

【0041】この場合の制御は、例えば注目画素*(=
2n)が図8の(a) に示す画素位置にあり、これが図8
の(b) に示すように偶数ラインの偶数画素位置であった
とすると、この注目画素*(=2n)は画像信号補正部
11で画像補正信号Ec が加算されて誤差補正が行わ
れ、この誤差補正した注目画素2nを2値化回路12で
2値化して2値化画像信号Dout を出力する。なお、図
8の(b) において斜線の部分は誤差記憶部17のN画素
を配置した画素位置を示し、空白の部分は誤差記憶部1
7のN画素を配置しない画素位置を示している。
The control in this case is, for example, the pixel of interest * (=
2n) is at the pixel position shown in FIG. 8 (a), which is shown in FIG.
As shown in (b) of FIG. 4, if it is an even-numbered pixel position on an even-numbered line, the pixel of interest * (= 2n) is subjected to error correction by adding the image correction signal Ec in the image signal correction unit 11, and this error is corrected. The corrected target pixel 2n is binarized by the binarization circuit 12 and the binarized image signal Dout is output. In FIG. 8B, the hatched portion indicates the pixel position where N pixels of the error storage unit 17 are arranged, and the blank portion indicates the error storage unit 1.
7 shows the pixel positions where N pixels are not arranged.

【0042】2値化誤差算出部13は補正画像信号Din
c と2値化画像信号Dout との差を算出して2値化誤差
信号Er (=E2n)を出力し、重み誤差算出部14は
この2値化誤差信号Er (=E2n)に注目画素*の周
囲画素の重み係数A,B,C,Dを乗じて重み誤差を算
出する。この重み誤差は図9の(a) に示すように配分さ
れる。すなわち、重み係数Aを乗じて得た重み誤差A×
E2nは、奇数画素である次画素(2n+1)の誤差
に、重み係数Bを乗じて得た重み誤差B×E2nは、次
の奇数ラインの奇数画素2(n−1)−1の誤差に、重
み係数Cを乗じて得た重み誤差C×E2nは、次の奇数
ラインの奇数画素2n−1の誤差に、重み係数Dを乗じ
て得た重み誤差D×E2nは、次の奇数ラインの奇数画
素2(n+1)−1の誤差にそれぞれ配分される。この
場合、次の奇数ラインの奇数画素2(n−1)−1、2
n−1、2(n+1)−1は誤差記憶部17のN画素に
対応している。
The binarization error calculation unit 13 calculates the corrected image signal Din.
The difference between c and the binarized image signal Dout is calculated to output a binarized error signal Er (= E2n), and the weighting error calculation unit 14 uses the binarized error signal Er (= E2n) as the pixel of interest *. The weighting error is calculated by multiplying the weighting factors A, B, C, and D of the surrounding pixels. This weight error is distributed as shown in FIG. That is, the weighting error A x obtained by multiplying the weighting factor A
E2n is a weight error B × E2n obtained by multiplying the error of the next pixel (2n + 1), which is an odd pixel, by the weight coefficient B, and the error of the odd pixel 2 (n−1) −1 of the next odd line is The weight error C × E2n obtained by multiplying the weight coefficient C is the error of the odd pixel 2n−1 of the next odd line, and the weight error D × E2n obtained by multiplying the error of the next odd line is the odd number of the next odd line. It is allocated to the error of pixel 2 (n + 1) -1. In this case, odd pixels 2 (n-1) -1, 2 of the next odd line
n−1, 2 (n + 1) −1 correspond to N pixels in the error storage unit 17.

【0043】注目画素*が図8の(c) に示すように次の
奇数画素(2n+1)に移行すると、この注目画素*
(=2n+1)は画像信号補正部11で前回の誤差処理
で求めた次画素(2n+1)の誤差に該当する画像補正
信号Ec が加算されて誤差補正が行われ、この誤差補正
した注目画素2n+1を2値化回路12で2値化して2
値化画像信号Dout を出力する。なお、図8の(c) にお
いて斜線の部分は誤差記憶部17のN画素を配置した画
素位置を示し、空白の部分は誤差記憶部17のN画素を
配置しない画素位置を示している。
When the target pixel * shifts to the next odd pixel (2n + 1) as shown in FIG. 8C, this target pixel *
In (= 2n + 1), the image correction signal Ec corresponding to the error of the next pixel (2n + 1) obtained in the previous error processing by the image signal correction unit 11 is added to perform the error correction, and the error-corrected target pixel 2n + 1 is set. Binarize by the binarization circuit 12 to 2
The binarized image signal Dout is output. In FIG. 8 (c), the shaded area indicates the pixel position where N pixels of the error storage unit 17 are arranged, and the blank area indicates the pixel position where N pixels of the error storage unit 17 is not arranged.

【0044】2値化誤差算出部13は補正画像信号Din
c と2値化画像信号Dout との差を算出して2値化誤差
信号Er (=E2n+1)を出力し、重み誤差算出部1
4はこの2値化誤差信号Er (=E2n+1)に注目画
素*の周囲画素の重み係数A,B,C,Dを乗じて重み
誤差を算出する。この重み誤差は図9の(b) に示すよう
に配分される。すなわち、重み係数Aを乗じて得た重み
誤差A×E(2n+1)は、次画素2(n+1)の誤差
に、重み係数Bを乗じて得た重み誤差B×E(2n+
1)は、次のラインの奇数画素2(n−1)+1の誤差
に、重み係数Cを乗じて得た重み誤差C×E(2n+
1)は、次のラインの奇数画素2n+1の誤差に、重み
係数Dを乗じて得た重み誤差D×E(2n+1)は、次
のラインの奇数画素2(n+1)+1の誤差にそれぞれ
配分される。このように、注目画素*が奇数番目のとき
には誤差記憶部17のN画素を配置した次のラインの隣
接画素である奇数画素2(n−1)+1、2n+1、2
(n+1)+1にそれぞれ配分されることになる。
The binarization error calculation unit 13 calculates the corrected image signal Din
The difference between c and the binarized image signal Dout is calculated to output the binarized error signal Er (= E2n + 1), and the weighting error calculation unit 1
Reference numeral 4 multiplies the binarized error signal Er (= E2n + 1) by the weighting factors A, B, C and D of the pixels surrounding the pixel of interest * to calculate the weighting error. This weight error is distributed as shown in FIG. 9 (b). That is, the weight error A × E (2n + 1) obtained by multiplying the weight coefficient A is the weight error B × E (2n +) obtained by multiplying the error of the next pixel 2 (n + 1) by the weight coefficient B.
1) is a weighting error C × E (2n +) obtained by multiplying the error of the odd-numbered pixel 2 (n−1) +1 of the next line by the weighting coefficient C.
In 1), the weight error D × E (2n + 1) obtained by multiplying the error of the odd pixel 2n + 1 on the next line by the weight coefficient D is distributed to the error of the odd pixel 2 (n + 1) +1 on the next line. It Thus, when the pixel of interest * is an odd number, odd pixels 2 (n−1) +1, 2n + 1, 2 which are the adjacent pixels of the next line in which N pixels of the error storage unit 17 are arranged are arranged.
(N + 1) +1 will be allocated to each.

【0045】このように、奇数ライン目は誤差記憶部1
7のN画素を入力画像信号Dinの奇数画素に配置し、偶
数ライン目は誤差記憶部17のN画素を入力画像信号D
inの偶数画素に配置する構成であっても前述した実施の
形態と同様に誤差記憶部のメモリサイズの小形化及びコ
スト低下を図ることができる。なお、前述した各実施の
形態は、多値の入力画像信号Dinを2値化処理する場合
について述べたが必ずしもこれに限定するものではな
く、例えば出力装置の階調数が大きい場合は、2値化回
路に代えて複数の閾値と比較する多値化回路を使用し、
多値の入力画像信号Dinを出力装置の階調数に対応した
多値の画像信号に変換する処理を行うものであってもよ
い。
As described above, the odd-numbered lines are stored in the error storage unit 1
N pixels of 7 are arranged in odd pixels of the input image signal Din, and N pixels of the error storage unit 17 are arranged in the input image signal D in the even line.
Even with the configuration in which the pixels are arranged in in even-numbered pixels, the memory size of the error storage unit can be downsized and the cost can be reduced as in the above-described embodiment. The above-described embodiments have described the case where the multi-valued input image signal Din is binarized. However, the present invention is not limited to this. For example, when the number of gradations of the output device is large, 2 Use a multi-valued circuit that compares with multiple thresholds instead of the valued circuit,
A process of converting the multivalued input image signal Din into a multivalued image signal corresponding to the number of gradations of the output device may be performed.

【0046】[0046]

【発明の効果】以上、請求項1及び2記載の発明によれ
ば、使用する誤差記憶手段の記憶容量を大きくすること
なく大きなサイズや大きな解像度の入力画像信号の誤差
拡散法に基づく2値化又は多値化変換に対処でき、これ
により、メモリサイズの小形化及びコスト低下を図るこ
とができる。
As described above, according to the first and second aspects of the present invention, binarization based on the error diffusion method of an input image signal having a large size and a large resolution without increasing the storage capacity of the error storage means to be used. Alternatively, multi-value conversion can be dealt with, which can reduce the memory size and cost.

【0047】また、請求項3及び4記載の発明によれ
ば、使用する誤差記憶手段の記憶容量を大きくすること
なく大きなサイズや大きな解像度の入力画像信号の誤差
拡散法に基づく2値化又は多値化変換に対処でき、これ
により、メモリサイズの小形化及びコスト低下を図るこ
とができ、さらに、小さいサイズや小さい解像度の入力
画像信号に対しては誤差補正精度を高めて誤差拡散法に
基づく2値化又は多値化変換ができる。
According to the third and fourth aspects of the present invention, binarization or multi-value conversion based on the error diffusion method for an input image signal having a large size or a large resolution is possible without increasing the storage capacity of the error storage means used. It is possible to deal with the binarization conversion, which makes it possible to reduce the memory size and cost, and to improve the error correction accuracy for an input image signal with a small size and a small resolution, and to use the error diffusion method. Binarization or multi-value conversion can be performed.

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

【図1】本発明の第1の実施の形態を示すブロック図。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】同実施の形態における重み誤差算出部及び誤差
記憶制御部の構成を示すブロック図。
FIG. 2 is a block diagram showing configurations of a weight error calculation unit and an error storage control unit according to the same embodiment.

【図3】同実施の形態における誤差記憶部の画素配置と
注目画素との関係を示す図。
FIG. 3 is a diagram showing a relationship between a pixel arrangement of an error storage unit and a target pixel according to the same embodiment.

【図4】同実施の形態の注目画素と誤差配分との関係を
示す図。
FIG. 4 is a diagram showing a relationship between a pixel of interest and error distribution according to the same embodiment.

【図5】同実施の形態における切替手段の動作を説明す
るためのタイミング図。
FIG. 5 is a timing chart for explaining the operation of the switching means in the same embodiment.

【図6】本発明の第2の実施の形態における切替手段の
回路構成図。
FIG. 6 is a circuit configuration diagram of a switching unit according to a second embodiment of the present invention.

【図7】同実施の形態における切替手段の動作を説明す
るためのタイミング図。
FIG. 7 is a timing chart for explaining the operation of the switching means in the same embodiment.

【図8】誤差記憶部の画素配置の他の例を示す図。FIG. 8 is a diagram showing another example of the pixel arrangement of the error storage unit.

【図9】図8における注目画素と誤差配分との関係を示
す図。
9 is a diagram showing the relationship between the pixel of interest in FIG. 8 and error distribution.

【図10】従来例を示すブロック図。FIG. 10 is a block diagram showing a conventional example.

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

11…画像信号補正部 12…2値化回路 13…2値化誤差算出部 14…重み誤差算出部 15…重み係数記憶部 16…誤差記憶制御部 17…誤差記憶部 24…D形フリップフロップ(切替手段) 11 ... Image signal correction unit 12 ... Binarization circuit 13 ... Binary error calculation unit 14 ... Weight error calculation unit 15 ... Weight coefficient storage unit 16 ... Error storage control unit 17 ... Error storage unit 24 ... D flip-flop ( Switching means)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 多値画像信号を画像補正信号により補正
して補正画像信号とした後、この補正画像信号を2値化
画像信号又は多値化画像信号に変換して出力し、一方、
補正画像信号と2値化画像信号又は多値化画像信号との
誤差を算出し、この誤差に注目画素の周辺画素に予め設
定した重み係数を乗じて注目画素の周辺画素に対する重
み誤差を求め、この重み誤差を1ラインN画素分記憶す
る誤差記憶手段の該当画素位置に累積し、この誤差記憶
手段の累積誤差を使用して前記画像補正信号を生成する
画像処理装置において、 1ラインがN画素より大きなM画素の多値画像信号を2
値化画像信号又は多値化画像信号に変換する場合は、前
記誤差記憶手段のN画素を予めM画素の任意の画素に配
置し、重み誤差をN画素を配置したM画素の任意の位置
に対しては前記誤差記憶手段の該当画素位置に累積し、
それ以外の位置に対しては前記誤差記憶手段の隣接する
画素位置に配分して累積することを特徴とする画像処理
装置の誤差記憶制御方法。
1. A multi-valued image signal is corrected by an image correction signal to form a corrected image signal, and then the corrected image signal is converted into a binarized image signal or a multi-valued image signal and output.
An error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by a weighting coefficient set in advance to peripheral pixels of the pixel of interest to obtain a weighting error with respect to the peripheral pixels of the pixel of interest. In the image processing apparatus for accumulating the weighting error at the corresponding pixel position of the error storing means for storing N pixels of one line and generating the image correction signal using the accumulated error of the error storing means, one line has N pixels. 2 multi-valued image signals with larger M pixels
When converting to a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary pixels of M pixels, and weighting errors are placed in arbitrary positions of M pixels in which N pixels are arranged. On the other hand, the error accumulation means accumulates at the corresponding pixel position,
An error storage control method for an image processing apparatus, characterized in that other positions are distributed to adjacent pixel positions of the error storage means and accumulated.
【請求項2】 多値画像信号を画像補正信号により補正
して補正画像信号とした後、この補正画像信号を2値化
画像信号又は多値化画像信号に変換して出力し、一方、
補正画像信号と2値化画像信号又は多値化画像信号との
誤差を算出し、この誤差に注目画素の周辺画素に予め設
定した重み係数を乗じて注目画素の周辺画素に対する重
み誤差を求め、この重み誤差を1ラインN画素分記憶す
る誤差記憶手段の該当画素位置に累積し、この誤差記憶
手段の累積誤差を使用して前記画像補正信号を生成する
画像処理装置において、 前記誤差記憶手段のN画素を予めM画素の任意の画素に
配置し、重み誤差をN画素を配置したM画素の任意の位
置に対して前記誤差記憶手段の該当画素位置に累積する
制御を行い、重み誤差をN画素を配置したM画素の任意
の位置以外の位置に対して前記誤差記憶手段の隣接する
画素位置に配分して累積する制御を行う累積制御手段
と、この累積制御手段の累積制御を、重み誤差を累積す
る位置がN画素を配置したM画素の任意の位置か任意の
位置以外の位置かにより切替える切替手段を設けたこと
を特徴とする画像処理装置の誤差記憶制御装置。
2. A multi-valued image signal is corrected by an image correction signal to form a corrected image signal, and the corrected image signal is converted into a binarized image signal or a multi-valued image signal and output.
An error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by a weighting coefficient set in advance to peripheral pixels of the pixel of interest to obtain a weighting error with respect to the peripheral pixels of the pixel of interest. In the image processing apparatus for accumulating the weighting error at the corresponding pixel position of the error storing means for storing N pixels of one line and generating the image correction signal by using the accumulated error of the error storing means, The N pixels are arranged in advance in arbitrary pixels of M pixels, and the weight error is controlled to accumulate in the corresponding pixel position of the error storage means with respect to the arbitrary position of M pixels in which the N pixels are arranged. Accumulation control means for performing control of distributing and accumulating to adjacent pixel positions of the error storage means with respect to positions other than arbitrary positions of M pixels in which the pixels are arranged, and weighting error of the accumulation control of the accumulation control means. Cumulative An error storage control device for an image processing apparatus, characterized in that a switching means is provided for switching between a position to be stacked and an arbitrary position of M pixels in which N pixels are arranged or a position other than the arbitrary position.
【請求項3】 多値画像信号を画像補正信号により補正
して補正画像信号とした後、この補正画像信号を2値化
画像信号又は多値化画像信号に変換して出力し、一方、
補正画像信号と2値化画像信号又は多値化画像信号との
誤差を算出し、この誤差に注目画素の周辺画素に予め設
定した重み係数を乗じて注目画素の周辺画素に対する重
み誤差を求め、この重み誤差を1ラインN画素分記憶す
る誤差記憶手段の該当画素位置に累積し、この誤差記憶
手段の累積誤差を使用して前記画像補正信号を生成する
画像処理装置において、 1ラインがN画素より大きなM画素の多値画像信号を2
値化画像信号又は多値化画像信号に変換する場合は、前
記誤差記憶手段のN画素を予めM画素の任意の画素に配
置し、重み誤差をN画素を配置したM画素の任意の位置
に対しては前記誤差記憶手段の該当画素位置に累積し、
それ以外の位置に対しては前記誤差記憶手段の隣接する
画素位置に配分して累積し、 1ラインがN画素以下のM画素の多値画像信号を2値化
画像信号又は多値化画像信号に変換する場合は、M画素
の全てを前記誤差記憶手段に配置し、重み誤差を前記誤
差記憶手段の該当画素位置に累積することを特徴とする
画像処理装置の誤差記憶制御方法。
3. A multi-valued image signal is corrected by an image correction signal to form a corrected image signal, and the corrected image signal is converted into a binarized image signal or a multi-valued image signal and output,
An error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by a weighting coefficient set in advance to peripheral pixels of the pixel of interest to obtain a weighting error with respect to the peripheral pixels of the pixel of interest. In the image processing apparatus for accumulating the weighting error at the corresponding pixel position of the error storing means for storing N pixels of one line and generating the image correction signal using the accumulated error of the error storing means, one line has N pixels. 2 multi-valued image signals with larger M pixels
When converting to a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary pixels of M pixels, and weighting errors are placed in arbitrary positions of M pixels in which N pixels are arranged. On the other hand, the error accumulation means accumulates at the corresponding pixel position,
For other positions, it is distributed to adjacent pixel positions of the error storage means and accumulated, and a multi-valued image signal of M pixels in which one line is N pixels or less is binarized image signal or multi-valued image signal. In the case of converting to M, all the M pixels are arranged in the error storage means, and the weighting error is accumulated at the corresponding pixel position of the error storage means.
【請求項4】 多値画像信号を画像補正信号により補正
して補正画像信号とした後、この補正画像信号を2値化
画像信号又は多値化画像信号に変換して出力し、一方、
補正画像信号と2値化画像信号又は多値化画像信号との
誤差を算出し、この誤差に注目画素の周辺画素に予め設
定した重み係数を乗じて注目画素の周辺画素に対する重
み誤差を求め、この重み誤差を1ラインN画素分記憶す
る誤差記憶手段の該当画素位置に累積し、この誤差記憶
手段の累積誤差を使用して前記画像補正信号を生成する
画像処理装置において、 1ラインがN画素より大きなM画素の多値画像信号を2
値化画像信号又は多値化画像信号に変換する場合は、前
記誤差記憶手段のN画素を予めM画素の任意の画素に配
置して重み誤差をN画素を配置したM画素の任意の位置
に対して前記誤差記憶手段の該当画素位置に累積する制
御を行うとともに重み誤差をN画素を配置したM画素の
任意の位置以外の位置に対して前記誤差記憶手段の隣接
する画素位置に配分して累積する制御を行い、1ライン
がN画素以下のM画素の多値画像信号を2値化画像信号
又は多値化画像信号に変換する場合は、M画素の全てを
前記誤差記憶手段に配置して重み誤差を前記誤差記憶手
段の該当画素位置に累積する制御を行う累積制御手段
と、1ラインがN画素より大きなM画素の多値画像信号
を2値化画像信号又は多値化画像信号に変換する場合
は、前記累積制御手段の累積制御を重み誤差を累積する
位置がN画素を配置したM画素の任意の位置か任意の位
置以外の位置かにより切替え、1ラインがN画素以下の
M画素の多値画像信号を2値化画像信号又は多値化画像
信号に変換する場合は、前記累積制御手段の累積制御を
重み誤差を前記誤差記憶手段の該当画素位置に累積する
制御のみに切替える切替手段を設けたことを特徴とする
画像処理装置の誤差記憶制御装置。
4. A multi-valued image signal is corrected by an image correction signal to form a corrected image signal, and then the corrected image signal is converted into a binarized image signal or a multi-valued image signal and output.
An error between the corrected image signal and the binarized image signal or the multi-valued image signal is calculated, and this error is multiplied by a weighting coefficient set in advance to peripheral pixels of the pixel of interest to obtain a weighting error with respect to the peripheral pixels of the pixel of interest. In the image processing apparatus for accumulating the weighting error at the corresponding pixel position of the error storing means for storing N pixels of one line and generating the image correction signal using the accumulated error of the error storing means, one line has N pixels. 2 multi-valued image signals with larger M pixels
When converting to a binarized image signal or a multi-valued image signal, N pixels of the error storage means are arranged in advance in arbitrary pixels of M pixels, and weighting error is placed in arbitrary positions of M pixels in which N pixels are arranged. On the other hand, control for accumulating at the relevant pixel position of the error storage means is performed, and the weighting error is distributed to adjacent pixel positions of the error storage means with respect to positions other than arbitrary positions of M pixels in which N pixels are arranged. In the case of controlling the accumulation and converting a multi-valued image signal of M pixels in which one line is N pixels or less into a binarized image signal or a multi-valued image signal, all the M pixels are arranged in the error storage means. Accumulation control means for performing control for accumulating the weighting error at the relevant pixel position of the error storage means, and a multi-valued image signal of M pixels in which one line is larger than N pixels into a binarized image signal or a multi-valued image signal. When converting, the cumulative control means The cumulative control is switched depending on whether the position where the weighting error is accumulated is an arbitrary position of M pixels in which N pixels are arranged or a position other than the arbitrary position, and a multi-valued image signal of M pixels in which one line is N pixels or less is binarized. In the case of converting to an image signal or a multi-valued image signal, a switching means is provided for switching the cumulative control of the cumulative control means to only control for accumulating the weighting error at the corresponding pixel position of the error storage means. Error storage control device of image processing device.
JP8121514A 1996-05-16 1996-05-16 Error storage control method for image processing unit and error storage controller Pending JPH09307759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8121514A JPH09307759A (en) 1996-05-16 1996-05-16 Error storage control method for image processing unit and error storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8121514A JPH09307759A (en) 1996-05-16 1996-05-16 Error storage control method for image processing unit and error storage controller

Publications (1)

Publication Number Publication Date
JPH09307759A true JPH09307759A (en) 1997-11-28

Family

ID=14813098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8121514A Pending JPH09307759A (en) 1996-05-16 1996-05-16 Error storage control method for image processing unit and error storage controller

Country Status (1)

Country Link
JP (1) JPH09307759A (en)

Similar Documents

Publication Publication Date Title
US5339171A (en) Image processing apparatus especially suitable for producing smooth-edged output multi-level tone data having fewer levels than input multi-level tone data
US5805738A (en) Image processing apparatus and method
EP0454495A1 (en) Half-tone image processing system
JP3187352B2 (en) Method of halftoning gray value signal of pixel of image and image reproducing apparatus for reproducing image
JPH09307759A (en) Error storage control method for image processing unit and error storage controller
JPH0799543B2 (en) Image processing device
JP2900907B2 (en) Image processing device
JP2703911B2 (en) Image processing device
JP3679522B2 (en) Image processing method and apparatus
JPH05183737A (en) Picture processor
JPH06113125A (en) Picture processor
JP2701310B2 (en) Halftone image generation method and apparatus
JP3774523B2 (en) Image processing apparatus and control method thereof
JP3428822B2 (en) Image processing apparatus and image processing method
JPH07295527A (en) Processor for image signal binarization processing and method therefor
JP3950871B2 (en) Image processing method and apparatus
JPH0668250A (en) Image processor
JP3089688B2 (en) Image information processing method
JPS62107572A (en) Image processor
JPH05103207A (en) Picture processor
JPH04211569A (en) Image processor
JPH06291993A (en) Picture signal processing unit
JPH10243220A (en) Image data processor
JP2004094974A (en) Image processing method
JPH11239273A (en) Method and device for processing image

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051020

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051025

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060228